Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2007-09-09 15:35:58

on Thu Sep 06 2007, Vladimir Prus <> wrote:

> On Thursday 06 September 2007 20:54:43 you wrote:
>> hi, ghost
>> thank u very much for your reply
>> I've added a line in
>> G:\source\boostGraphPython\boost-build.jam:
>> boost-build E:\\etude\\boost_1_34_1\\tools\\build\\v2 ;
>> but bjam.exe gives me:
>> ERROR: Python not configured: cannot build BGL-Python bindings
>> ...found 1 target...
>> i have python in:
>> D:\Python25
>> according to the doc, it seems Boost.Build is able to autoconfigure the
>> python path,no?

Yes. However, full autoconfiguration is only invoked from the
Boost.Python Jamfile (libs/python/build/Jamfile.v2). If BGL's Jamfile
doesn't do something to ensure that Boost.Python's Jamfile is loaded
before it looks for Python being configured, or duplicate the few
lines of autoconfig logic in Boost.Python's jamfile (I can't find the
Jamfile.v2 that builds the BGL python bindings, so I can't verify),
autoconfiguration won't kick in.

> I'm afraid I don't know. The location of D:\Python25 does not seem
> very standard for me

It's very standard if your main disk is D:. That's where the Python
installer puts it.

> , and I don't know how Python autoconfiguration works.

Primarily, it looks in the windows registry for information about
where Python was installed.

>> or i must to add : using python; in my

You need a space before the semicolon.

>> E:\etude\boost_1_34_1\tools\build\v2\user-config.jam ?
> I would even suggest specifying python version and installation directory
> explicitly.
> using python : 2.5 : D:\\Python25\\bin\\python ;

That should be unnecessary.

Dave Abrahams
Boost Consulting
The Astoria Seminar ==>

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at