Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-06-04 17:23:29


----- Original Message -----
From: <williamkempf_at_[hidden]>
> >
> > build with gcc:
> > jam -f<...>allyourbase.jam -sTOOLS=gcc
> >
> > build with msvc and gcc:
> > jam -f<...>allyourbase.jam -sTOOLS="msvc gcc"
> >
> > always build with msvc:
> > set TOOLS=msvc
> > jam -f<...>allyourbase.jam
> >
> > make the release build:
> > jam -f<...>allyourbase.jam -sBUILD=release
> >
> > make debug and release:
> > jam -f<...>allyourbase.jam -sBUILD="debug release"
> >
> > etc...
>
> Thanks. This is probably spelled out in your document but I failed
> to comprehend it. This will definately help me out here.

I think the document needs a section on invoking Jam from the command-line.

> > The docs describe the TOOLSET_DIR variable:
> >
> > Toolset descriptions are located in the project's root directory,
> or a
> > directory specified by TOOLSET_DIR
> >
> > boost-base.jam, until it is merged into allyourbase.jam, has a
> similar
> > variable, BOOST_BASE_DIR, with a similar meaning. I'm open to other
> > possibilities.
>
> I tried to get this to work. I've used the following:
>
> C:\boost\threads\src>set TOOLSET_DIR=c:\boost\build_system_2001_6_3
> C:\boost\threads\src>set BOOST_BASE_DIR=c:\boost\build_system_2001_6_3
> C:\boost\threads\src>jam -fc:\boost\build_system_2001_6_3
> \allyourbase.jam
>
> This results in the following output:
>
> Jamrules: No such file or directory

You always need a Jamrules file in your project's root directory, if you
want to suppress this.

> .\features.jam: No such file or directory

Yeah, sorry: features.jam needs to be in the top level directory. I am
tempted to group this with TOOLSET_DIR, but in that case we need a different
variable name. Opinions?

> Error: rule flags expects only a single free feature name when no
> values are su
> pplied. got ( <define> ) instead.
>
> If I copy jamrules to the root of my project I get the following
> slightly better result:
>
> .\features.jam: No such file or directory
> Error: rule flags expects only a single free feature name when no
> values are su
> pplied. got ( <define> ) instead.
>
> If I copy features.jam then everything finally works. Is this what's
> to be expected?

Yeah, I guess so. Since it couldn't find features.jam, it didn't know that
<define> was a free feature. Some organizational work still needed here...
;-)

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk