官方网站源代码安装失败,从github下载了源代码(但metis4版本)
3359 github.com/bchretien/metis 4
用cmake安装。 首先,configure报告以下错误:
cakewarning(dev ) :
policy CMP 0042 isno tset : ma cosx _ rpathisenabledbydefault.run " cmake "
help-policy CMP 0042 " forpolicydetails.use the cmake _ policycommandto
setthepolicyandsuppressthiswarning。
internet搜索解决方案将添加到CMakeList.txt的第一行,如下所示:
然后,set(cmake_macosx_rpath1)可以顺利地进行配置和生成。 然后打开open project,Xcode。
编译products文件夹下的可执行文件并显示build succeeded后,可以直接使用该程序。
以pmetis为例,让我们将安装软件包附带的图文件4elt.graph分为六个部分
/users/ycy/desktop/metis4- master/build/programs/debug/pmet is-4/users/ycy/desktop/4 ELT.graph 6
在桌面上生成4elt.graph.part.6,并分割结果。
参考:
3359堆栈覆盖.com/questions/31561309/cmake-warnings-under-OS-x-ma cosx-rpath-is-not-specified-OS-OS
33558 www.liuxiao.org/2015/01/MAC-cmake -解决-command-not-found-问题/
3359 blog.csdn.net/xuchonghao/article/details/80342483
2.27补充:
官方metis5.1.0 cmake报告错误的问题已经解决。 解决方案参考: http://glaros.DTC.umn.edu/GK home/node/908