Difference between revisions of "Boost"
From HCL
(New page: http://www.boost.org/) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
http://www.boost.org/ | http://www.boost.org/ | ||
+ | |||
+ | == Installation from sources == | ||
+ | 1. By default, boost is configured with all libraries. To save time on building boost, you can configure it ony with the libraries you need: | ||
+ | <source lang="bash"> | ||
+ | $ ./b2 --prefix=DIR --with-graph --with-serialization --with-mpi | ||
+ | </source> | ||
+ | 2. Default installation: | ||
+ | - DIR/include/boost_version/boost | ||
+ | - DIR/lib/libboost_library_versions.* | ||
+ | Create symbolic links: | ||
+ | <source lang="bash"> | ||
+ | $ cd DIR/include; ln -s boost_version/boost | ||
+ | $ cd DIR/lib; ln -s libboost_[library]_[version].[a/so] libboost_[library].[a/so] | ||
+ | $ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH | ||
+ | </source> | ||
+ | |||
+ | To install boost with mpi library, you need to add "using mpi ;" in the file "tools/build/v2/user-config.jam" | ||
+ | |||
+ | == Documentation == | ||
+ | * [http://www.boost.org/doc/libs/1_42_0/libs/graph/doc/table_of_contents.html Graph] | ||
+ | * [http://www.boost.org/doc/libs/1_42_0/libs/serialization/doc/index.html Serialization] |
Latest revision as of 14:13, 11 April 2012
Installation from sources
1. By default, boost is configured with all libraries. To save time on building boost, you can configure it ony with the libraries you need:
$ ./b2 --prefix=DIR --with-graph --with-serialization --with-mpi
2. Default installation:
- DIR/include/boost_version/boost - DIR/lib/libboost_library_versions.*
Create symbolic links:
$ cd DIR/include; ln -s boost_version/boost
$ cd DIR/lib; ln -s libboost_[library]_[version].[a/so] libboost_[library].[a/so]
$ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH
To install boost with mpi library, you need to add "using mpi ;" in the file "tools/build/v2/user-config.jam"