How to install Cmake C compiler and CXX compiler

后端 未结 4 1301
一个人的身影
一个人的身影 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:34

    Those errors :

    "CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage"

    means you haven't installed mingw32-base.

    Go to http://sourceforge.net/projects/mingw/files/latest/download?source=files

    and then make sure you select "mingw32-base"

    Make sure you set up environment variables correctly in PATH section. "C:\MinGW\bin"

    After that open CMake and Select Installation --> Delete Cache.

    And click configure button again. I solved the problem this way, hope you solve the problem.

提交回复
热议问题