|
Boost-Build : |
From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2005-06-06 16:01:09
Hi Andrew
ANDREW MARLOW, BLOOMBERG/ LONDON OF wrote:
> Hello,
>
> I am struggling to get a version of
> boost jam built for mingw.
> build.bat gcc-nocygwin produces
Have you read http://www.boost.org/more/getting_started.html ?
Did you see that there is a mingw toolset?
> an executable that doesnt quite work,
> due to DOS-like filenames given to
> commands when creating dirs and lib archives.
> This seems to be the executable that is floating
> around the net under the banner of a boost jam
> that is built for mingw.
>
> The trouble seems to be that mingw is neither NT,
> nor is it POSIX-y enough for the POSIX files
> (fileunix.c etc) to be used.
>
> In desperation I hacked jam.h to force
> NT on and tried to build from mys
> with the command "build.sh cc", with
> CC set to gcc. This gets me slightly further
> but fails with a very weird error:-
>
> rm. clean
> Invalid switch - "yyacc.exe".
>
> Any ideas?
Unless you want to do something *really* unusual (like compiling boost
under mingw with the MSVC6.0 standard lib ;-)) you should not need to
hack anything. Assuming that bjam is in the path and that your mingw
distro is under "C:\ProgramFiles\MinGW3.2.0" the following command line
from within the boost root should work:
bjam "-sTOOLS=mingw"
"-sMINGW_ROOT_DIRECTORY=C:\ProgramFiles\MinGW3.2.0" -a
HTH,
Andreas
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