本地编译at工程失败

ragedream
Posts: 2
Joined: Tue Jul 16, 2024 6:19 am

本地编译at工程失败

Postby ragedream » Tue Jul 16, 2024 6:43 am

开始折腾自定义at的工程,通过powershall按照给的guide去执行每一步,
https://docs.espressif.com/projects/esp ... le_it.html
clone和build看起来都正常,能下载全所需的组件,但每次想要build执行python build.py menuconfig总是报如下错误。
请教下这个是什么原因导致的,代码没有修改,都是直接clone下来的。
CMake Error at esp-idf/tools/cmake/build.cmake:519 (message):
ERROR: Cannot establish a connection to the component registry. Are you
connected to the internet?

URL:
https://components-file.espressif.com/c ... lient.json


Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
CMakeLists.txt:123 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Espressif/frameworks/esp-at/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
A fatal error occurred: idf.py build failed


//////////尝试build报错为
PS C:\Espressif\frameworks\esp-at> idf.py build
Executing action: all (aliases: build)
Running cmake in directory C:\Espressif\frameworks\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\Espressif\frameworks\esp-at"...
CMake Error at CMakeLists.txt:9 (string):
string no output variable specified


CMake Error at CMakeLists.txt:10 (string):
string sub-command STRIP requires two arguments.


CMake Error at CMakeLists.txt:14 (string):
string begin index: 9 is out of range 0 - 0


CMake Error at CMakeLists.txt:15 (string):
string sub-command STRIP requires two arguments.


CMake Error at CMakeLists.txt:16 (string):
string no output variable specified


-- silence:0, sdkconfig:C:/Espressif/frameworks/esp-at/module_config/module__default/sdkconfig.defaults
-- partition_table_dir: C:/Espressif/frameworks/esp-at
esp-at branch: master
esp-at docs version: latest
no extra component dirs
-- IDF_TARGET not set, using default target: esp32
CMake Warning at esp-idf/tools/cmake/idf.cmake:18 (message):
IDF_PATH environment variable is different from inferred IDF_PATH.

Check if your project's top-level CMakeLists.txt includes the right
CMake files. Environment IDF_PATH will be used for the build:
C:/Espressif/frameworks/esp-idf-v5.2.2
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:121 (include)


-- Found Git: C:/Espressif/tools/idf-git/2.44.0/cmd/git.exe (found version "2.44.0.windows.1")
CMake Error at esp-idf/tools/cmake/idf.cmake:50 (include):
include could not find requested file:

uf2
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:121 (include)


-- Component directory C:/Espressif/frameworks/esp-at/components/fs_image does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-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-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-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-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "C:/Espressif/frameworks/esp-at/build/CMakeFiles/CMakeOutput.log".
CMake Error at esp-idf/tools/cmake/project.cmake:506 (message):
SDKCONFIG_DEFAULTS
'C:/Espressif/frameworks/esp-at/module_config/module__default/sdkconfig.defaults'
does not exist.
Call Stack (most recent call first):
CMakeLists.txt:123 (project)


cmake failed with exit code 1, output of the command is in the C:\Espressif\frameworks\esp-at\build\log\idf_py_stderr_output_20268 and C:\Espressif\frameworks\esp-at\build\log\idf_py_stdout_output_20268
PS C:\Espressif\frameworks\esp-at>

Who is online

Users browsing this forum: No registered users and 43 guests