我正在尝试在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超级版本不适用于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
使用VS2015 x64 Native Tools Command Prompt
运行cmake-gui。