1

I am working on a system that needs to use METIS's API. My question is how build Metis for my system.

The older versions of Metis e.g. version 4.0.2, just has everything in one folder (lib) and you run make in that folder.

The newest version of Metis has many folders: libs, include, gklib, and others.

The documentation shows how to use the interface, but doesn't show how to compile it in my system.

Do I have to compile the whole library as if it were a stand-alone program, or is there another way to compile it and build as an interface?

abdul
  • 75
  • 5

1 Answers1

1

just follow the instructions in the BUILD.txt file:

make config
make
make install

it is as simple as that. (yes, it will build the standalone program AND the API)

Soeren
  • 1,725
  • 1
  • 16
  • 30
  • /usr/bin/cmake -E cmake_progress_start /home/abdul/MYPROG/customized2/metis/build/Linux-x86_64/CMakeFiles 0 make[2]: *** No rule to make target 'w'. Stop. make[2]: Leaving directory '/home/abdul/MYPROG/customized2/metis/build/Linux-x86_64' Makefile:64: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/abdul/MYPROG/customized2/metis' makefile:420: recipe for target 'metis' failed make: *** [metis] Error 2 – abdul Jan 25 '17 at 04:47
  • Thanks for the tip. when i do that, i get this error. and i don't know what the "w" is. When i compile metis outside my program, it works perfectly. – abdul Jan 25 '17 at 04:48
  • you should compile metis outside your program and then link your program against the compiled metis lib. There is no need to build it together with your code. Maybe this helps you: http://stackoverflow.com/questions/36046189/how-to-install-metis-on-ubuntu – Soeren Jan 25 '17 at 12:41