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,

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


Ubuntu setup: development environment

1. packages for building c/c++
sudo apt-get -yV install build-essential

2.packages for editor
We can use favorite packages or IDEs. The reason why I use Kate is here.
sudo apt-get -yV install kate konsole

3. packages for CMake
sudo apt-get -yV install cmake cmake-gui cmake-curses-gui

4. packages for Doxygen
sudo apt-get -yV install doxygen doxygen-gui graphviz

5. packages for Qt and QtCreator

6. packages for Eigen
wget http://bitbucket.org/eigen/eigen/get/3.1.3.tar.bz2
tar -jxf 3.1.3.tar.bz2
cd eigen-eigen-2249f9c22fe8
mkdir build
cd build
cmake ../
sudo make install

7. packages for Boost
wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.bz2/
tar xf download
cd boost_1_53_0/
./b2 install