gpt4 book ai didi

zephyr-rtos - Zephyr CMake 错误

转载 作者:行者123 更新时间:2023-12-04 22:28:07 25 4
gpt4 key购买 nike

第一次尝试构建 Zephyr 时,我收到此错误消息:

CMake Error at CMakeLists.txt:1 (include):
include could not find load file:

/cmake/app/boilerplate.cmake


-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (target_sources):
Cannot specify sources for target "app" which is not built by this project.


CMake Error at CMakeLists.txt:5 (target_sources_ifdef):
Unknown CMake command "target_sources_ifdef".


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

最佳答案

未设置环境变量 ZEPHYR_BASE。

将 ZEPHYR_BASE 环境变量设置为 Zephyr 的根目录
存储库。

关于zephyr-rtos - Zephyr CMake 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47081317/

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