Install libDAI on Ubuntu

libDAI for OpenGM.

The latest version, which contains CMakeLists.txt, is available on github.

The following commands are for older versions.
sudo apt-get install libgmp-dev cimg-dev
wget http://cs.ru.nl/~jorism/libDAI/libDAI-0.3.1.tar.gz
tar zxvf libDAI-0.3.1.tar.gz
cd libDAI-0.3.1
cp Makefile.LINUX Makefile.conf

I needed to edit 2 lines in Makefile.conf as follows:
# Line49: BOOSTLIBS_PO=-lboost_program_options-mt
# ->      BOOSTLIBS_PO=-lboost_program_options
# Line50: BOOSTLIBS_UTF=-lboost_unit_test_framework-mt
#B ->     OOSTLIBS_UTF=-lboost_unit_test_framework
And then,

make
sudo cp lib/libdai.a /usr/local/lib
sudo cp -r include/dai /usr/local/include

Advertisements

One thought on “Install libDAI on Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s