To build OPMIP you will need:
The following working directory is recommended:
~/ | +-- projects/ | | | +-- boost_1_47_0/ | | | `-- opmip/ | `-- user-config.jam
To properly setup BOOST on your computer follow the next setps:
Get BOOST libraries
Download BOOST libraries from
Unpack to ~/projects/boost_1_47_0
cd ~/projects
tar --bzip2 -xf <path-to-downloaded-file>/boost_1_47_0.tar.bz2
Set Environment variables
Set BOOST_ROOT
environment variable
export BOOST_ROOT=~/projectsboost_1_47_0
.bashrc
file
Build and install Boost.Build
Build Boost.Build
cd $BOOST_ROOT
./bootstrap.sh
Install
cp b2 /usr/local/bin
mkdir /usr/share/boost-build
cp -r tools/buildv2* /usr/shareboost-build
Important | |
---|---|
Make sure BOOST_ROOT is defined. If BOOST_ROOT isn't defined BOOST libraries must be in opmip sources parent directory. You can also pass the location in command line with the option --boost-root=/path/to/boost instead of setting the BOOST_ROOT environment variable. |
There are two ways of building OPMIP:
Important | |
---|---|
As BOOST doesn't have an updated debian package you will have to install and configure BOOST following the steps above even if you choose to use the debianized sources. |
Unpack opmip.tar.gz
cd ~/projects
tar -xf <path-to-opmip.tar.gz>
Build debian package
cd opmip/opmip-0.2
dpkg-buildpackage
Install the debian
cd ..
dpkg -i opmip0.2-1<arch>.deb
Get OPMIP from the git repository
cd ~/projects
git clone https://helios.av.it.pt/git/opmip
Build OPMIP
cd opmip
b2
The generated binaries are now under ~/projects/opmipdist
.