Problem with VsCode and ESP-IDF 5

lg.lindstrom
Posts: 48
Joined: Fri Sep 17, 2021 4:02 pm

Problem with VsCode and ESP-IDF 5

Postby lg.lindstrom » Tue Dec 06, 2022 8:09 am

Using the ESP-IDF addon for VsCode I just installed ESP-IDF 5. Installation went smooth, no warnings or errors.

The I opened up my project, performed a full clean and tried to build my new project.

This is what I see.

Code: Select all

 *  Executing task in folder mdcb: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B c:\hostedProjects\mdcb\build -S c:\hostedProjects\mdcb 
-- Found Git: C:/Users/lglin/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
-- 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/lglin/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/lglin/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/lglin/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/lglin/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/lglin/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at C:/Users/lglin/esp/esp-idf/tools/cmake/build.cmake:519 (message):
  usage: __main__.py [-h] [--project_dir PROJECT_DIR]

                     {prepare_dependencies,inject_requirements,inject_requrements}
                     ...

  __main__.py: error: unrecognized arguments: --interface_version=1

Call Stack (most recent call first):
  C:/Users/lglin/esp/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
  CMakeLists.txt:11 (project)
Is there some steps I am missing ?

lg.lindstrom
Posts: 48
Joined: Fri Sep 17, 2021 4:02 pm

Re: Problem with VsCode and ESP-IDF 5

Postby lg.lindstrom » Sat Dec 10, 2022 5:10 pm

Okey,, I managed to solve this.

Who is online

Users browsing this forum: No registered users and 51 guests