问题
找不到C CXX编译器
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:15 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:15 (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.
方法
修改Eigen目录下的CMakeList.txt,增加如下两行
set(CC "I:/MinGW/mingw64/bin/gcc.exe")
set(CMAKE_C_COMPILER "I:/MinGW/mingw64/bin/gcc.exe")
set(CXX "I:/MinGW/mingw64/bin/g++.exe")
set(CMAKE_CXX_COMPILER "I:/MinGW/mingw64/bin/g++.exe")
具体改成自己MinGW路劲下的