bjam is the old name of the engine used by Boost.Build The new name is b2
Questions tagged [bjam]
263 questions
5
votes
1 answer
Understanding bjam's targets, and how to specify new ones?
I'm having problems understanding how to specify and invoke targets with bjam. By this, I mean that I want to provide bjam with command-line targets to build (from a Makefile actually) that correspond to different aspects of the build process,…

davidA
- 12,528
- 9
- 64
- 96
4
votes
2 answers
how to add a new compiler switch in bjam
I need to compile a library in managed c++ and looking into msvc.jam, I cannot find any feature that would add the /clr switch to my compile flags.
How would I add such a feature?
If possible, I would like to avoid modifying msvc.jam.

Eric Parayre
- 43
- 1
- 3
4
votes
6 answers
Build Boost 1.45 using MinGW
Try to compile Boost 1.45 on Windows XP using MinGW. I did it a year ago and almost forgot how to repeat it.
%PATH% contains MinGW path.
user-config.jam contains using gcc ;
bjam (the ntx86 one) from here.
Output:
> bjam…

topright gamedev
- 2,617
- 7
- 35
- 53
4
votes
0 answers
boost b2 build 64 bit results in argument error missing argument
I am trying to build 64 bit libraries using boost's b2. I followed all the steps to the tee but I keep getting an annoying error about a missing argument setup-script.
Here is my user-config.jam file that I put into my HOME directory:
#…

terminix00
- 327
- 2
- 13
4
votes
0 answers
Cannot compile moses due to old boost version
I tried to compile moses(one of the statistical machine translation system) following the steps
specified here
I don't have root privileges so I used wget to installed newer version of boost. As the documentation above says, I tried to compile…

hitochan
- 1,028
- 18
- 34
4
votes
0 answers
Controlling build order (for auto-generated code) with Boost.Build (bbv2 / bjam)
I am using an external tool to generate source code for an application at work. The tool takes a directory tree full of JSON files and generates C++ and some other utility files. I have been able to set up a rule and a target that will re-run the…

Schamp
- 282
- 1
- 3
- 11
4
votes
2 answers
How can I get Clang colors to work in boost-bjam?
b2 release link=static toolset=clang works, but it does not show the nice colors that I find useful in clang's output.

Humble Debugger
- 4,439
- 11
- 39
- 56
4
votes
2 answers
Boost: Bootstrap.bat compilation failure to build bjam
I would like to use the Boost Filesystem library. I am using CodeBolcks for development on Windows. I am following the "Getting Started on Windows". http://www.boost.org/doc/libs/1_53_0/more/getting_started/windows.html#install-boost-build. I made…

Ababneh A
- 1,104
- 4
- 15
- 32
4
votes
1 answer
Portable compile parameters of a Jamfile
Here is a Jamfile that I currently use to build a test.
exe file_test
: file_test.cpp ../src/file.hpp ../src//file
: --std=c++11
: -ltag
;
Is there any way to switch to c++11 standard without…

user1678062
- 573
- 5
- 16
3
votes
1 answer
fatal error C1027 while building Boost 1.49.0
I'm trying to build Boost 1.49.0 using MSVC2010 and it fails with the following error:
file…

Praetorian
- 106,671
- 19
- 240
- 328
3
votes
2 answers
Building basic Boost applications with bjam
I can find tons of general purpose documentation on Boost.Build, but surprisingly nothing on how to use it to build simple Boost applications.
I compiled Boost for mingw with bjam, got all the libraries and includes in C:\Boost. Now what would a…

Luper Rouch
- 9,304
- 7
- 42
- 56
3
votes
1 answer
Add to include path ( -I ) in Jamroot
I have a boost iostreams based project and executing
export CPATH=/apps/bzip2/include/
before bjam link=static works. Is there a way to set this in the Jamroot :
project infracore
: requirements
$(PROJECT_ROOT)_install
…

Humble Debugger
- 4,439
- 11
- 39
- 56
3
votes
1 answer
Add -L to project in bjam
I have boost_iostreams in my project and it depends on bzip2 and zlib. Hence running
export LIBRARY_PATH=/apps/bzip2/lib:/apps/zlib/lib
and then running bjam link=static works.
Is there a way to set this in the Jamroot, so that the environment…

Humble Debugger
- 4,439
- 11
- 39
- 56
3
votes
1 answer
How to compile Boost.Process library?
So there is Boost.Process 2006, Boost.Process 2008 and most recent Boost.Process seems like 2009 by looking at sources) I need some kind of step by step guidance on how to compile that beast. Because I deffenetly do not get how to do such thing.
So…

Rella
- 65,003
- 109
- 363
- 636
3
votes
2 answers
How can I work with filenames with spaces in bjam?
I need to describe an external library in a Jamfile. The location of the library is held in an environment variable.
set EX_LIB_PATH=C:\Program Files\Ext
Here is the snippet from the Jamfile:
--snip--
lib extlin : :…

Philippe Payant
- 134
- 6