On 08/22/2013 06:53 AM, Bioxydyn Dev wrote:
> I have successfully built boost with the following options:
> ./b2 install --prefix=~/development/cots/boost stage <various other options>
> I notice that a directory ~/development/cots/boost is created in
> $BOOST_ROOT which
> contains lib and include sub directories. The contents of the include
> directory appears to be the same as what is in $BOOST_ROOT/boost and the
> lib contains the build output.
> A directory $BOOST_ROOT/stage/lib is also created which contains the build
> I expected the latter but not the former.
The former is created by install, the latter by stage.
Pick which one you want.
> What is the --prefix option for?
--prefix is used for install.
> Should it be used when the stage option is
No. Use --stage-dir
> And why does it appear to result in the include files being
> duplicated in another directory?
stage is intended for those working out of the source tree.
install is intended to create a separate installation,
that doesn't depend on the source.