2016-10-09 3 views
0

CMake를 CLion에로드 할 때 문제가 있습니다. Arduino 프로그래밍을위한 적절한 환경을 설정하려고합니다.CLion CMake 문제

나는 분명히 뭔가 빠졌지 만, 이에 대한 기능적 해결책을 찾지 못했습니다. 아무도 나에게 다음과 같은 오류를 일으키는 것에 대한 힌트를 줄 수 있습니까?

Error:The CMAKE_C_COMPILER: 
avr-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. 

Error:The CMAKE_CXX_COMPILER: 
    avr-g++ 
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 "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. 
+0

경로에 적절한 C 및 C++ 컴파일러가 없습니다. 적어도 avr-gcc 및 avr-g ++라고하는 컴파일러는 없습니다. 특정 변수를 설치하거나 CMAKE_C_COMPILER 및 CMAKE_CXX_COMPILER에 전체 경로를 추가하십시오. – usr1234567

+0

흠, MinGW에서 "avr-gcc"또는 "avr-g ++"라고하는 일반적인 gcc와 g ++ 만 찾을 수 없습니다. – Xorgon

+0

그런 다음 변수를 설정하십시오. 관련 질문 및 CMake 문서를 확인하십시오. – usr1234567

답변

0

나는 arduino-cmake repo에 주어진 단계에 따라 작동 시켰습니다. 창문에서 작업하는 경우 arduino SDK가 설치되어 있는지 확인하십시오. 그리고 sdk에 올바른 경로를 설정하십시오.

Linux에서 작업하는 경우 github repo의 readme.md에 지정된대로 모든 올바른 종속성이 설치되어 있는지 확인하십시오.

마지막으로 중요한 것은 de cmake 디렉토리와 toolchain 파일이 프로젝트 폴더에 있는지 확인하십시오.

https://github.com/arduino-cmake/arduino-cmake 올바른 지침.