Page 1 of 1

IDF_PATH env variable is not cleared? Can't build - tried for hours to get the £%$£$"3 thing working...help!

Posted: Sat Mar 20, 2021 1:29 pm
by drsp123
Hi,

Firstly - this is probably not a bug - just my incompetence, however I cannot get the ESP-IDF to build the Amazon FreeRTOS demo project.

I have installed (well installed/uninstalled/reinstalled) all the components multiple times and am now running ESP-IDF Tools 2.5 toolchain.

cmake --version = 3.14.3
ninja --version = 1.10.0
xtensa-esp32-elf-gcc --version = 8.4.0
echo %IDF_PATH% = C:\Users\Duncan\Desktop\esp-idf (correct for ESP-IDF Tools 2.5 install location - though not sure where this is set)
echo %IDF_TOOLS_PATH% = C:\Users\Duncan\.espressif (correct for ESP-IDF Tools 2.5 install location - set as user env variable in windows)
OS = Win 10 (ver 20H2)

If anyone could help point out what no doubt is my own stupid error, it would be much appreciated, I've run out of my usual random trial and error approach to such problems and have hit a dead end...command and output is below:

Code: Select all

PS D:\FreeRTOS> idf.py -DVENDOR=espressif -DBOARD=esp32_devkitc -DCOMPILER=xtensa-esp32 build
Executing action: all (aliases: build)
Running cmake in directory d:\linux_lzy_smoke\freertos\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DVENDOR=espressif -DBOARD=esp32_devkitc -DCOMPILER=xtensa-esp32 -DCCACHE_ENABLE=1 d:\freertos"...
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/username/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Found Git: E:/Git/cmd/git.exe (found version "2.27.0.windows.1")
WARNING: IDF_PATH environment variable is not cleared.
    If CMake is generating an error, consider clearing the IDF_PATH environment
    variable, and generating a clean build. This message can be ignored if
    CMake was successful.
CMake Error at vendors/espressif/esp-idf/tools/cmake/idf_functions.cmake:24 (include):
  include could not find load file:

    components
Call Stack (most recent call first):
  vendors/espressif/boards/esp32/CMakeLists.txt:39 (include)
  CMakeLists.txt:70 (include)


CMake Error at vendors/espressif/esp-idf/tools/cmake/idf_functions.cmake:44 (idf_set_target):
  Unknown CMake command "idf_set_target".
Call Stack (most recent call first):
  vendors/espressif/boards/esp32/CMakeLists.txt:39 (include)
  CMakeLists.txt:70 (include)


-- Configuring incomplete, errors occurred!
See also "D:/Linux_LZY_Smoke/FreeRTOS/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1