bjam is the old name of the engine used by Boost.Build The new name is b2
Questions tagged [bjam]
263 questions
0
votes
1 answer
Replace pattern in list in boost build/b2/bjam
How can I replace a pattern in a list of strings in boost build ?
In GNU make that could be done using substitution for changing file extension, or patsubst in general.

Gabriel Devillers
- 3,155
- 2
- 30
- 53
0
votes
1 answer
Bjam how to print include path used in compiling
I have a Jamroot.jam for a big project. I want to print all paths where g++ searches for includes when compiling, how can i do this (normally -v flag in g++) ? I try bjam --debug-configuration but it doesn't do what i ask

niken
- 2,499
- 3
- 33
- 56
0
votes
1 answer
Boost bjam Jamfile import statement
I have a complex C++ application that is building via bjam (V2) utility (along with some shellscripts to bootstrap the environment)
In the Jamroot file , there are "include(s)" , some of which are documented as builtin , but a lot look like "custom"…

niken
- 2,499
- 3
- 33
- 56
0
votes
1 answer
Making BJAM 1.33.1 in boost compile with Microsoft Visual Studio 8
When trying to build a boost 1.33.1 library with bjam, I keep getting thousands of errors with command similar to this:
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >nul
Is there any way to change where bjam searchs for…

Christopher Dorian
- 385
- 1
- 2
- 13
0
votes
0 answers
building boost::asio with dependencies from different boost version
Boost asio depends on a few libraries like regex, thread, ...etc. Is there a way to compile boost::asio with a version of boost that did not include asio (e.g., compile boost::asio from 1_40_0 with boost headers and libraries from version 1_33_0)?…

ssm
- 77
- 1
- 1
- 6
0
votes
1 answer
How to build boost as shared libraries for Android
I successfully compiled boost 1.70 for Android armeabiv7a with NDK r21b.
I used user-config.jam:
import os ;
local AndroidNDKRoot = [ os.environ ANDROIDNDKROOT ] ;
local AndroidBinariesPath = [ os.environ CLANGPATH ] ;
local TargetPlatform = […

jpo38
- 20,821
- 10
- 70
- 151
0
votes
0 answers
Running "bjam" on macOS
Good morning,
I'm having troubles to run bjam on my Mac (macOS Mojave version 10.14.6).
I have successfully downloaded Boost (v1.75.0) and also ran the the script bootstrap.sh as follows:
./bootstrap.sh
and then
./b2
However, I still cannot run…

Giuseppe D'alterio
- 200
- 3
- 9
0
votes
1 answer
bjam link against boost-system
What is the correct/portable way to link against the boost-system library in a bjam project?
If an example Jamroot.jam file could be posted that would be great.
user181351
0
votes
1 answer
How to build C program with b2 without libstdc++ dependency?
I have a simple C program and such jamroot.jam:
exe hello : hello.c ;
I can run b2 -d+2:
........
gcc.compile.c bin/gcc-8.3.0/debug/hello.o
"g++" -x c -fPIC -O0 -fno-inline -Wall -g -c -o "bin/gcc-8.3.0/debug/hello.o" "hello.c"
gcc.link…

Red User
- 429
- 3
- 9
0
votes
0 answers
Undefined simbol in shared library
I have a shared library shared_lib.so. I have a python wrapper using CFFI that calls this shared library using some arguments.
shared_lib.so was created using Jamfile as:
lib shared_lib :
[ glob config/calculate_param.cpp ]
ds-testing-deps
…

Hector Esteban
- 1,011
- 1
- 14
- 29
0
votes
1 answer
linking of C++ and Python with BOOST; error = rule "Copyright" unknown in module "xml"
I am trying to execute linking of C++ and Python with BOOST.
Using the example from https://www.boost.org/doc/libs/1_63_0/libs/python/doc/html/tutorial/tutorial/hello.html#tutorial.hello.let_s_jam, and issuing bjam at…

Benjamin Levy
- 333
- 6
- 19
0
votes
1 answer
Nothing happen when building boost with bjam
I tried to build boost 1.71.0 with minGW 6.3.0 (after a few searches I found this tutorial), apparently we can't directly build boost with mingw so I built bjam and then I ran the following command in the boost…

Alt 255
- 3
- 1
- 3
0
votes
1 answer
How to build boost library (program options) without using bjam
I need to build boost program options static library in both PC/Mac.
It has only 11 cpp source code, so I expect to compile it by g++ SOURCE_CODE, but I got an error something like utf8_codecvt_facet.cpp:15:47: error:…

prosseek
- 182,215
- 215
- 566
- 871
0
votes
1 answer
How to run hello.cpp and Jamfile located in boost/libs/python/example/tutorial directory?
I ran bootstrap.bat and also ran bjam from boost source directroy. However when I tried to run bjam from the above mentioned directory, I got the error message:
'bjam' is not recognized as an internal or external command, operable
program or…

prashanth kumar
- 17
- 6
0
votes
1 answer
Generate package config file automagically using Scons, bjam, and/or cmake
Hey Stackoverflowers: one comment and one question.
Comment: You guys/girls are great, thanks for taking a look.
Question:
Can Bjam, Scons, or Cmake easily install a .pc file for library projects?
I find it really annoying that I have to maintain…

David
- 2,533
- 2
- 18
- 16