script for install OpenGM on Ubuntu

The following script downloads the source code of OpenGM it, and installs it.

sudo apt-get -yV install libhdf5-serial-dev
wget https://github.com/opengm/opengm/archive/master.zip -O opengm-master.zip
unzip opengm-master.zip
mkdir opengm-build
cd opengm-build
cmake \
-D WITH_AD3:BOOL=ON \
-D WITH_BOOST:BOOL=ON \
-D WITH_CONICBUNDLE:BOOL=ON \
-D WITH_DAOOPT:BOOL=ON \
-D WITH_GCO:BOOL=ON \
-D WITH_HDF5:BOOL=ON \
-D WITH_MAXFLOW:BOOL=ON \
-D WITH_MAXFLOW_IBFS:BOOL=ON \
-D WITH_MPLP:BOOL=ON \
-D WITH_MRF:BOOL=ON \
-D WITH_OPENMP:BOOL=ON \
-D WITH_QPBO:BOOL=ON \
-D WITH_TRWS:BOOL=ON \
-d BUILD_TESTING:BOOL=ON \
../opengm-master
make externalLibs
cmake \
-D WITH_AD3:BOOL=ON \
-D WITH_BOOST:BOOL=ON \
-D WITH_CONICBUNDLE:BOOL=ON \
-D WITH_DAOOPT:BOOL=ON \
-D WITH_GCO:BOOL=ON \
-D WITH_HDF5:BOOL=ON \
-D WITH_MAXFLOW:BOOL=ON \
-D WITH_MAXFLOW_IBFS:BOOL=ON \
-D WITH_MPLP:BOOL=ON \
-D WITH_MRF:BOOL=ON \
-D WITH_OPENMP:BOOL=ON \
-D WITH_QPBO:BOOL=ON \
-D WITH_TRWS:BOOL=ON \
-d BUILD_TESTING:BOOL=ON \
../opengm-master
make -j4 2>&1 | tee ../../OpengmMake.log
sudo make install 2>&1 | tee ../../OpengmMakeInstall.log

Advertisements

2 thoughts on “script for install OpenGM on Ubuntu

    • The command “2>&1 | tee FILENAME” saves the output on the terminal in FILENAME. So, I added the command to check compile error. It doesn’t matter you erase the command.

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