root / README.building-boost @ 79cf7ef6
History | View | Annotate | Download (1.7 kB)
| 1 | Most distributions have the required version of Boost (1.35) ready for |
|---|---|
| 2 | installation using their standard package installation tools (apt-get, |
| 3 | yum, etc.). |
| 4 | |
| 5 | If running a distribution that requires boost 1.35 (or later) be built |
| 6 | from scratch, these instructions explain how to do so, and in a way |
| 7 | that allows it to peacefully coexist with earlier versions of boost. |
| 8 | |
| 9 | Download the latest version of boost from boost.sourceforge.net. |
| 10 | (boost_1_49_0.tar.bz2 was the latest when this was written). Different |
| 11 | Boost versions often have different installations. If these |
| 12 | instructions don't work, check the website www.boost.org for more |
| 13 | help. |
| 14 | |
| 15 | unpack it somewhere |
| 16 | cd into the resulting directory |
| 17 | |
| 18 | $ cd boost_1_49_0 |
| 19 | |
| 20 | # Pick a prefix to install it into. I used /opt/boost_1_49_0 |
| 21 | |
| 22 | $ BOOST_PREFIX=/opt/boost_1_49_0 |
| 23 | |
| 24 | $ ./bootstrap.sh |
| 25 | $ sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time --with-program_options --with-filesystem --with-system --layout=versioned threading=multi variant=release install |
| 26 | |
| 27 | # Done! That was easy! |
| 28 | |
| 29 | Note that you don't have to specify each library, which will then |
| 30 | build all Boost libraries and projects. By specifying only those |
| 31 | required will just save compilation time. |
| 32 | |
| 33 | |
| 34 | ---------------------------------------------------------------------- |
| 35 | |
| 36 | |
| 37 | Installing GNU Radio with new Boost libraries. |
| 38 | |
| 39 | Tell cmake to look for the Boost libraries and header files in the new location with the folloing command: |
| 40 | |
| 41 | $ cd <build directory> |
| 42 | $ cmake -DBOOST_ROOT=$BOOST_PREFIX -DBoost_INCLUDE_DIR=$BOOST_PREFIX/include/boost-1_49/ -DBoost_LIBRARY_DIRS=$BOOST_PREFIX/lib <path to gnuradio source tree> |
| 43 | $ make |
| 44 | $ make test |
| 45 | $ sudo make install |
| 46 | |
| 47 | See README for more installation details. |
| 48 |