配置和编译官方ESP-AT程序失败
Posted: Thu Dec 08, 2022 10:46 am
请教各位大佬:
我从github上下载了esp-at-master的程序(也尝试过其他版本),但是无论用VSCODE集成的ESP-IDF工具,还是用命令窗口,都不能成功配置和编译项目。
输出提示如下:
[SDK Configuration Editor]
---------------------------ERROR--------------------------
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
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
silence:0 sdkconfig:D:/ESP_Programme/esp-at/module_config/module__default/sdkconfig.defaults
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
fatal: not a git repository (or any of the parent directories): .git
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
fatal: not a git repository (or any of the parent directories): .git
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
esp-at branch:
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:64 (string):
string sub-command REPLACE requires at least four arguments.
esp-at docs version:
CMake Error at CMakeLists.txt:89 (include):
include could not find requested file:
D:/ESP_Programme/esp-at/esp-idf/tools/cmake/project.cmake
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
-- The C compiler identification is unknown
[SDK Configuration Editor]
-- The CXX compiler identification is unknown
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:91 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:91 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
-- Configuring incomplete, errors occurred!
See also "D:/ESP_Programme/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "D:/ESP_Programme/esp-at/build/CMakeFiles/CMakeError.log".
[SDK Configuration Editor]
---------------------------ERROR--------------------------
cmake failed with exit code 1
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
Executing action: confserver
Running cmake in directory d:\esp_programme\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 d:\esp_programme\esp-at"...
[SDK Configuration Editor]
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 2
-----------------------END OF ERROR-----------------------
终端提示如下:
ninja: error: loading 'build.ninja': 系统找不到指定的文件。
* 终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
请问,我这是缺什么步骤没做吗?
我从github上下载了esp-at-master的程序(也尝试过其他版本),但是无论用VSCODE集成的ESP-IDF工具,还是用命令窗口,都不能成功配置和编译项目。
输出提示如下:
[SDK Configuration Editor]
---------------------------ERROR--------------------------
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
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
silence:0 sdkconfig:D:/ESP_Programme/esp-at/module_config/module__default/sdkconfig.defaults
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
fatal: not a git repository (or any of the parent directories): .git
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
fatal: not a git repository (or any of the parent directories): .git
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
esp-at branch:
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:64 (string):
string sub-command REPLACE requires at least four arguments.
esp-at docs version:
CMake Error at CMakeLists.txt:89 (include):
include could not find requested file:
D:/ESP_Programme/esp-at/esp-idf/tools/cmake/project.cmake
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
-- The C compiler identification is unknown
[SDK Configuration Editor]
-- The CXX compiler identification is unknown
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:91 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:91 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
-- Configuring incomplete, errors occurred!
See also "D:/ESP_Programme/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "D:/ESP_Programme/esp-at/build/CMakeFiles/CMakeError.log".
[SDK Configuration Editor]
---------------------------ERROR--------------------------
cmake failed with exit code 1
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
Executing action: confserver
Running cmake in directory d:\esp_programme\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 d:\esp_programme\esp-at"...
[SDK Configuration Editor]
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 2
-----------------------END OF ERROR-----------------------
终端提示如下:
ninja: error: loading 'build.ninja': 系统找不到指定的文件。
* 终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
请问,我这是缺什么步骤没做吗?