インストールしたばかりでcmake
コンパイラが見つからないというエラーが発生しました。
作ろうとしているhttps://gitlab.com/interception/linux/tools新しいKubuntuインストールでディレクトリcmake ..
から実行すると、エラーが返されます。tools/build
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
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.
何が問題なの?コンパイラが一緒に提供されると思いましたがcmake
、これを使用するには設定が必要なのではないでしょうか? ? ?
ベストアンサー1
「コンパイラ」はインストールする必要がある別のパッケージです。 「build-essential」というパッケージg++
は別々にインストールするか、「build-essential」というパッケージに含めることができます。
これはsudo apt-get install build-essential
問題を解決し(sudo apt-get install g++
また機能する必要があります)、cmake ..
構成なしで機能します。