配置和编译官方ESP-AT程序失败

Moderator: ESP_XCGuang

birdlf
Posts: 6
Joined: Mon Nov 21, 2022 7:00 am

配置和编译官方ESP-AT程序失败

Postby birdlf » 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。

请问,我这是缺什么步骤没做吗?

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: 配置和编译官方ESP-AT程序失败

Postby ESP_Sun » Fri Dec 09, 2022 2:55 am

在这些环境上可以正确编译 IDF 的 example hello_world 吗?

birdlf
Posts: 6
Joined: Mon Nov 21, 2022 7:00 am

Re: 配置和编译官方ESP-AT程序失败

Postby birdlf » Fri Dec 09, 2022 3:14 am

可以的。包括我自己写的S3的程序,也能正常编译和监视。
只是GITHUB上下下来的程序会报错。

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: 配置和编译官方ESP-AT程序失败

Postby ESP_Sun » Fri Dec 09, 2022 5:30 am

是按照《编译 ESP-AT 工程》https://docs.espressif.com/projects/esp ... tml#esp-at 来搭建的编译环境,以及编译的吗?

birdlf
Posts: 6
Joined: Mon Nov 21, 2022 7:00 am

Re: 配置和编译官方ESP-AT程序失败

Postby birdlf » Tue Dec 27, 2022 3:28 am

是的,是按照官网的这个帖子来搭建的。并且esp-idf里面的例程也可以编译下载,自己建的工程也可以编译下载。
只是官方的AT项目,会提示错误。

Who is online

Users browsing this forum: No registered users and 41 guests