Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-26 02:59:11


Lawrence Spector wrote:

> I successfully was building Boost.Python extensions using bjam version 1
> in Boost 1.33.1. Since the upgrade, I converted my Jamfile to
> Jamfile.v2 and am getting the following errors when I try to build:
>
>
>
> bjam -sTOOLS=vc-8_0 -sBOOST_ROOT=C:\3rdparty\boost_1_34_0 -sBUILD=debug

This is V1 syntax. You can learn about V2 syntax in
http://boost.org/more/getting_started/index.html as well as V2 docs:
boost.org/boost-build2

> error: Could not find parent for project at '.'
>
> error: Did not find Jamfile or project-root.jam in any parent directory.
>
>
>
> Here's my Jamfile:
>
>
>
> # This is the top of our own project tree
>
> project-root ;

Likewise, this is V1 syntax, please refer to Python example for V2
syntax.

> import python ;
>
>
>
> extension MyLib # Declare a Python extension
>
> : MyLib.cpp # source
>
> # requirements and dependencies for Boost.Python extensions
>
> <template>@boost/libs/python/build/extension
>
> ## Requirements ##
>
> : <include>$(MyDir)/Include
>
> <define>_ATL_DLL <define>_AFXDLL
>
> <define>_UNICODE <define>UNICODE
>
> <runtime-link>dynamic
>
> ;
>
>
>
> --------------------------------
>
>
>
> Here's my Jamrules:
>
>
>
> path-global BOOST_ROOT : C:/3rdparty/boost_1_34_0 ;
>
>
>
> project boost : $(BOOST_ROOT) ;
>
>
>
> --------------------------------
>
>
>
> One more note, I tried the quickstart example as suggested in the Python
> tutorial and got this:
>
>
>
> C:\3rdparty\boost_1_34_0\libs\python\example\quickstart>bjam
> toolset=msvc --verbose-test test --v2
>
> Jamroot:17: in modules.load
>
> rule python-extension unknown in module
> Jamfile</C:/3rdparty/boost_1_34_0/libs/python/example/quickstart>.

Please add

        using python ;

to tools/build/v2/user-config.jam, as otherwise the 'quickstart' project
won't get any python support whatsoever. Dave, do you think some doc change,
or code change is required to solve this issue?

- Volodya


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