2016-10-09 38 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レポに記載されている手順に従って作業しました。ウィンドウで作業している場合は、arduino sdkがインストールされていることを確認してください。そして、sdkに正しいパスを設定します。

Linuxで作業している場合は、githubリポジトリのreadme.mdに指定されているとおりに、適切な依存関係がすべてインストールされていることを確認してください。

最後に、cmakeディレクトリとtoolchainファイルがプロジェクトフォルダに存在することを確認してください。

https://github.com/arduino-cmake/arduino-cmake 適切な手順については、

関連する問題