首页 > 解决方案 > 在 MacOS 中构建 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。

谢谢!

标签: paraview

解决方案


从您的脚本来看,您似乎创建了一个build目录作为该目录的子目录paraview-superbuild。错误消息告诉您构建目录的该位置不受支持。

相反,您可以将build目录创建为文件系统上的同级目录paraview-superbuild或不在paraview-superbuild目录内的任何其他位置。


推荐阅读