CMake无法建立ITK

时间:2014-02-02 02:50:05

标签: build compilation cmake itk

我正按照http://worldwidepenguin.com/2010/05/how-to-install-itk-on-a-mac-cmake-macports/上的示例尝试安装ITK 4.5.0。 我在Mac 10.5上。

正如所建议的那样,我正在使用CMake(2.8--12),但我收到错误:

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: Error required internal CMake variable not set, cmake may be not be built     correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /Users/usr/Desktop/ITK_bin/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /Users/usr/Desktop/ITK_bin/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!

我做错了什么?我需要在路径上添加一些东西吗?

1 个答案:

答案 0 :(得分:0)

安装XCode,并确保PATH中有“make”程序。