Hi there,
if this is not the right place to ask, pls hint where to ask.
I followed the Linux Setup Guide on this site http://esp-idf.readthedocs.io/en/latest/linux-setup.html
(steps 1-4: ubuntu 16.10 64 bit).
Then I went over to this site http://esp-idf.readthedocs.io/en/latest/eclipse-setup.html
following the installation there.
Running a project in eclipse Neon, i got the following errors:
...
make: * no rule found, ...l „/esp/myapp/build/include/config/auto.conf“, myapp C/C++ Problem
Program "xtensa-esp32-elf-gcc" not found in PATH myapp Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
Symbol 'ESP_OK' could not be resolved main.c /myapp/main line 11 Semantic Error
...
Any help is very welcome
Have you set $IDF_PATH and $PATH in your .profile and logoff/login or restart? or you can set this inside eclipse but for me its easier because this works also for command line make.
Thanks for the hint.
I could solve the path problem for xtensa-esp32-elf-gcc by editing PATH in eclipse.
I had to correct the path like this: "/home/mydirectory/to/xtensa-esp32-elf-gcc:"
I could also solve the make problem for * no rule found, .. by editing PATH in terminal like:
cd /home/mydirectory/to/esp/myapp
export IDF_PATH=/home/mydirectory/to/esp/esp-idf
But I still get the error messages of unsolved inclusions like this:
Problem Symbol 'ESP_OK' could not be resolved main.c /myapp/main line 11 Semantic Error
I think I need to add another PATH or IDF_PATH instruction, but which one...?
Best regards
Hi,
maybe this helps to set the needed Paths in eclipse:
https://esp32.com/viewtopic.php?f=2&t=1153
https://www.youtube.com/watch?v=bYh2w0HzS7s
but first check if its a eclipse or make error:
run "make" from commandline.
Dont know a way to run "make menuconfig", "make monitor" from eclipse so the commandline is your 2nd friend.
Tip: for make target "all" you can use i.e. "-j8 all" to run 8 parallel compiling processes if your cpu can do this.
Hi pcbreflux,
indeed, that helped a lot.
Thanks for that.
Now there are only two unresolved items left:
symbol 'cfg' cannot be resolved.
symbol 'CONFIG_FREERTOS_HZ' cannot be resolved.
Cheers
Hi,
while it is not need for compiling with command line make, for eclipse it's useful to put the following inside (maybe below #include
this is also the reason why I include "/
That did the trick!
Everything is working fine now.
Thank you very much for you patience and your dedicated help.
Cheers!
i am using eclipse oxygen on windows and running an example code ble_spp_server but i am facing an error at portTICK_PERIOD_MS and it shows that symbol CONFIG_FREERTOS_HZ not resolved
while i included all necessary library in program like #include "sdkconfig.h" #include "freertos/FreeRTOS.h"
please help me
Most helpful comment
Hi,
while it is not need for compiling with command line make, for eclipse it's useful to put the following inside (maybe below #include) all your project files using the config (i.e. freertos).
include "sdkconfig.h"
this is also the reason why I include "//build/include" into C/C++ General -> Path and Symbols -> Gnu C as the first line.