Subject: [Boost-build] bootstrap.bat for mingw users (in order to build 1.45.0)
From: Mauricio Gomes (mgpensar_at_[hidden])
Date: 2011-01-02 08:52:10
As previously mentioned in other posts, one has to build bjam that comes
with boost 1.45.0 in order to be able to build boost.
Just in case anybody tries to build it with mingw I had to change two lines
I have added the mingw paramenter in line 13:
call .\build.bat *mingw* > ..\..\..\bjam.log
And changed toolset to gcc in line 33:
If you prefer, here it is the full bootstrap.bat changed script:
REM Copyright (C) 2009 Vladimir Prus
REM Distributed under the Boost Software License, Version 1.0.
REM (See accompanying file LICENSE_1_0.txt or
ECHO Building Boost.Jam build engine
if exist ".\tools\build\v2\engine\src\bin.ntx86\bjam.exe" del
if exist ".\tools\build\v2\engine\src\bin.ntx86_64\bjam.exe" del
call .\build.bat mingw > ..\..\..\bjam.log
if exist ".\tools\build\v2\engine\src\bin.ntx86\bjam.exe" (
copy .\tools\build\v2\engine\src\bin.ntx86\bjam.exe . > nul
if exist ".\tools\build\v2\engine\src\bin.ntx86_64\bjam.exe" (
copy .\tools\build\v2\engine\src\bin.ntx86_64\bjam.exe . > nul
REM Ideally, we should obtain the toolset that build.bat has
REM guessed. However, it uses setlocal at the start and does
REM export BOOST_JAM_TOOLSET, and I don't know how to do that
REM properly. Default to msvc for now.
ECHO using %toolset% ; > project-config.jam
ECHO Bootstrapping is done. To build, run:
ECHO To adjust configuration, edit 'project-config.jam'.
ECHO Further information:
ECHO - Command line help:
ECHO .\bjam --help
ECHO - Getting started guide:
ECHO - Boost.Build documentation:
ECHO Failed to build Boost.Jam build engine.
ECHO Please consult bjam.log for furter diagnostics.
ECHO You can try to obtain a prebuilt binary from
ECHO Also, you can file an issue at http://svn.boost.org
ECHO Please attach bjam.log in that case.
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