root / README.building-boost @ 144fa44e
History | View | Annotate | Download (925 Bytes)
| 1 | 2c8ea58e | eb | Until boost 1.35 (or later) ships with the distributions, you'll need |
|---|---|---|---|
| 2 | 2c8ea58e | eb | to download and build it yourself. It's not hard, and it can |
| 3 | 2c8ea58e | eb | peacefully coexist with earlier versions of boost. |
| 4 | 2c8ea58e | eb | |
| 5 | 2c8ea58e | eb | Download the latest version of boost from boost.sourceforge.net. |
| 6 | 2c8ea58e | eb | (boost_1_36_0.tar.bz2 was the latest when this was written) |
| 7 | 2c8ea58e | eb | |
| 8 | 2c8ea58e | eb | unpack it somewhere |
| 9 | 2c8ea58e | eb | cd into the resulting directory |
| 10 | 2c8ea58e | eb | |
| 11 | 2c8ea58e | eb | $ cd boost_1_36_0 |
| 12 | 2c8ea58e | eb | |
| 13 | 2c8ea58e | eb | # Pick a prefix to install it into. I used /opt/boost_1_36_0 |
| 14 | 2c8ea58e | eb | |
| 15 | 2c8ea58e | eb | $ BOOST_PREFIX=/opt/boost_1_36_0 |
| 16 | 2c8ea58e | eb | |
| 17 | 2c8ea58e | eb | $ ./configure --prefix=$BOOST_PREFIX --with-libraries=thread,date_time |
| 18 | 2c8ea58e | eb | $ make |
| 19 | 2c8ea58e | eb | $ make install |
| 20 | 2c8ea58e | eb | |
| 21 | 2c8ea58e | eb | # Done! That was easy! |
| 22 | 2c8ea58e | eb | |
| 23 | 2c8ea58e | eb | ---------------------------------------------------------------- |
| 24 | 2c8ea58e | eb | |
| 25 | 2c8ea58e | eb | Now, tell gnuradio where to find it: |
| 26 | 2c8ea58e | eb | |
| 27 | 2c8ea58e | eb | $ export LD_LIBRARY_PATH=$BOOST_PREFIX/lib |
| 28 | 2c8ea58e | eb | |
| 29 | 2c8ea58e | eb | $ cd <path-to-top-of-gnuradio-tree> |
| 30 | 2c8ea58e | eb | $ ./bootstrap |
| 31 | 2c8ea58e | eb | $ ./configure --with-boost=$BOOST_PREFIX # plus whatever config args you usually use |
| 32 | 2c8ea58e | eb | |
| 33 | 2c8ea58e | eb | $ make && make check |
| 34 | 2c8ea58e | eb | $ sudo make install |