Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-27 20:47:47


"Stephen Henry" <Stephen.Henry_at_[hidden]> writes:

> Hi all,
>
> I'm attempting to get my head around Boost.build and using it to build
> my project. I've run into some trouble and was hoping that their was
> someone out their that could help me:

These questions should probably go to the jamboost list:

http://www.boost.org/more/mailing_lists.htm#jamboost

>
> I have a directory that looks like the following:
>
> root
> |
> --- inc
> |
> --- src
>
> in root I have a "project-root.jam" file containing "path-constant
> BOOST_ROOT : /home/henrys/boost". In src I have a Jamfile.v2 with the
> following:
>
> import python ;
>
> if [ python.configured ] {
>
> python-extension dfa : dfa.cpp
> : <include>${BOOST_ROOT} <include>../inc
> <template>${BOOST_ROOT}/libs/python/build/extensions ;
> }
> else
> {
> ECHO "Python location is not configured"
> }
>
> and a user-config.jam in my home directory with "using python ;"
> contained within it.
>
> When I'm trying to compile my extension, I cd to the src directory and
> type bjam --v2, but I get a long error originating in boost-build.jam:1
> and ending in tools/build/v2/build/feature.jam:193 with the error:
> "<template> is not a valid feature name".
>
> Does anyone know what I'm doing wrong?

Well, <template> is a BBv1 feature. Are you intending to use
Boost.Build v1 or v2?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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