Closed aliaksei135 closed 1 year ago
You need to link your programs both against metis and GKlib; i.e., "-lmetis -lGKlib".
Using CMake to build libmetis.dylib
will generate a linker error showing that it is not linked to GKlib
. I found that this is because in CMakeList.txt
in libmetis
folder, there is no command to order metis
to be linked to GKlib
. So I added a line target_link_libraries(metis GKlib)
, and then CMake can complete the building. Hope you can review this and make proper revisions to the package.
Using CMake to build
libmetis.dylib
will generate a linker error showing that it is not linked toGKlib
. I found that this is because inCMakeList.txt
inlibmetis
folder, there is no command to ordermetis
to be linked toGKlib
. So I added a linetarget_link_libraries(metis GKlib)
, and then CMake can complete the building. Hope you can review this and make proper revisions to the package.
Thanks! This fixed it for me!
The METIS library depends on functions from
GKlib
however this is not linked to themetis
target in CMake. InsteadGKlib
is linked against the program binaries inprograms
.Using libmetis standalone results in errors missing refs to various
gk_*
routines