hdf5 - mac上如何设置HDF5_DIR为hdf5安装目录
问题描述
cmake/thirdparty/SetupGeosxThirdParty.cmake:131 处的 CMake 错误(消息):GEOSX 需要 hdf5,将 HDF5_DIR 设置为 hdf5 安装目录。
解决方案
假设cmake
您使用的文件名为GEOSX/host-configs/ubuntu-gcc.cmake
,请将其添加到顶部(替换<my_base_dir>
为 GeosX 基本目录)
# file: ubuntu-gcc.cmake
set(BASE_DIR "<my_base_dir>" CACHE PATH "" FORCE)
# if building TPLs from the tplMirror repository, set GEOSX_TPL_DIR variable to point to the TPL installation path...
set(GEOSX_TPL_DIR "${BASE_DIR}/thirdPartyLibs/install-ubuntu-gcc-release" CACHE PATH "" FORCE)
# ... , and
include("${BASE_DIR}/GEOSX/host-configs/tpls.cmake")
然后将找到所有第三方库。我通过了这个障碍,尽管我无法完成编译。
推荐阅读
- ios - Xcode 10“无法构建模块 Darwin / Foundation / CoreFoundation”等
- sql - access2016:sql查询以获取每个日期的总和
- android - 谷歌地图未显示在标签片段中
- azure - 是否可以在不停机的情况下将登台转换为生产?
- java - iText 2用不同的字体替换段落中的文本
- angular - 预计至少有 0 个参数,但得到了 2 个
- c - 检测文件中的字符并在 C 中拆分字节数组
- javascript - 使用带有 Typescript 的量角器获取所有元素属性?
- java - 在 catch 块中使用 return?
- php - MapMyIndia 行车距离矩阵 API