Page 1 of 1

New IDE don't compile :(

Posted: Thu Apr 03, 2025 4:28 pm
by apaczenko1993
Hello
I install new version of ESP-IDE pack 5.4.1, but after creating new project and build i have this error, do you know why, I tried to reinstall all ESP IDE and framework 3 times.

Code: Select all

Building in: C:\Projekty\ESP\IDETEST\build
Configuring in: C:\Projekty\ESP\IDETEST\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Espressif\frameworks\esp-idf-v5.4.1\tools\cmake\toolchain-esp32s3.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32s3 C:\Projekty\ESP\IDETEST
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.44.0.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Checking Python dependencies...
Constraint file: C:/Espressif\espidf.constraints.v5.4.txt
Requirement files:
 - C:/Espressif/frameworks/esp-idf-v5.4.1/tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe
Python requirements are satisfied.
-- Project sdkconfig file C:/Projekty/ESP/IDETEST/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: C:/Users/apacz/AppData/Local/Programs/Python/Python312/python.exe (found version "3.12.5") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "app-template" version: 1
-- Adding linker script C:/Projekty/ESP/IDETEST/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Projekty/ESP/IDETEST/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.bt_funcs.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.4.1/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Error at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/gdbinit.cmake:40 (file):
  file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
  exactly three arguments.
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:356 (__generate_gdbinit)
  C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:923 (__project_info)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
cmake --build . -- -v
ninja: error: loading 'build.ninja': GetLastError() = 2
Build complete (0 errors, 0 warnings): C:\Projekty\ESP\IDETEST\build
Total time taken to build the project: 10 023 ms

Re: New IDE don't compile :(

Posted: Sun May 04, 2025 3:28 pm
by Spooney
Hi

Anyone resolved this yet? I have exactly the same, clean install of Espressif IDE and latest esp-idf. Windows11.

I have even tried opening one of the examples, do nothing to it and still get this same error

FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
exactly three arguments.

Thanks

Mark

Re: New IDE don't compile :(

Posted: Sun May 04, 2025 6:46 pm
by kevinevans