Skip to content
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

Libraries not working after update to new esp-idf #316

Closed
haberturdeur opened this issue Apr 13, 2020 · 7 comments
Closed

Libraries not working after update to new esp-idf #316

haberturdeur opened this issue Apr 13, 2020 · 7 comments

Comments

@haberturdeur
Copy link

Hi I am having problem with libraries in my project.
For some reason after update to new version of esp-idf (v3 to v4) the compiler can't find libraries, it doesn't matter if they are in the lib folder or in platformio.ini.

src\BlackBox_LEDring.hpp:5:10: fatal error: SmartLeds.h: No such file or directory

*******************************************************************
* Looking for SmartLeds.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:SmartLeds.h"
* Web  > https://platformio.org/lib/search?query=header:SmartLeds.h
*
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf

lib_deps = 
    SmartLeds
@FoxKeys
Copy link

FoxKeys commented Apr 16, 2020

Confirm.
Seems like platformio.ini settings like "lib_extra_dirs", "lib_deps" stop working completely after platform update
And, have no idea, how to attach libraries using CMakeLists...

I can no longer compile any single project...

@valeros
Copy link
Member

valeros commented Apr 16, 2020

Could you please try to roll back to the previous version of the platform:

[env:esp32dev]
platform = espressif32@1.11.2
framework = espidf
board = esp32dev

@FoxKeys
Copy link

FoxKeys commented Apr 16, 2020

With rollback version build was successful.
This is ok as workaround (and thank you for this!). But, not as solution, of course.

@valeros
Copy link
Member

valeros commented Apr 17, 2020

Could you please retest with the upstream version of the platform, e.g.:

[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git
framework = espidf
board = esp32dev

@haberturdeur
Copy link
Author

Seems to be working, thank you very much.

@FoxKeys
Copy link

FoxKeys commented Apr 17, 2020

On first glance - seems working. But, can't confirm. Because build stopped on error "error: exception handling disabled, use -fexceptions to enable"
(even, exceptions are enabled in platformio.ini)
build_flags = -fexceptions
or
build_flags = -DPIO_FRAMEWORK_ESP_IDF_ENABLE_EXCEPTIONS, -fexceptions
(tried both)

Looks like build_flags required fix too...

P.S. And, i need build_unflags = -fno-rtti too (not tested yet, just would be good if you check this too)

@valeros
Copy link
Member

valeros commented Apr 17, 2020

@FoxKeys
Starting wiht ESP-IDF v4.0 the configuration settings like -DPIO_FRAMEWORK_ESP_IDF_ENABLE_EXCEPTIONS is deprecated. Please use menuconfig tool instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants