2017-11-02 4 views
1

:제퍼 CMake 나는이 오류 메시지가 무엇입니까 처음 제퍼 구축을 위해 노력 오류

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! 

답변

3

환경 변수 ZEPHYR_BASE가 설정되어 있지 않습니다.

ZEPHYR_BASE 환경 변수를 Zephyr 저장소의 루트로 설정하십시오.

+0

ZEPHYR_BASE는 일반적으로 Zephyr의 최상위 디렉토리에서'zephyr-env.sh' 스크립트를 실행 (실행하지 않음!)하여 설정됩니다. 자세한 정보는 문서에 있습니다. http://docs.zephyrproject.org/getting_started/getting_started.html#building-a-sample-application – pfalcon

+0

또한 이러한 오류가 발생한 후에는 빌드 디렉토리를 수동으로 삭제하고에서 다시 시작하는 것이 좋습니다 할퀴다. – pfalcon