Boost logo

Boost-Build :

Subject: Re: [Boost-build] building boost.python
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-05-08 13:28:35


AMDG

On 05/08/2015 10:35 AM, Stefan Seefeld wrote:
> Having made the adjustment you
> suggest, I get a new error:
>
> error: No best alternative for /python_for_extensions
> next alternative: required properties: <python>2.7 <target-os>linux
> matched
> next alternative: required properties: <python>2.7 <target-os>linux
> matched

You're probably initializing python twice.
check project-config.jam and user-config.jam.

>
> I don't quite understand that error, and I'm not sure whether this is
> user error or a problem in boost.build.
>
>
> As to the stand-alone build: should I just remove the boost-build.jam
> file entirely?

I think so. If you're working inside
the boost tree, then you'll pick up
BOOST_ROOT/boost-build.jam.

> That yields the error "error: Unable to load Jamfile."
> (Do I really need both a Jamfile and a Jamroot ?)
>

No. Is there any more to the error message?

>
>>
>>> Next I tried to build the boost.python documentation, which tries to exeute
>>>
>>> "python" -gdt --source-url=./building.rst --link-stylesheet
>>> --traceback --trim-footnote-reference-space
>>> --footnote-references=superscript --stylesheet=../../../rst.css
>>> building.rst bin/gcc-4.9.2/debug/building.html
>>>
>>>
>>> which raises the error "Unknown option: -g"
>>>
>>> Any idea what I may be missing ?
>>>
>> There are two spaces between "python" and -gdt. I'd
>> guess that's where the name of some python script
>> is supposed to be.
>
> Ah ! Am I supposed to provide that in my user-config.jam file ? I'm
> really confused as to what the actual error is, and whether it's in
> boost.build or my own doing.
>

It looks like this is supposed to
use the docutils module.
using docutils : /path/ ; maybe?

In Christ,
Steven Watanabe


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