How to install Cmake C compiler and CXX compiler

后端 未结 4 1436
一个人的身影
一个人的身影 2021-02-12 16:25

I need some help compiling this project with cmake. Here is the error message.

$ ./build_avida
-- Building for: NMake Makefiles
CMake Warning at CMakeLists.txt:1         


        
4条回答
  •  耶瑟儿~
    2021-02-12 16:53

    Try to install gcc and gcc-c++, as Cmake works smooth with them.

    RedHat-based

    yum install gcc gcc-c++
    

    Debian/Ubuntu-based

    apt-get install cmake gcc g++
    

    Then,

    1. remove 'CMakeCache.txt'
    2. run compilation again.

提交回复
热议问题