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

r2d2abc
Posts: 6
Joined: Mon Jun 25, 2018 8:01 am

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

Postby r2d2abc » Mon Jun 25, 2018 10:01 am

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 5428 times
below1

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Mon Jun 25, 2018 3:29 pm

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.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

r2d2abc
Posts: 6
Joined: Mon Jun 25, 2018 8:01 am

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

Postby r2d2abc » Mon Jun 25, 2018 5:53 pm

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
Attachments
esp32-eclipse-err05.png
esp32-eclipse-err05.png (87.72 KiB) Viewed 5402 times
esp32-eclipse-err04.png
esp32-eclipse-err04.png (121.39 KiB) Viewed 5402 times

r2d2abc
Posts: 6
Joined: Mon Jun 25, 2018 8:01 am

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

Postby r2d2abc » Tue Jun 26, 2018 6:03 am

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

Who is online

Users browsing this forum: Google [Bot] and 70 guests