Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
-
- Posts: 42
- Joined: Fri Apr 12, 2019 4:25 pm
- Location: Canada
Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
I followed every single step from this page
https://docs.espressif.com/projects/esp ... setup.html
But still get unresolved inclusion in the IDC.
Googled for a few solutions, but none of them worked.
Thanks
Paul
https://docs.espressif.com/projects/esp ... setup.html
But still get unresolved inclusion in the IDC.
Googled for a few solutions, but none of them worked.
Thanks
Paul
- gunar.kroeger
- Posts: 143
- Joined: Fri Jul 27, 2018 6:48 pm
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
I'm also not having luck with this on eclipse Windows...
Sometimes the errors disappear but when I have to change branches, eclipse starts to scream again
It's really frustrating having to work with all your code marked with red underlines
I saw some people abandoning eclipse and moving to VS, but as it's not the official IDE for esp-idf, I'm afraid to find even more problems. Hopefully this Cmake support can fix this issue.
Sometimes the errors disappear but when I have to change branches, eclipse starts to scream again
It's really frustrating having to work with all your code marked with red underlines
I saw some people abandoning eclipse and moving to VS, but as it's not the official IDE for esp-idf, I'm afraid to find even more problems. Hopefully this Cmake support can fix this issue.
"Running was invented in 1612 by Thomas Running when he tried to walk twice at the same time."
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
Hi there,
I have the same problems. I did every step described in the doc with copy&paste. Controlled it 1000times. No luck.
Here are the settings I use: What am I am doing wrong?
Please help
Yours
Arne
I have the same problems. I did every step described in the doc with copy&paste. Controlled it 1000times. No luck.
Here are the settings I use: What am I am doing wrong?
Please help
Yours
Arne
All theory, my friend, is grey, But green is life's glad golden tree.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
On one or more of your project files that are showing unresolved inclusions (e.g. main.c), could you post a screenshot of those files' CDT GCC Build Output Entries (see screenshot below). A log dump of your Eclipse build would also be helpful.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
Thanks for your effords!
Here are the informations you want to have: The main-file I'm trying to edit is the mqtts-example in githubs esp-idf see
https://github.com/espressif/esp-idf/bl ... app_main.c
currently g++ and gcc are not found although the path has the following value
here is the eclipse-Logfile
Why does eclipse doesn't find gcc nor g++? Both gcc.exe and and xtensa-esp32-elf-gcc.exe are in the path.
Can I give your more information?
Yours
Arne
Here are the informations you want to have: The main-file I'm trying to edit is the mqtts-example in githubs esp-idf see
https://github.com/espressif/esp-idf/bl ... app_main.c
currently g++ and gcc are not found although the path has the following value
Code: Select all
C:\msys32\mingw32\bin;C:\msys32\opt\xtensa-esp32-elf\bin;C:\msys32\usr\bin
Can I give your more information?
Yours
Arne
All theory, my friend, is grey, But green is life's glad golden tree.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
I deleted everything again (workspace and the project itself) and recreated it according to the instructions. https://docs.espressif.com/projects/esp ... setup.html
Here is the log-File I found in the workspace Here are the settings you would like to see Hope, that helps.
Yours
Arne
Here is the log-File I found in the workspace Here are the settings you would like to see Hope, that helps.
Yours
Arne
All theory, my friend, is grey, But green is life's glad golden tree.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
@dasarne by log I mean the Build Log. You can enable it under Project Properties->C/C++ Build->Logging and check Enable Build Logging. Run a full build to generate a complete log output (i.e. clean the project before building all).
From the screenshot you've provided of the CDT Build Console it seems like the build process is able to run successfully, but for some reason the CDT GCC Build Output Parser isn't able to parse any of the paths from the build process. The build process should output multiple calls to gcc or g++ such as the following:
It is these outputs that the parser is supposed to derive the CDT GCC Build Output Parser is supposed to parse the Build Output Entries from. I need to see your Build Log to check what type of outputs (if any) are being emitted during the build process to prevent the CDT GCC Build Output Parser from being able to parse entries from.
From the screenshot you've provided of the CDT Build Console it seems like the build process is able to run successfully, but for some reason the CDT GCC Build Output Parser isn't able to parse any of the paths from the build process. The build process should output multiple calls to gcc or g++ such as the following:
Code: Select all
xtensa-esp32-elf-gcc ... a bunch of options ... -I /c/Users/Darian/Desktop/esp-idf/components/freertos/include/freertos
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
I did it the way you said and found some strainge effects.
I can build the project in mingw32-Console. Than I am able to clean it in eclipse but after that I can't build it in eclipse. See the Log-File
Kconfig.projbuild is in place:
If I build the project in mingw32-Console I can also do it in eclipse.
See Log but this doesn't help the CDT GCC Build Output Parser.
I hope I could help you to find the problem. Do you need further information?
Yours
Arne
I can build the project in mingw32-Console. Than I am able to clean it in eclipse but after that I can't build it in eclipse. See the Log-File
Kconfig.projbuild is in place:
Code: Select all
$ ls -al /home/Arne/esp/esp-idf/components/bootloader/Kconfig.projbuild
-rw-r--r-- 1 Arne v.Irmer Kein 24255 May 2 19:45 /home/Arne/esp/esp-idf/components/bootloader/Kconfig.projbuild
See Log but this doesn't help the CDT GCC Build Output Parser.
I hope I could help you to find the problem. Do you need further information?
Yours
Arne
All theory, my friend, is grey, But green is life's glad golden tree.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
If you open a CMD shell under Windows, and set all environment parameters from the Eclipse project, you can reproduce the error there as well.
The problem might be that 'C:/msys32/home/Arne/esp/esp-idf/Kconfig' is called in the CMD shell context and does not know '/home/Arne/esp/esp-idf/components/bootloader/Kconfig.projbuild' there.
Code: Select all
C:\Users\Arne>cd C:\msys32\home\Arne\dev\mqtts\
C:\msys32\home\Arne\dev\mqtts>make -j6 all
Makefile:9: /make/project.mk: No such file or directory
make: *** No rule to make target '/make/project.mk'. Stop.
C:\msys32\home\Arne\dev\mqtts>set IDF_PATH=C:/msys32/home/Arne/esp/esp-idf
C:\msys32\home\Arne\dev\mqtts>set BATCH_BUILD=1
C:\msys32\home\Arne\dev\mqtts>set CWD=C:\msys32\home\Arne\dev\mqtts\
C:\msys32\home\Arne\dev\mqtts>make -j6 all
/home/Arne/esp/esp-idf/tools/check_python_dependencies.py
Python requirements from C:/msys32/home/Arne/esp/esp-idf\requirements.txt are satisfied.
mkdir -p /home/Arne/dev/mqtts/build/include/config
/home/Arne/esp/esp-idf/tools/kconfig_new/confgen.py --kconfig /home/Arne/esp/esp-idf/Kconfig --config /home/Arne/dev/mqtts/sdkconfig --env "COMPONENT_KCONFIGS=/home/Arne/esp/esp-idf/components/app_trace/Kconfig /home/Arne/esp/esp-idf/components/bt/Kconfig /home/Arne/esp/esp-idf/components/driver/Kconfig /home/Arne/esp/esp-idf/components/efuse/Kconfig /home/Arne/esp/esp-idf/components/esp32/Kconfig /home/Arne/esp/esp-idf/components/esp_adc_cal/Kconfig /home/Arne/esp/esp-idf/components/esp_event/Kconfig /home/Arne/esp/esp-idf/components/esp_http_client/Kconfig /home/Arne/esp/esp-idf/components/esp_http_server/Kconfig /home/Arne/esp/esp-idf/components/esp_https_ota/Kconfig /home/Arne/esp/esp-idf/components/esp_wifi/Kconfig /home/Arne/esp/esp-idf/components/espcoredump/Kconfig /home/Arne/esp/esp-idf/components/ethernet/Kconfig /home/Arne/esp/esp-idf/components/fatfs/Kconfig /home/Arne/esp/esp-idf/components/freemodbus/Kconfig /home/Arne/esp/esp-idf/components/freertos/Kconfig /home/Arne/esp/esp-idf/components/heap/Kconfig /home/Arne/esp/esp-idf/components/libsodium/Kconfig /home/Arne/esp/esp-idf/components/log/Kconfig /home/Arne/esp/esp-idf/components/lwip/Kconfig /home/Arne/esp/esp-idf/components/mbedtls/Kconfig /home/Arne/esp/esp-idf/components/mdns/Kconfig /home/Arne/esp/esp-idf/components/mqtt/Kconfig /home/Arne/esp/esp-idf/components/nvs_flash/Kconfig /home/Arne/esp/esp-idf/components/openssl/Kconfig /home/Arne/esp/esp-idf/components/pthread/Kconfig /home/Arne/esp/esp-idf/components/spi_flash/Kconfig /home/Arne/esp/esp-idf/components/spiffs/Kconfig /home/Arne/esp/esp-idf/components/tcpip_adapter/Kconfig /home/Arne/esp/esp-idf/components/unity/Kconfig /home/Arne/esp/esp-idf/components/vfs/Kconfig /home/Arne/esp/esp-idf/components/wear_levelling/Kconfig" --env "COMPONENT_KCONFIGS_PROJBUILD=/home/Arne/esp/esp-idf/components/app_update/Kconfig.projbuild /home/Arne/esp/esp-idf/components/bootloader/Kconfig.projbuild /home/Arne/esp/esp-idf/components/esptool_py/Kconfig.projbuild /home/Arne/dev/mqtts/main/Kconfig.projbuild /home/Arne/esp/esp-idf/components/partition_table/Kconfig.projbuild /home/Arne/esp/esp-idf/examples/common_components/protocol_examples_common/Kconfig.projbuild" --env "IDF_CMAKE=n" --output config /home/Arne/dev/mqtts/sdkconfig --output makefile /home/Arne/dev/mqtts/build/include/config/auto.conf --output header /home/Arne/dev/mqtts/build/include/sdkconfig.h
Traceback (most recent call last):
File "C:/msys32/home/Arne/esp/esp-idf/tools/kconfig_new/confgen.py", line 505, in <module>
main()
File "C:/msys32/home/Arne/esp/esp-idf/tools/kconfig_new/confgen.py", line 187, in main
config = kconfiglib.Kconfig(args.kconfig)
File "C:/msys32/home/Arne/esp/esp-idf/tools/kconfig_new/kconfiglib.py", line 656, in __init__
self.top_node) # prev_node
File "C:/msys32/home/Arne/esp/esp-idf/tools/kconfig_new/kconfiglib.py", line 1583, in _parse_block
self._enter_file(sourced_file)
File "C:/msys32/home/Arne/esp/esp-idf/tools/kconfig_new/kconfiglib.py", line 1167, in _enter_file
.format(self._filename, self._linenr, e.message))
IOError: C:/msys32/home/Arne/esp/esp-idf/Kconfig:59: Could not open '/home/Arne/esp/esp-idf/components/bootloader/Kconfig.projbuild' (ENOENT: No such file or directory). Perhaps the $srctree environment variable (which was unset) is set incorrectly. Note that the current value of $srctree is saved when the Kconfig instance is created (for consistency and to cleanly separate instances). Also note that e.g. $FOO in a 'source' statement does not refer to the environment variable FOO, but rather to the Kconfig Symbol FOO (which would commonly have 'option env="FOO"' in its definition).
make: Nothing to be done for 'all'.
All theory, my friend, is grey, But green is life's glad golden tree.
Re: Eclipse still showing "unresolved inclusion" and "Symbol couldn't be resolved"
Now that I am able to easily reproduce the error, I noticed that make runs in Eclipse when the file "/home/<User>/dev/mqtts/build/include/config/auto.conf" is present.
So a workaround for this problem is to find a make target that creates this file.
I found the following:
So if you extend the instructions and ask Windows users to call
and
the compilation also works in Eclipse for Windows users.
So a workaround for this problem is to find a make target that creates this file.
I found the following:
Code: Select all
$ make defconfig
Code: Select all
$ make menuconfig
$ make defconfig
Code: Select all
$ make clean
$ make defconfig
All theory, my friend, is grey, But green is life's glad golden tree.
Who is online
Users browsing this forum: No registered users and 322 guests