Closed
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.1.1
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I followed the guide on how to integrate arduino-esp32 in idf.
In the documentation it is mention we can install the component in global component directory so this is what I did.
In ~esp-idf/components
I did
cd components && \
git clone https://github.com/espressif/arduino-esp32.git arduino && \
cd arduino && \
git submodule update --init --recursive
Then in a fresh new project, when I run idf.py menuconfig
I expect the command to display menuconfig with arduino option as describe in documentation
What is the actual behavior?
Instead I got this error when running idf.py menuconfig
Executing action: menuconfig
Running cmake in directory /home/diablotin/Codes/ESP32/toto/build
Executing "cmake -G 'Unix Makefiles' -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/diablotin/.espressif/python_env/idf5.1_py3.11_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/diablotin/Codes/ESP32/toto"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.42.0")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/diablotin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/diablotin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /home/diablotin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal : ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
Dependencies lock doesn't exist, solving dependencies.
Updating lock file at /home/diablotin/Codes/ESP32/toto/dependencies.lock
Processing 1 dependencies:
[1/1] idf (5.1.1)
CMake Error at /home/diablotin/Codes/esp-idf/tools/cmake/build.cmake:266 (message):
Failed to resolve component 'mdns'.
Call Stack (most recent call first):
/home/diablotin/Codes/esp-idf/tools/cmake/build.cmake:302 (__build_resolve_and_add_req)
/home/diablotin/Codes/esp-idf/tools/cmake/build.cmake:595 (__build_expand_requirements)
/home/diablotin/Codes/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1
Steps to reproduce.
- git clone https://github.com/espressif/esp-idf.git tags/v5.1.1
cd ~esp-idf/components
cd components && \
git clone https://github.com/espressif/arduino-esp32.git arduino && \
cd arduino && \
git submodule update --init --recursive
idf.py create-project toto && cd toto && idf.py menuconfig
Build or installation Logs.
Running on Manjaro
More Information.
I tried to add an extra directory for component but did not change a thing.
I am for sure missing something but cannot figure out what