当前位置 : 主页 > 网页制作 > Bootstarp >

什么是“CMAKE_BOOTSTRAP_BINARY_DIR”错误,因为来自源代码的构建CMake

来源:互联网 收集:自由互联 发布时间:2021-06-12
什么是错误“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.
什么是错误“CMAKE_BOOTSTRAP_BINARY_DIR”.如何从源代码构建cmake.

环境:

>系统:Kubuntu-15.04
> CMake来源:https://github.com/Kitware/CMake

再生产:

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”.

网友评论