How to fix this error?

MianQi
Posts: 4
Joined: Mon Aug 30, 2021 10:26 am

How to fix this error?

Postby MianQi » Mon Aug 30, 2021 10:31 am

I installed esp-idf in eclipse, and I could create a project of esp32 in it, while, when I built it, it shown these:

[Codebox]
Building in: /home/mq/eclipse-workspace/test_ESP32_A1S/build
Configuring in: /home/mq/eclipse-workspace/test_ESP32_A1S/build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/mq/esp/esp-idf/esp-idf-master/tools/cmake/toolchain-esp32s2.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32s2 /home/mq/eclipse-workspace/test_ESP32_A1S
-- Found Git: /usr/bin/git (found version "2.25.1")
fatal: not a git repository (or any of the parent directories): .git
CMake Warning at /home/mq/esp/esp-idf/esp-idf-master/tools/cmake/project.cmake:282 (message):
enabled ccache in build but ccache program not found
Call Stack (most recent call first):
CMakeLists.txt:6 (project)


-- 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: /home/mq/.espressif/tools/xtensa-esp32s2-elf/esp-2021r1-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/mq/.espressif/tools/xtensa-esp32s2-elf/esp-2021r1-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-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/mq/.espressif/tools/xtensa-esp32s2-elf/esp-2021r1-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s2
-- Checking Python dependencies...
pkg_resources cannot be imported probably because the pip package is not installed and/or using a legacy Python interpreter. Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
CMake Error at /home/mq/esp/esp-idf/esp-idf-master/tools/cmake/build.cmake:285 (message):
Some Python dependencies must be installed. Check above message for
details.
Call Stack (most recent call first):
/home/mq/esp/esp-idf/esp-idf-master/tools/cmake/build.cmake:414 (__build_check_python)
/home/mq/esp/esp-idf/esp-idf-master/tools/cmake/project.cmake:375 (idf_build_process)
-- Configuring incomplete, errors occurred!
CMakeLists.txt:6 (project)
See also "/home/mq/eclipse-workspace/test_ESP32_A1S/build/CMakeFiles/CMakeOutput.log".


cmake --build . -- -v
ninja: error: loading 'build.ninja': No such file or directory
Build complete (0 errors, 0 warnings): /home/mq/eclipse-workspace/test_ESP32_A1S/build
Total time taken to build the project: 453 ms[/Codebox]

now, I have some improvement, the current error prompts are:
https://ibb.co/SyGG0Xp


How to fix it?

Who is online

Users browsing this forum: No registered users and 66 guests