gpt4 book ai didi

linux - 尝试执行给定命令,这是在 Linux 上的 Kaa 开发平台上使用 ESP8266 设备的步骤之一

转载 作者:太空宇宙 更新时间:2023-11-04 12:06:45 26 4
gpt4 key购买 nike

代码是:-

cmake .. -DCMAKE_TOOLCHAIN_FILE=../kaa/toolchains/esp8266.cmake -DKAA_PLATFORM=esp8266 -DCMAKE_BUILD_TYPE=MinSizeRel -DWITH_EXTENSION_CONFIGURATION=1 -DWITH_EXTENSION_EVENT=1 -DWITH_EXTENSION_LOGGING=1 -DWITH_EXTENSION_NOTIFICATION=1 -DWITH_EXTENSION_USER=1 -DWITH_EXTENSION_PROFILE=1 -DWITH_ENCRYPTION=OFF -DKAA_MAX_LOG_LEVEL=3

我得到的输出错误消息是:-

-- Toolchain path: ESP8266_TOOLCHAIN_PATH-NOTFOUND CMake Deprecation Warning at /usr/local/share/cmake-3.10/Modules/CMakeForceCompiler.cmake:69 (message): The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set CMAKE_C_COMPILER and allow CMake to identify the compiler. Call Stack (most recent call first): kaa/toolchains/esp8266.cmake:40 (cmake_force_c_compiler) build/CMakeFiles/3.10.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:2 (project)

--Default SDK location will be used: /opt/Espressif/esp-rtos-sdk CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER:

ESP8266_TOOLCHAIN_PATH-NOTFOUND/bin/xtensa-lx106-elf-gcc is not a full path and was not found in the PATH.

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.

最佳答案

您必须更正xtensa-lx106-elf-gcc的路径。

转到您安装 esp-rtos-sdk 的目录。

然后在 CMakeLists.txt 中将 /opt/Espressif/esp-rtos-sdk 更改为 esp-rtos-sdk< 的完整路径/strong>.

例子:让我在 /home/vipul/Espressif/esp-rtos-sdk/ 安装 esp-rtos-sdk所以在 CMakeLists.txt /opt/Espressif/ 中,我将其更改为 /home/vipul/Espressif//p>

也在 /kaa/toolchains/esp8266.make 中做同样的改变。

关于linux - 尝试执行给定命令,这是在 Linux 上的 Kaa 开发平台上使用 ESP8266 设备的步骤之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50443669/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com