|
Boost-Build : |
Subject: Re: [Boost-build] Boost.Build woes
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2015-12-21 17:29:21
On 21.12.2015 17:07, Steven Watanabe wrote:
> AMDG
>
> On 12/21/2015 02:40 PM, Stefan Seefeld wrote:
>> On 21.12.2015 13:10, Steven Watanabe wrote:
>>> AMDG
>>>
>>> On 12/21/2015 08:26 AM, Stefan Seefeld wrote:
>>>> <snip>
>>>>
>>>> `boost-build /usr/share/boost-build/src/kernel ;`
>>>>
>>>> still doesn't work. I get this error instead:
>>> The correct path should be .../src/, I believe.
>>
>> That yields
>>
>>> [stefan_at_quasimodo tutorial]$ bjam
>>> Unable to load Boost.Build: could not find build system.
>>> ---------------------------------------------------------
>>> /usr/share/doc/boost-examples/libs/python/example/boost-build.jam
>>> attempted to load the build system by invoking
>>>
>>> 'boost-build /usr/share/boost-build/src ;'
>>>
>>> but we were unable to find "bootstrap.jam" in the specified directory
> There is a src/bootstrap.jam in git, which
> is used by Boost's top level boost-build.jam.
> This file, however, just forwards to kernel/bootstrap.jam,
> so I think your use of src/kernel/bootstrap.jam
> is also correct.
Well, Fedora these days ships Boost 1.58, and that doesn't contain
src/bootstrap.jam. I'm not sure what I should report as a suggested fix.
>>> Actually, if you're working with an installed
>>> Boost.Build you're better off just deleting
>>> boost-build.jam. I believe that python/example/boost-build.jam
>>> should be removed from the repository.
>> Removing the file intirely yields:
>>
>>> [stefan_at_quasimodo tutorial]$ bjam
>>> /usr/share/boost-build/src/build/project.jam:262: in find-jamfile from
>>> module project
>>> error: Unable to load Jamfile.
>>> error: Could not find a Jamfile in directory '../../../..'.
>>> error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
>>> [Jj]amfile [Jj]amfile.jam'.
>>> error: Please consult the documentation at 'http://www.boost.org'.
> This is the same error as:
>
>>>>> /usr/share/boost-build/src/build/project.jam:262: in find-jamfile from
>>>>> module project
>>>>> error: Unable to load Jamfile.
>>>>> error: Could not find a Jamfile in directory '../../../..'.
>>>>> error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
>>>>> [Jj]amfile [Jj]amfile.jam'.
>>>>> error: Please consult the documentation at 'http://www.boost.org'.
>>>>> /usr/share/boost-build/src/build/project.jam:280: in load-jamfile from
>>>>> module project
>>>>> ...
>>>>> /usr/share/doc/boost-examples/libs/python/example/boost-build.jam:8:
>>>>> in module scope from module
>>>> (What is the '../../../..' in the error above ? It doesn't come from my
>>>> modified boost-build.jam file.)
>>>>
> and has the same answer:
>
>>> This is a later problem. The jamfile for your
>>> example is trying to reference the BOOST_ROOT
>>> project.
Fair enough. So I rephrase my question: how should I write my Jamfile so
it works independently of where the "boost root directory" is ? (In
fact, what *is* the "boost root directory", in a setup with a binary
install of Boost ? I assume it's referring to the Boost.Build files, yes ?
Thanks,
Stefan
-- ...ich hab' noch einen Koffer in Berlin...
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