Open H-T-6221 opened 4 days ago
make, g++のインストールをしたが、エラーが解消されていない。
make https://qiita.com/ryuso/items/cf0c1d83544103cacf05
g++ https://sourceforge.net/projects/mingw/
↓のエラーはCMakeLists.txtにパスを設定することで解消された。
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
set( CMAKE_CXX_COMPILER "/pathto/g++" )
set( CMAKE_C_COMPILER "/pathto/gcc" )
根本さんからコメントをいただいた。
windowsのcmakeで`no such file or directory`が出ているのですね。
`no such file or directory`は以下の原因が考えれるようですね。
存在しないファイル、ディレクトリ名などを指定する、タイポするなどパス指定を間違った場合等に発生します。
また、アプリケーションによっては改行コードがwindowsのCR+LFの場合に発生する場合もあります。
既に確認されていると思いますが、パスの指定や、改行コードなど見直してみてください。
コメントいただいた内容を試してみた。
パスの指定 buildフォルダでcmake ..
を実施した。
ディレクトリ構成
C:.
├─build
├─CMakeLists.txt
├─client
└─server
また、改行コードはLF→CR+LF
に変更したが、同様のエラーが発生した。
※LF
でも同様のエラー
cmakeでビルドする際にエラー発生 cmakeをインストールし、JenkinsのPluginを有効にした後で実行したが
cmake: command not found
となった。 コマンドプロンプトでcmakeを実行してみたところ、エラーが発生していた。CMakeLists.txt