什么是“CMAKE_BOOTSTRAP_BINARY_DIR”错误,因为来自源代码的构
发布时间:2020-12-17 21:24:29 所属栏目:安全 来源:网络整理
导读:什么是错误“CMAKE_BOOTSTRAP_BINARY_DIR”.如何从源代码构建cmake. 环境: 系统:Kubuntu-15.04 CMake来源:https://github.com/Kitware/CMake 再生产: git clone git@github.com:Kitware/CMake.gitcd CMakegit checkout v3.2.2./bootstrap 错误(在./boots
什么是错误“CMAKE_BOOTSTRAP_BINARY_DIR”.如何从源代码构建cmake.
环境: >系统:Kubuntu-15.04 再生产: git clone git@github.com:Kitware/CMake.git cd CMake git checkout v3.2.2 ./bootstrap 错误(在./bootstrap): --------------------------------------------- g++ -I/home/usagi/repos/CMake/Bootstrap.cmk -I/home/usagi/repos/CMake/Source -I/home/usagi/repos/CMake/Bootstrap.cmk -c /home/usagi/repos/CMake/Source/cmSystemTools.cxx -o cmSystemTools.o /home/usagi/repos/CMake/Source/cmSystemTools.cxx: In static member function ‘static void cmSystemTools::FindCMakeResources(const char*)’: /home/usagi/repos/CMake/Source/cmSystemTools.cxx:2195:13: error: ‘CMAKE_BOOTSTRAP_BINARY_DIR’ was not declared in this scope exe_dir = CMAKE_BOOTSTRAP_BINARY_DIR "/bin"; ^ /home/usagi/repos/CMake/Source/cmSystemTools.cxx:2249:28: error: ‘CMAKE_BOOTSTRAP_SOURCE_DIR’ was not declared in this scope cmSystemToolsCMakeRoot = CMAKE_BOOTSTRAP_SOURCE_DIR; ^ Makefile:88: recipe for target 'cmSystemTools.o' failed make: *** [cmSystemTools.o] Error 1 --------------------------------------------- Error when bootstrapping CMake: Problem while running make 注意: >“/ home / usagi / repos”是我帐户中的存储库池目录.(“usagi”是我系统中的用户名.) 解决方法
我在午餐时间尝试了解决方案.
解决方案: rm * git checkout -f ./configure # In the environment,it is not require "./bootstrap". make 在这种环境中不需要“./bootstrap”. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |