espressif / esp-adf

Espressif Audio Development Framework
Other
1.55k stars 684 forks source link

[lcd_camera]ERROR: 'git config --get remote.origin.url' failed with exit code 1 #1297

Closed BigJohnn closed 3 days ago

BigJohnn commented 1 week ago

Environment

-- 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: D:/softwares/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: D:/softwares/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-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: D:/softwares/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Building ESP-IDF components for target esp32s3

Dependencies lock doesn't exist, solving dependencies.

---------------------------ERROR--------------------------

CMake Error at D:/softwares/esp/v5.3.1/esp-idf/tools/cmake/build.cmake:552 (message): ERROR: 'git config --get remote.origin.url' failed with exit code 1

Call Stack (most recent call first):

-----------------------END OF ERROR----------------------- -- Configuring incomplete, errors occurred! See also "D:/Codes/esp/esp-adf/examples/display/lcd_camera/build/CMakeFiles/CMakeOutput.log".

---------------------------ERROR--------------------------

D:/softwares/esp/v5.3.1/esp-idf/tools/cmake/project.cmake:710 (idf_build_process) CMakeLists.txt:8 (project)

-----------------------END OF ERROR----------------------- ---------------------------ERROR--------------------------

cmake failed with exit code 1, output of the command is in the D:\Codes\esp\esp-adf\examples\display\lcd_camera\build\log\idf_py_stderr_output_33992 and D:\Codes\esp\esp-adf\examples\display\lcd_camera\build\log\idf_py_stdout_output_33992

-----------------------END OF ERROR----------------------- ---------------------------ERROR--------------------------

SDK Configuration editor confserver process exited with code: 2 -----------------------END OF ERROR-----------------------

Problem Description

尝试了三个版本的idf,总是报ERROR: 'git config --get remote.origin.url' failed with exit code 1 但是idf-terminal其实是输出正常的: PS D:\Codes\esp\esp-adf\examples\display\lcd_camera> git config --get remote.origin.url git@github.com:espressif/esp-adf.git

Expected Behavior

不报上述error

Steps to Reproduce

  1. 选择target,或menuconfig,或build,都会出

Other Items If Possible

TempoTian commented 3 days ago

这个大概率是你的build环境没办法拉github目录吧,这个example需要拉 https://github.com/espressif/esp32-camera.git 你可以手动下载下来放到工程的components目录下面,然后删掉 yml 文件试试。 https://github.com/espressif/esp-adf/blob/master/examples/display/lcd_camera/main/idf_component.yml

BigJohnn commented 3 days ago

这个大概率是你的build环境没办法拉github目录吧,这个example需要拉 https://github.com/espressif/esp32-camera.git 你可以手动下载下来放到工程的components目录下面,然后删掉 yml 文件试试。 https://github.com/espressif/esp-adf/blob/master/examples/display/lcd_camera/main/idf_component.yml

多谢,是这个问题了。 另外请教下,我直接改idf_components.yml里面git链接也是不起作用,可能是啥原因?

dependencies:
  espressif/jsmn: "^1.1.0"
  esp32-camera:
  git: git@github.com:espressif/esp32-camera.git  # 这个git clone 是非常顺畅的