Subject: [Boost-build] query regarding configuring bjam for building projects in Windows and Linux
From: Ganesh Borse (bganesh05_at_[hidden])
Date: 2012-06-25 00:17:08
I am new to bjam build process.
We've an application that runs on multiple platforms with the same codebase.
Our team that maintains this application on Linux has already migrated this
application to bjam. For this, a Jamroot with Linux specific rules, etc is
There are no other jam files are created and the toolset to use is
specified through "using gcc ; " rule in Jamroot.
Now, for adding Windows build to this Jamroot, I added "using msvc : 9 ;"
to this same Jamroot, as below:
using gcc ;
using msvc : 9 : "C:\Program Files (x86)\Microsoft Visual Studio
When I tried to build the application using bjam (command line: bjam -q) on
windows using this Jamroot, the bjam command failed as it could not find
gcc on Windows:
C:/boostbuild/share/boost-build/tools\gcc.jam:130: in gcc.init from module
error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from Jamroot:33
C:/boostbuild/share/boost-build/build\toolset.jam:39: in toolset.using from
C:/boostbuild/share/boost-build/build\project.jam:898: in using from module
Jamroot:33: in modules.load from module
C:/boostbuild/share/boost-build/build\project.jam:317: in load-jamfile from
C:/boostbuild/share/boost-build/build\project.jam:62: in load from module
C:/boostbuild/share/boost-build/build\project.jam:168: in project.find from
C:/boostbuild/share/boost-build\build-system.jam:570: in load from module
C:\boostbuild\share\boost-build\kernel\modules.jam:283: in import from
C:\boostbuild\share\boost-build\kernel\bootstrap.jam:142: in boost-build
C:\boostbuild\share\boost-build\boost-build.jam:8: in module scope from
Can you please help me know, how can I specify the correct toolset on
Windows for bjam?
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