When doing a command line build I'm seeing some errors/messages that I'd like to understand.
1) I see a "CMake Deprecation Warning" about the cmake_minimum_required. Is this caused by the fact that I'm using a current version of cmake?
2) I get the error "IDF_TARGET is not set, guessed esp32 from sdkconfig". This I don't understand this because the target is set. Here are the relevant lines from my sdkconfig.
CONFIG_IDF_TARGET_ARCH_XTENSA=y
CONFIG_IDF_TARGET_ARCH="xtensa"
CONFIG_IDF_TARGET="esp32"
CONFIG_IDF_TARGET_ESP32=y
idf.py build errors/messages
Re: idf.py build errors/messages
Hi,
1) I see a "CMake Deprecation Warning" about the cmake_minimum_required. Is this caused by the fact that I'm using a current version of cmake?
Yes, this warning is related to the CMake version you are using, but it’s about the minimum version you declare vs. what ESP-IDF expects, not just “being current”.
Check on the CMakeLists.txt file
In ESP-IDF v5.0 the minimal supported CMake version was raised to 3.16 (and later to 3.22 in current docs). Versions lower than that are not supported.
2) I get the error "IDF_TARGET is not set, guessed esp32 from sdkconfig". This I don't understand this because the target is set. Here are the relevant lines from my sdkconfig.
When you don't specify the target by
CMake falls back to reading the target from sdkconfig. This is expected behavior and does not mean your sdkconfig is wrong.
1) I see a "CMake Deprecation Warning" about the cmake_minimum_required. Is this caused by the fact that I'm using a current version of cmake?
Yes, this warning is related to the CMake version you are using, but it’s about the minimum version you declare vs. what ESP-IDF expects, not just “being current”.
Check on the CMakeLists.txt file
Code: Select all
cmake_minimum_required(VERSION 3.22)2) I get the error "IDF_TARGET is not set, guessed esp32 from sdkconfig". This I don't understand this because the target is set. Here are the relevant lines from my sdkconfig.
When you don't specify the target by
Code: Select all
idf.py set-target esp32Who is online
Users browsing this forum: Qwantbot and 5 guests
