-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
menuconfig fail on idf 4.0.1 by path conventions (in component.cmake) (IDFGH-3462) #5422
Comments
Hi @F99, Thanks for being patient while someone got back to you about this. Internally CMake always uses "CMake style paths", which use When ESP-IDF reads the The problematic path seems to be Is it possible for you to please share the top-level project CMakeLists.txt file? In particular, any parts to do with paths or setting |
Sure! In response to your post, I tried to replace the suspected variable by correct path convention:
And, after initial fail and second try, it seems to work. I get the config menu. While for me this could be a workaround, it should be fixed, imho. (the build was also successful) |
Hi @F99, Thanks for that. I missed this line in the ESP32-TFT-Library. I can explain the bug in the CMakeLists.txt file and how to fix it, will post on the linked issue. Angus |
Have commented on the linked issue and submitted a PR to fix it in that project. Unfortunately there isn't anything we do to make this simpler from the ESP-IDF side. (We could add a step to convert all INCLUDE_DIRS entries to CMake paths automatically but this means that it's not possible to use backslash escapes in any of those parameters, and this be necessary sometimes e.g. unicode in paths.) |
Recently moved from 3.3 to 4.0.1 for integration.
hello_world sample runs as expected.
cloned a project from https://github.com/jeremyjh/ESP32_TFT_library/
idf.py menuconfig
raises error:original report here:
jeremyjh/ESP32_TFT_library#8
similar bug here:
#4658
but the advice, replacing ldgen.mk, could not resolve the problem in cmake.
Moreover, it's about
idf_component_register
inmain/CMakeLists.txt
Here, you have
$ENV{IDF_PATH}/components
, which possibly somehow expands toC:/Users/F70/000-KL/FarmControlRoom/ESP32_TFT_library/main;C:\Users\F70\000-KL\FarmControlRoom\ESP_IDF_401/components
which contains the
\U
as part ofC:\Users
which in turn mixed up two different directory naming styles that seemingly can't work together in the make context. On Linux, it's working, on Win7: not. Really, I don't know how to resolve the Issue.
Environment
git describe --tags
to find it):// v3.2-dev-1148-g96cd3b75c
xtensa-esp32-elf-gcc --version
to find it):// 1.22.0-80-g6c4433a
The text was updated successfully, but these errors were encountered: