Skip to content

Problems using arduino-ESP32 as ESP-IDF component #5064

Closed
@lgLindstrom

Description

@lgLindstrom

Hi

I am trying to follow this instruction https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md

This line gives me problem:

make menuconfig

The make command seems to be missing and als the menuconfig file:

My process.

I am running VsCode on Windows 10.
I have installed VsCode ESP-IDF extension.
I have configured the ESP-IDF extension. Downloaded version 3.5
I have installed the Blink example from the ESP-IDG.
I have compiled the example and it worked well.

THEN,

  • In the folder of the Blink example, I using Powershell , I tried to follow the installation instruction above and got this error with make menuconfig.
  • After that the Blink example no longer compiles with the following error:
Executing task: cmake -G Ninja .. <

-- Checking Python dependencies...
Python requirements from C:/Users/lglin/esp/esp-idf\requirements.txt are satisfied.
-- Building for target esp32
-- ccache will be used for faster builds
CMake Error at C:/Users/lglin/OneDrive/experimentalProjects/esp-idf/blink/blink/components/arduino/CMakeLists.txt:171 (idf_component_register):
  Unknown CMake command "idf_component_register".
Call Stack (most recent call first):
  C:/Users/lglin/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:107 (include)
  C:/Users/lglin/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:114 (expand_component_requirements)
  C:/Users/lglin/esp/esp-idf/tools/cmake/scripts/expand_requirements.cmake:217 (expand_component_requirements)


CMake Error at C:/Users/lglin/esp/esp-idf/tools/cmake/idf_functions.cmake:339 (message):
  Failed to expand component requirements
Call Stack (most recent call first):
  C:/Users/lglin/esp/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/lglin/OneDrive/experimentalProjects/esp-idf/blink/blink/build/CMakeFiles/CMakeOutput.log". 
See also "C:/Users/lglin/OneDrive/experimentalProjects/esp-idf/blink/blink/build/CMakeFiles/CMakeError.log".  
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

So, what to do?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions