|
Boost : |
Subject: Re: [boost] bjamming that used to work before modular-boost
From: Thomas Suckow (thomas.suckow_at_[hidden])
Date: 2014-01-20 12:26:51
On 01/19/2014 09:10 AM, Paul A. Bristow wrote:
>
>> -----Original Message-----
>> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Daniel James
>> Sent: Sunday, January 19, 2014 4:17 PM
>> To: boost_at_[hidden]
>> Subject: Re: [boost] bjamming that used to work before modular-boost
>>
>> On 19 January 2014 15:56, Paul A. Bristow <pbristow_at_[hidden]> wrote:
>>>
>>>> -----Original Message-----
>>>> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of
>>>> Daniel James
>>>> Sent: Sunday, January 19, 2014 2:55 PM
>>>> To: boost_at_[hidden]
>>>> Subject: Re: [boost] bjamming that used to work before modular-boost
>>>>
>>>> On 19 January 2014 14:38, Paul A. Bristow <pbristow_at_[hidden]> wrote:
>>>>> I have boost-build.jam at I:\modular-boost
>>>>>
>>>>> Suggestions please.
>>>> The boost-build.jam file from the sandbox
>>>> (http://svn.boost.org/svn/boost/sandbox/guild/boost-build.jam) needs
>>>> to be updated for the new
>>> layout
>>>> of boost build. This is out of date:
>>>>
>>>> local boost-build-src = [ if-has-file bootstrap.jam :
>>>> [ MATCH --boost-build=(.*) : $(ARGV) ]
>>>> $(BOOST_BUILD_PATH)
>>>> $(BOOST_BUILD)
>>>> $(boost-src)/tools/build/v2
>>>> ] ;
>>>>
>>>> '/v2' is no longer required in the path, and 'bootstrap.jam' is in a different directory now.
>>> Changing it to
>>>> this might work:
>>>>
>>>> local boost-build-src = [ if-has-file bootstrap.bat :
>>>> [ MATCH --boost-build=(.*) : $(ARGV) ]
>>>> $(BOOST_BUILD_PATH)
>>>> $(BOOST_BUILD)
>>>> $(boost-src)/tools/build
>>>> ] ;
>>> That changes the result but doesn't entirely solve the problem.
>>>
>>> adding --boost=i:\modular-boost finds the licence text OK, but then
>>> gives
>>>
>>> Unable to load Boost.Build: could not find build system.
>>> ---------------------------------------------------------
>>> I:\boost-sandbox\guild\boost-build.jam attempted to load the build system by invoking
>>> 'boost-build I:\modular-boost\tools\build ;'
>>> but we were unable to find "bootstrap.jam" in the specified directory
>>> or in BOOST_BUILD_PATH (searching I:\modular-boost\tools\build).
>>>
>>> which is because it does not contain this file "bootstrap.jam" (and
>>> nor does i:\modular-boost)
>> Oh, I guess it needs to find the 'tools/build/src' path where bootstrap.jam is located. Maybe this
> would
>> work:
>>
>> local boost-build-src = [ if-has-file bootstrap.jam :
>> [ MATCH --boost-build=(.*) : $(ARGV) ]
>> $(BOOST_BUILD_PATH)
>> $(BOOST_BUILD)
>> $(boost-src)/tools/build/src
>> ] ;
> Yes - works for me :-)
>
> But to avoid providing BOOST or BOOST_ROOT environment variables, or parameter
> --boost=i:\modular-boost
>
> I also added
>
> #~ Attempts to find the Boost source tree...
> #~ --boost=i:\modular-boost may be needed.
> local boost-src = [ if-has-file LICENSE_1_0.txt :
> [ MATCH --boost=(.*) : $(ARGV) ]
> $(BOOST)
> $(.boost-build-file:D)/../../modular-boost/ <<<<<<<<<<<<<<<< new for modular-boost
> $(.boost-build-file:D)/../boost
> $(.boost-build-file:D)/../Trunk
> ] ;
I am personally a fan of including $(self:D) for finding boost-src which
is the location of the b2 executable. This has worked for me in the past
on Linux & Windows.
However, modular-boost still doesn't work for me as I believe the
/boost//headers target has problems. Though I haven't been able to
figure out what.
Output: http://pastebin.com/6WMRg4Cd
-
Thomas
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk