在 MacOS 中构建 ParaView-Superbuild
Building ParaView-Superbuild in MacOS
我正在尝试在 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
目录内的任何其他位置。
我正在尝试在 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
目录内的任何其他位置。