Boost logo

Boost-Build :

From: Dennis Cote (dennis.cote_at_[hidden])
Date: 2008-01-31 16:37:27


Jurko Gospodnetić wrote:
> Hi Dennis.
>
>> I'm trying to build boost 1_34_1 using boost-jam-3.1.16-1-ntx86 on Win
>> XP with the Borland C++ 5.8.2 (BDS 2006 C++ Compiler).
>>
>> The documentation at
>> http://www.boost.org/more/getting_started/windows.html shows the command:
>>
>> bjam --build-dir=build-directory --toolset=toolset-name stage
>>
>> in section 5.2.4 Invoke bjam.
>
> That command looks ok to me and should work. I tried the following c
> with the boost trunk and with the 1.34.1 release and it all worked fine:
>
> bjam stage --build-dir=aaa --toolset=msvc
> bjam --build-dir=aaa --toolset=msvc stage
>
>
> On the other hand I tried the following:
>
> bjam --build-dir=\aaa\bbb --toolset=msvc stage
>
> and it seemed to ignore the leading \ in the path.
>
>
> I then tried :
>
> bjam --build-dir=\\aaa\bbb --toolset=msvc stage
> bjam --build-dir="\\aaa\bbb" --toolset=msvc stage
> bjam "--build-dir=\\aaa\\bbb" --toolset=msvc stage
>
> And they all seemed to get the same effect you're seeing.
>
> Don't have time to look into the sources right now to see how invalid
> or absolute paths are handled but is there any chance you're not typing
> in your target folder correctly?
>
>

I got the build to work by adding a drive letter and enclosing the
argument in quotes (exactly as the getting started document showed) even
thought I don't think the quotes were required.

bjam "--build-dir=C:\boost\build" --toolset=borland-5.8.2 stage

It seems to me the drive letter shouldn't be required either.

Dennis Cote


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