i'm trying compile git project , i'm facing problems cmake. initially, doesn't found c++ compiler , prompted error:
cmake .. no cmake_cxx_compiler found.
tell cmake find compiler setting either environment variable "cxx" or cmake cache entry cmake_cxx_compiler full path compiler, or compiler name if in path.
so, did:
cxx="gcc" cmake .. but error prompted:
-- cxx compiler identification unknown
-- check working cxx compiler: /usr/bin/gcc
-- check working cxx compiler: /usr/bin/gcc -- broken
cmake error @ /usr/share/cmake-3.0/modules/cmaketestcxxcompiler.cmake:54 (message):
c++ compiler "/usr/bin/gcc" not able compile simple test program.
how can solve error , compile project?
you try use c compiler gcc c++ one, wrong.
you need install g++ or other c++ compiler.
Comments
Post a Comment