-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using esp-idf, libraries downloaded by PlatformIO are not found, but there is workaround #281
Comments
Hi @AgainPsychoX! In a nutshell, this is expected behavior and I'd recommend storing your full-featured IDF components outside the |
Hi I'm trying to flash this example from Git I started looking up the libraries needed and placing them inside the components folder in root. I soon realized that they are endless and some are more than one in many folders so you don't know which one to choose. The intellisense was satisfied and had no warning about missing libs but
Can someone point to the right direction on solving this ? |
Looks like it's too complicated to have both ESP-IDF and platformio working together. I followed the ESP-IDF directions step by step and it worked fine. I stopped using platformio |
Kconfig.build holds lib/esp-nimble-cpp/Kconfig .pio/libdeps/m5stack_coreS3_quadrature_jtag/lvgl/Kconfig NB LVGL uses custom lv_conf.h by default - needs unchecking in menuconfig see also: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html AWS example: https://github.com/platformio/platform-espressif32/tree/develop/examples/espidf-aws-iot referenced in platformio/platformio-docs#281 (comment)
See https://docs.platformio.org/en/latest/frameworks/espidf.html#esp-idf-components
(source at https://github.com/platformio/platformio-docs/blob/develop/frameworks/espidf_extra.rst)
By docs,
EXTRA_COMPONENT_DIRS
is to be set as library name. It would work if one had their library directly in main folder (which containssrc
, etc.). By some digging I found out, you can actually make it work better, by adding.pio/libdeps/${board}
as components search directory, i.e.:The solution also fixes issues with
Kconfig
not being found. Some libraries (likeesp32cam
itself that I use) encourage to append theirKconfig
to user main componentsrc/Kconfig
which, at least to me, looks ugly.The solution might need some refining (and confirmation) I guess. I am not confident with PlatformIO / esp-idf myself, but I am posting it here (as an issue) so maybe other, more knowledgeable people could look at it. Anyway, it works for me ;)
The text was updated successfully, but these errors were encountered: