Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-02-04 00:23:51


Joe wrote:
> Hi,
>
> Maybe I'm a bit impatient because I'm familiar with Perforce Jam, but I can't
> seem to find good instructions for installing Boost Jam without the rest of
> Boost. I'm assuming that's doable (or not?).

That would be because there are none :-) It's not a common request..
although strangely it's what got me interested in Boost now years ago!

> The Getting Started, Installing Boost.Jam simply states "Follow these
> instructions to acquire a bjam executable for your platform. Install it
> somewhere in your path." The link then states "The recommended way to get
> Boost.Jam if you are using a Boost distribution is to download a prebuilt
> executable from SourceForge." I did that and when I run bjam -v I see
>
> Boost.Jam Version 3.1.10. OS=NT. (and the copyrights)
>
> However, when I run bjam with a simple Jamfile, I get
>
> Unable to load Boost.Build: could not find "boost-build.jam"
> ---------------------------------------------------------------
> Attempted search from C:\src up to the root
>
> Please consult the documentation at 'http://www.boost.org'.
>
> Obviously there's some other file that is needed, but the instructions don't
> seem to mention this, perhaps assuming a full Boost download. I'd appreciate
> some help or pointers. Thanks.

The "Getting Started" instructions are targeted at Boost users, not bjam
and Boos.Build only users. Fortunately what you need to do is simple,
assuming it's Boost.Build v1 that you want to use..

1. The files are available either with the Boost distribution, or from
CVS. The directory/module you need is "tools/build/v1", that is all the
*.jam files in there. If you don't want to download all of Boost you can
get the individual files directly from CVS, or indirectly from the CVS
web interface...

http://cvs.sourceforge.net/viewcvs.py/boost/boost/tools/build/v1/

2. Put those someplace and make a boost-build.jam file in your project
tat contains this:

boost-build "path to where you put the *.jam files from #1" ;

Now you should be able to make a Jamfile and Jamrules for your project.

Of course if you are not interested in using Boost.Build, but only want
Boost.Jam then all you need is the bjam executable. And if you want it
to behave like Perforce/Jam just rename it to "jam.exe".

HTH.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
 

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