idf.py build errors/messages

weswitt
Posts: 2
Joined: Tue Aug 16, 2016 8:05 pm

idf.py build errors/messages

Postby weswitt » Tue Dec 16, 2025 5:13 pm

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

Minatel
Espressif staff
Espressif staff
Posts: 433
Joined: Mon Jan 04, 2021 2:06 pm

Re: idf.py build errors/messages

Postby Minatel » Fri Dec 19, 2025 3:30 pm

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

Code: Select all

cmake_minimum_required(VERSION 3.22)
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

Code: Select all

idf.py set-target esp32
CMake falls back to reading the target from sdkconfig. This is expected behavior and does not mean your sdkconfig is wrong.

Who is online

Users browsing this forum: Qwantbot and 5 guests