|
Boost-Build : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-05-19 14:26:42
On 05/19/2005 12:38 PM, Craig Rodrigues wrote:
> Larry,
>
> Here is what I do to get Boost Jam to build and work from CVS
> under Unix (Linux, FreeBSD, MacOS X).
[snip]
I did steps 1-3.
> (4) Set the BOOST_BUILD_PATH environment variable to point to the directory
> where the boost-build.jam file exists:
>
> for bash, export PATH=$PATH:$WHATEVERDIRECTORY/boost
> for tcsh, setenv PATH ${PATH}:${WHATEVERDIRECTORY/boost
This sets PATH to some directory, not BOOST_BUILD_PATH. It also looks
like the modification to PATH is for the BOOST_ROOT directory, which
is different from the BOOST_BUILD_PATH, which is defined here:
http://www.boost.org/doc/html/bbv2/installation.html
as:
the tools/build/v2 subdirectory of a full Boost distribution.
OOPS. I did the `bjam --version` from tools/build, not tool/build/v2.
However, even when I tried it from tools/build/v2, I got:
<---------- cut here ------------
cd ~/prog_dev/boost-cvs/boost/tools/build/v2/
bjam --verson
/home/evansl/prog_dev/boost-cvs/boost/tools/build/v2/build/project.jam:262:
in find-jamfile from module project
error: Unable to load Jamfile.
error: Could not find a Jamfile in directory '.'.
error: Attempted to find it with pattern '[Jj]amfile.v2 [Jj]amfile
[Jj]amfile.jam'.
error: Please consult the documentation at 'http://www.boost.org'.
/home/evansl/prog_dev/boost-cvs/boost/tools/build/v2/build/project.jam:281:
in load-jamfile from module project
/home/evansl/prog_dev/boost-cvs/boost/tools/build/v2/build/project.jam:68:
in project.load from module project
...
>---------- cut here ------------
>
> I also perform these additional customization steps:
>
> (1) Modify $WHATEVERDIRECTORY/boost-build.jam so that bjam defaults to
> v2 mode.
Thanks. I'll try that.
>
> (2) Modify $WHATEVERDIRECTORY/boost/tools/build/v2/site-config.jam
> to use gcc by default.
I thought gcc was already used by default.
BTW, Craig, thank you for the detailed response.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk