paraview - 在 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。
谢谢!
解决方案
从您的脚本来看,您似乎创建了一个build
目录作为该目录的子目录paraview-superbuild
。错误消息告诉您构建目录的该位置不受支持。
相反,您可以将build
目录创建为文件系统上的同级目录paraview-superbuild
或不在paraview-superbuild
目录内的任何其他位置。
推荐阅读
- javascript - 切换大小写以检查字符串是否包含子字符串
- html - 背景颜色保持透明,尽管 devtools 说它是白色的
- python - 使用 Selenium Python 登录?
- zerobrane - ZeroBrain Studio 无法打开 utf-16 le codind ini 文件
- excel - 使用 VBA 我可以使用代理来使用 Internet Explorer 进行网络抓取吗?
- php - Htaccess url 多语言
- architecture - 网格VS云架构?
- json - 有没有办法在 Grails 中使用 Marshaller 将 JSON 字符串解析为自定义对象
- javascript - Express.js 为什么放置 app.use() 会影响测试结果?
- typescript - Nestjs Swagger - import types wrong node module