用下面网页的教程安装流程,安装成功,
https://docs.espressif.com/projects/esp ... t-overview
=====================================================================================================
使用ESP-IDF launch GUI configation tool失败,停留在 ESP-IDF :Menuconfig: loading initial values.. 提示窗口。
输出显示:
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:9 (string):
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
string no output variable specified
CMake Error at CMakeLists.txt:13 (string):
string begin index: 9 is out of range 0 - 0
CMake Error at CMakeLists.txt:14 (string):
string sub-command STRIP requires two arguments.
CMake Error at CMakeLists.txt:15 (string):
string no output variable specified
silence:0 sdkconfig:C:/ESP/esp-at/module_config/module__default/sdkconfig.defaults
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:49 (include):
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
include could not find load file:
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
C:/ESP/esp-at/esp-idf/tools/cmake/project.cmake
-----------------------END OF ERROR-----------------------
-- The C compiler identification is unknown
=====================================================================================================
使用ESP-IDE Build project,也失败,终端窗口提示
> Executing task: cmake -G Ninja .. <
CMake Error at CMakeLists.txt:9 (string):
string no output variable specified
CMake Error at CMakeLists.txt:13 (string):
string begin index: 9 is out of range 0 - 0
CMake Error at CMakeLists.txt:14 (string):
string sub-command STRIP requires two arguments.
CMake Error at CMakeLists.txt:15 (string):
string no output variable specified
silence:0 sdkconfig:C:/ESP/esp-at/module_config/module__default/sdkconfig.defaults
CMake Error at CMakeLists.txt:49 (include):
include could not find load file:
C:/ESP/esp-at/esp-idf/tools/cmake/project.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:51 (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.
CMake Error at CMakeLists.txt:51 (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.
-- Configuring incomplete, errors occurred!
See also "C:/ESP/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/ESP/esp-at/build/CMakeFiles/CMakeError.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja ..”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
=========================================================================
command 编译,使用 ./build.py menuconfig 命令也无法成功。
请问是不是当前版本的安装流程不同?
哪里有对应当前版本 esp-at 使用 vscode 的esp-idf扩展编译的教程?
win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
Moderator: ESP_XCGuang
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
您好,关于您提出的问题回答如下:
不知道您用的模式是 ESP32 还是 ESP32-C3,不过这两种模块编译方式都差不多。以 ESP32 模块为例,ESP-AT 是基于 IDF 来做的,您可以先参考 https://docs.espressif.com/projects/esp ... index.html 先参考 Get Started 章节并编译 hello_world demo demo 以确认 IDF 的编译环境。hello_world demo demo 路径为 examples/get-started/hello_world .
不知道您用的模式是 ESP32 还是 ESP32-C3,不过这两种模块编译方式都差不多。以 ESP32 模块为例,ESP-AT 是基于 IDF 来做的,您可以先参考 https://docs.espressif.com/projects/esp ... index.html 先参考 Get Started 章节并编译 hello_world demo demo 以确认 IDF 的编译环境。hello_world demo demo 路径为 examples/get-started/hello_world .
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
demo程序编译正常:
将 esp-at 目录同样放置到c:\esp\project\esa-at, 点击vscode 的ESP-IDF Explore的 ESP-IDF Build project, 执行得到如下:
Code: Select all
[86/86] Generating binary image from built executable
esptool.py v3.1-dev
Merged 1 ELF section
Generated C:/ESP/project/hello_world/build/bootloader/bootloader.bin
[990/990] Generating binary image from built executable
esptool.py v3.1-dev
Merged 1 ELF section
Generated C:/ESP/project/hello_world/build/hello-world.bin
Code: Select all
> Executing task: cmake -G Ninja .. <
CMake Error at CMakeLists.txt:9 (string):
string no output variable specified
CMake Error at CMakeLists.txt:13 (string):
string begin index: 9 is out of range 0 - 0
CMake Error at CMakeLists.txt:14 (string):
string sub-command STRIP requires two arguments.
CMake Error at CMakeLists.txt:15 (string):
string no output variable specified
silence:0 sdkconfig:C:/ESP/project/esp-at/module_config/module__default/sdkconfig.defaults
CMake Error at CMakeLists.txt:49 (include):
include could not find load file:
C:/ESP/project/esp-at/esp-idf/tools/cmake/project.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:51 (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.
CMake Error at CMakeLists.txt:51 (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.
-- Configuring incomplete, errors occurred!
See also "C:/ESP/project/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/ESP/project/esp-at/build/CMakeFiles/CMakeError.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja ..”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
演示hello_world编译正常,最后能得到bin文件。
但是同样的vscode ESP_IDF环境编译github的 ESP-AT就出错。
提示:
但是同样的vscode ESP_IDF环境编译github的 ESP-AT就出错。
提示:
Code: Select all
> Executing task: cmake -G Ninja .. <
CMake Error at CMakeLists.txt:9 (string):
string no output variable specified
CMake Error at CMakeLists.txt:13 (string):
string begin index: 9 is out of range 0 - 0
CMake Error at CMakeLists.txt:14 (string):
string sub-command STRIP requires two arguments.
CMake Error at CMakeLists.txt:15 (string):
string no output variable specified
silence:0 sdkconfig:C:/ESP/project/esp-at/module_config/module__default/sdkconfig.defaults
CMake Error at CMakeLists.txt:49 (include):
include could not find load file:
C:/ESP/project/esp-at/esp-idf/tools/cmake/project.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:51 (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.
CMake Error at CMakeLists.txt:51 (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.
-- Configuring incomplete, errors occurred!
See also "C:/ESP/project/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/ESP/project/esp-at/build/CMakeFiles/CMakeError.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja ..”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
打开hello-world后,可以使用 ESP-IDF:SDK Configuration editor.
但是esp-at时,出现错误提示:
但是esp-at时,出现错误提示:
Code: Select all
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:9 (string):
string no output variable specified
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:13 (string):
string begin index: 9 is out of range 0 - 0
CMake Error at CMakeLists.txt:14 (string):
string sub-command STRIP requires two arguments.
CMake Error at CMakeLists.txt:15 (string):
string no output variable specified
silence:0 sdkconfig:C:/ESP/project/esp-at/module_config/module__default/sdkconfig.defaults
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
CMake Error at CMakeLists.txt:49 (include):
include could not find load file:
C:/ESP/project/esp-at/esp-idf/tools/cmake/project.cmake
-----------------------END OF ERROR-----------------------
-- The C compiler identification is unknown
-
- Posts: 1
- Joined: Tue Aug 24, 2021 5:17 am
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
我遇到相同的问题,使用VSCODE编译helloworld没有问题,但是ESP-AT的错误一样,请问有答案吗?
我看到ESP-AT有依赖具体的ESP-IDF版本,目前我的ESP-IDF是最新开发分支,跟这个有关系吗?
我看到ESP-AT有依赖具体的ESP-IDF版本,目前我的ESP-IDF是最新开发分支,跟这个有关系吗?
Re: win10 vscode编译esp-at失败,请问有对应最新版的教程吗?
统一回复下,Windows 平台不推荐使用 VSCode 插件 Espressif IDF
ESP32-AT 基于 IDF v4.2 release 版本,ESP32C3-AT 基于 IDF v4.3 release 版本。所以 ESP-AT 可以基于 Espressif 提供的 ESP-IDF 4.2 CMD 或者 ESP-IDF 4.3 CMD 进行编译,对应下载地址为 https://dl.espressif.com/dl/esp-idf/?idf=4.2 或 https://dl.espressif.com/dl/esp-idf/?idf=4.3
打开工具后进入 ESP-AT 目录,在根目录下执行 build.py menuconfig 进行模块选择,执行 build.py build 进行编译。可以参考 https://docs.espressif.com/projects/esp ... le_it.html
ESP32-AT 基于 IDF v4.2 release 版本,ESP32C3-AT 基于 IDF v4.3 release 版本。所以 ESP-AT 可以基于 Espressif 提供的 ESP-IDF 4.2 CMD 或者 ESP-IDF 4.3 CMD 进行编译,对应下载地址为 https://dl.espressif.com/dl/esp-idf/?idf=4.2 或 https://dl.espressif.com/dl/esp-idf/?idf=4.3
打开工具后进入 ESP-AT 目录,在根目录下执行 build.py menuconfig 进行模块选择,执行 build.py build 进行编译。可以参考 https://docs.espressif.com/projects/esp ... le_it.html
Who is online
Users browsing this forum: No registered users and 29 guests