我正在尝试在 Windows 10 上使用 CMake 构建 ParaView 超级构建(https://gitlab.kitware.com/paraview/paraview-superbuild)。他们建议使用 Ninja 生成器。
我下载了忍者并把它放进去C:/Ninja/ninja.exe
但我收到此错误:
CMake Error at CMakeLists.txt:3 (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: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.
我在哪里可以找到这个编译器?
我安装了 Visual Studio 13 和 15 并尝试从开发人员的命令提示符打开 cmake-gui,但没有成功。
我尝试过其他发电机。ParaView superbuild 不适用于 Visual Studio。在我使用的 Mac 上,Unix MakeFiles
但在 Windows 10 中它不起作用,出现此错误:
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage