Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building only libboost_mpi
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-03-18 13:29:12

On Wednesday 18 March 2009 20:18:12 Philipp Thomas wrote:
> I'm not sure if this is a topic for this list, but I'll ask anyway. With the
> help of Vladimir I am building boost rpm packages for openSUSE and SLES with
> a sane versioning/naming and with compiler flags as needed for the
> distribution. Now I was asked to see if there is a way to build libboost_mpi
> from a different rpm spec file, i.e. build all boost packages except
> libboost_mpi from one spec and *only* libboost_mpi from a different spec.
> The reason is to remove the dependency on openmpi at this low level in the
> application stack.
> It's easy to build boost without openmpi, but is it possible to only build
> libboost_mpi and install it along with its documentation?

Yes and no. You can build just mpi, using --with-mpi, as documented in
C++ Boost specific section of "bjam --help" output (you need to invoke
this from Boost source tree).

However, "bjam --with-mpi install' will install mpi library, and all headers.
I am not sure if this is problem for you, probably no.

As for documentation -- you can build docs just for mpi library by running
bjam in the libs/mpi/doc directory. You would have to setup doc tools,

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at