Boost Compile from scratch
From DGC Wiki
- Planning Getting Started
- Boost root install
- Boost local install
- Boost Compile from scratch
[edit]
How to compile a local install of the boost libraries from scratch
First of all, try to copy the precompiled libraries according to the instructions at Boost local install. If you can't get those to work, go on and compile your own libraries with the instructions below:
- Download boost_1_31_0.tar.gz from here. Version 1.31.0 is the one I used, newer versions might work fine too.
- Extract into ~ (tar zxf boost_1_31_0.tar.gz)
- First you have to build the Boost JAM compilation tool. I assume that ~/local/bin is in your PATH environment variable, if it isn't, do: export PATH=$PATH:~/local/bin first.
$ cd ~/boost_1_31_0/tools/build/jam_src $ ./build.sh $ cp bin.linuxx86/bjam ~/local/bin/
- Optional: Compile boost_python first. I assume python is in /usr (it is on CDS). Do like this:
$ cd ~/boost_1_31_0/libs/python/build $ export PYTHON_ROOT=/usr $ export PYTHON_VERSION=2.2 $ bjam
- Compile the boost libraries:
$ cd ~/boost_1_31_0/ $ bjam --prefix=$HOME/local -sTOOLS=gcc "-sBUILD=release <runtime-link>static/dynamic <threading>single/multi" install
- Have a cup of coffee and wait for the compilation (it will take a loooong time, maybe 30 minutes). I think it is possible to just compile the specific libraries needed for DGC but I don't know which those are at the moment.
- Move the recently copied boost libraries directory so it matches the include statements in our DGC source:
$ cd ~/local/include $ mv boost-1_31/boost . $ rmdir boost-1_31
- Link boost_thread library so that our current compilation makefiles works:
$ cd ~/local/lib $ ln -s libboost_thread-gcc-mt.so libboost_thread.so
- Go on and compile the DGC source, now it should work (check Planning_Getting_Started)
![[Main Page]](../../../../upload/alice.jpg)