ESP-AT编译出错

Moderator: ESP_XCGuang

bravosix
Posts: 3
Joined: Tue Sep 07, 2021 5:01 am

ESP-AT编译出错

Postby bravosix » Fri Nov 26, 2021 12:39 pm

出现以下报错信息,ESP-IDF版本为4.3,编译例程正常
C:\Users\chen\esp\esp-at>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory c:\users\chen\esp\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\chen\esp\esp-at"...
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:/Users/chen/esp/esp-at/module_config/module__default/sdkconfig.defaults
CMake Error at CMakeLists.txt:53 (include):
include could not find load file:

C:/Users/chen/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:55 (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:55 (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:/Users/chen/esp/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/chen/esp/esp-at/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

dodo55
Posts: 41
Joined: Fri Nov 19, 2021 10:01 am

Re: ESP-AT编译出错

Postby dodo55 » Sat Dec 04, 2021 9:09 am

我的是win10环境
按照例程https://docs.espressif.com/projects/esp ... le_it.html
使用“./build.py menuconfig”提示:
'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
而使用“build.py menuconfig”就会提示用什么打开build.py。
就是无法安装例程上这么执行。 :(
好像例程是针对Linux的。
如何是好??????

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: ESP-AT编译出错

Postby ESP_Alson » Tue Dec 07, 2021 12:23 pm

如果想在 Windows 平台上编译 AT 固件,有三种方法:
1. 安装 ubuntu 虚拟机
2. 使用 WSL
3. 使用乐鑫推出的针对 Windows 平台的 CMD 工具。

你使用的是 ESP-IDF 版本为 4.3,则可以通过 https://dl.espressif.com/dl/esp-idf/?idf=4.3 下载。

下载完成后运行 ESP-IDF 4.3 CMD,在 DOS 环境下切换到您的 AT 目录。
1.先删除掉 build 目录和 sdkconfig 文件
2.之后在根目录下执行 build.py menuconfig 命令,这个命令会自动下载 AT 需要用到的 ESP-IDF 版本
3. 进入 esp-idf 目录先执行 install.bat 在执行 export.bat
4. 回到 AT 根目录执行 build.py build 即可

dodo55
Posts: 41
Joined: Fri Nov 19, 2021 10:01 am

Re: ESP-AT编译出错

Postby dodo55 » Fri Dec 10, 2021 3:31 am

ESP_Alson wrote:
Tue Dec 07, 2021 12:23 pm
如果想在 Windows 平台上编译 AT 固件,有三种方法:
1. 安装 ubuntu 虚拟机
2. 使用 WSL
3. 使用乐鑫推出的针对 Windows 平台的 CMD 工具。

你使用的是 ESP-IDF 版本为 4.3,则可以通过 https://dl.espressif.com/dl/esp-idf/?idf=4.3 下载。

下载完成后运行 ESP-IDF 4.3 CMD,在 DOS 环境下切换到您的 AT 目录。
1.先删除掉 build 目录和 sdkconfig 文件
2.之后在根目录下执行 build.py menuconfig 命令,这个命令会自动下载 AT 需要用到的 ESP-IDF 版本
3. 进入 esp-idf 目录先执行 install.bat 在执行 export.bat
4. 回到 AT 根目录执行 build.py build 即可
我安装ESP-AT之前我已经安装好ESP-IDF V4.3了,并且编译编译任何IDF中的任何例程,编译自己开发的工程也没有任何问题,现在的问题是我在切换到ESP-AT目录下使用build.py menuconfig没有执行任何东西,只有弹出打开方式选择哪个应用打开build.py文件(对了,不知道如何贴图),是不是因为我没有单独安装Python的缘故,我安装ESP-IDF都是使用内置的插件。

dodo55
Posts: 41
Joined: Fri Nov 19, 2021 10:01 am

Re: ESP-AT编译出错

Postby dodo55 » Sat Dec 11, 2021 9:31 am

ESP_Alson wrote:
Tue Dec 07, 2021 12:23 pm
如果想在 Windows 平台上编译 AT 固件,有三种方法:
1. 安装 ubuntu 虚拟机
2. 使用 WSL
3. 使用乐鑫推出的针对 Windows 平台的 CMD 工具。

你使用的是 ESP-IDF 版本为 4.3,则可以通过 https://dl.espressif.com/dl/esp-idf/?idf=4.3 下载。

下载完成后运行 ESP-IDF 4.3 CMD,在 DOS 环境下切换到您的 AT 目录。
1.先删除掉 build 目录和 sdkconfig 文件
2.之后在根目录下执行 build.py menuconfig 命令,这个命令会自动下载 AT 需要用到的 ESP-IDF 版本
3. 进入 esp-idf 目录先执行 install.bat 在执行 export.bat
4. 回到 AT 根目录执行 build.py build 即可
我单独安装了Python 3.8.7环境,然后就出现以下信息

Code: Select all

D:\Docs\Espressif\esp-at>build.py menuconfig
Traceback (most recent call last):
  File "D:\Docs\Espressif\esp-at\build.py", line 25, in <module>
    import xlrd
ModuleNotFoundError: No module named 'xlrd'

D:\Docs\Espressif\esp-at>
这又是什么情况呢?

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: ESP-AT编译出错

Postby ESP_Alson » Thu Dec 30, 2021 2:40 am

首先 ESP-AT 工程是建议到 ESP-IDF 基础之上的一个应用,对于这个概念您应该能理解。但是 ESP-AT 对 ESP-IDF 有特定版本的要求,您在 Windows 平台上执行 build.py menuconfig 的时候,脚本会自动的从 github 上下载对应的 ESP-IDF 版本,之后您会在 ESP-AT 的根目录下看到 esp-idf 这个目录,这个 esp-idf 才是 ESP-AT 需要的 ESP-IDF 版本。下载完成之后您需要进入 ESP-AT 根目录下的 esp-idf 执行 install.bat 和 export.bat 脚本重新部署一下编译环境。

对于 No module named 'xlrd' 这个问题,很简单,ESP-AT 的 python 运行需要这个 xlrd 的包,您可以执行 pip install xlrd 即可

logan12
Posts: 2
Joined: Sun Oct 08, 2023 2:15 am

Re: ESP-AT编译出错

Postby logan12 » Sun Oct 08, 2023 2:18 am

bravosix wrote:
Fri Nov 26, 2021 12:39 pm
出现以下报错信息,ESP-IDF版本为4.3,编译例程正常
C:\Users\chen\esp\esp-at>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory c:\users\chen\esp\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\chen\esp\esp-at"...
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:/Users/chen/esp/esp-at/module_config/module__default/sdkconfig.defaults
CMake Error at CMakeLists.txt:53 (include):
include could not find load file:

C:/Users/chen/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:55 (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:55 (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:/Users/chen/esp/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/chen/esp/esp-at/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
你好,你解决这个问题了吗

Who is online

Users browsing this forum: No registered users and 10 guests