【问题标题】:CMake can't build ITKCMake 无法构建 ITK
【发布时间】:2014-02-02 02:50:04
【问题描述】:

我正在尝试按照 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!

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

【问题讨论】:

    标签: build compilation cmake itk


    【解决方案1】:

    安装 XCode,并确保“make”程序在您的 PATH 中可用。

    【讨论】:

      猜你喜欢
      • 2018-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-26
      • 2021-10-24
      • 2013-02-24
      相关资源
      最近更新 更多