我正在尝试在MacOS中构建ParaView。我去了资料库https://gitlab.kitware.com/paraview/paraview/tree/master
,这使我建立了paraview-superbuild`https://gitlab.kitware.com/paraview/paraview-superbuild/tree/v5.7.0``
按照我执行的说明
$ cd paraview-superbuild
$ git fetch origin # ensure you have the latest state from the main repo
$ git checkout v5.7.0 # replace `v5.7.0` with tag name of your choice
$ git submodule update
然后
$ mkdir build
$ cd build
$ cmake ..
并且我得到了错误
-- Found Git: /usr/local/bin/git (found version "2.21.0")
-- Determined source version for paraview: 5.7.0
CMake Error at superbuild/cmake/SuperbuildMacros.cmake:481 (message):
The build tree appears to be inside of the git repository located at
/Users/username/Desktop/dev/paraview/paraview-superbuild. This interferes
with the way the superbuild applies patches to projects and is not
supported. Please relocate the build tree to a directory which is not
under a git repository.
这里发生了什么? cmake是否在正确的文件夹中执行?因为paraview-superbuild中有更多CMakeList.txt。
谢谢!
从您的脚本看来,您创建了build
目录作为paraview-superbuild
目录的子目录。错误消息告诉您不支持构建目录的位置。
相反,您可以将build
目录创建为paraview-superbuild
的同级文件,或者将文件系统上除paraview-superbuild
目录之外的其他任何位置创建。