Page 1 of 1

eclipse esp-idf / arduino-esp32 "symbol not found"

Posted: Mon Jun 25, 2018 10:01 am
by r2d2abc
Hello, i'm a new on ESP32. I don't like arduino ide and prefer eclipse.
I follow some documentations (Espressif/Instructables/..) to implement right settings on eclipse and that's run fine for 2 projects.
When i try to mix arduino-esp32/esp-idf (thank's Kolban) to use some externals libaries (sensor,..) from git base example duplicated, i have the error below1 "symbol XXXX could not be found" while F3 on symbol propose me 2 paths below2 (esp-idf & arduino-esp32 include paths).
If i do a "make all" (below3) operation compile and flash without errors
Thank's for help
Frederic

esp32-eclipse-err01.jpg
esp32-eclipse-err01.jpg (469.86 KiB) Viewed 5429 times
below1

below2
esp32-eclipse-err02.jpg
esp32-eclipse-err02.jpg (366.61 KiB) Viewed 5429 times
below 2
esp32-eclipse-err03.png
esp32-eclipse-err03.png (103.9 KiB) Viewed 5429 times
below 3

Re: eclipse esp-idf / arduino-esp32 "symbol not found"

Posted: Mon Jun 25, 2018 3:29 pm
by kolban
My first guess is that the code wishes to include "sdkconfig.h" which is likely in "./build/include" directory. Maybe add that directory to your Eclipse CDT configuration so that the editor can find it.

Re: eclipse esp-idf / arduino-esp32 "symbol not found"

Posted: Mon Jun 25, 2018 5:53 pm
by r2d2abc
Thank's Kolban, I have done some operations :
1. added "sdkconfig.h" in last include position in main
2. erase arduino-esp32 tree/redo a git arduino-esp32 in component
2. do a clean project/validate/index (rebuild)
3. Reset choice in menuconfig to initial
All errors disappears ... strange, perhaps all intermediaries manipulations insert errors ...

Other point, when I check compiler/optimization level to release (not debug) -> make fails, if I return in debug level it pass OK (pictures joined).

Than'ks for answer
Frederic

Re: eclipse esp-idf / arduino-esp32 "symbol not found"

Posted: Tue Jun 26, 2018 6:03 am
by r2d2abc
Hey Team, for my problem yesterday I had put in place an update of eeprom.cpp (https://github.com/espressif/arduino-esp32/issues/1238)
Thank's Kolban
Frederic