Questions tagged [b2]

b2 is the 'Boost.Build' tool used with 'Jamfile' configuration files in order to generate boost libraries. b2 is a cross-platform, open-source build system, contained in each boost distribution under tools folder.

b2 is the 'Boost.Build' tool used with 'Jamfile' configuration files in order to generate boost libraries. b2 is a cross-platform, open-source build system, contained in each boost distribution under tools folder. Refer to https://boostorg.github.io/build/

79 questions
0
votes
1 answer

Cannot stat 'b2': No such file or directory

I am trying to build boost-python in a virtual machine running Ubuntu 18, following the guide https://www.boost.org/doc/libs/1_76_0/more/getting_started/unix-variants.html When I try to run the bootstrap…
lanery
  • 5,222
  • 3
  • 29
  • 43
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

I don't know why the boostrap.bat doesn't execute

Actually, I try to execute the boostrap.bat, but b2 does not appear and I still get some massage from boostrap.log. enter image description here How can I solve this problem...??
2btlFe
  • 1
0
votes
0 answers

Strange behaviour of CXX variable in CMake, breaks boost installation on MacOS Catalina

Our team is working on a new release of a scientific C++ library. However, we encountered a problem on MacOS Catalina when trying to include boost with CMake that we are unable to understand in its entirety. First, I will described the problem in…
Fubini
  • 59
  • 1
  • 7
0
votes
1 answer

Boost build error of recursion in main target references

I want to conditionally use a library (with alternatives) for targets. I don't want to add conditions such as yes:foo everywhere but prefer to create a propagated feature. However, b2 generates errors for the following jam. import…
0
votes
0 answers

How to strip version folder from Windows Boost build?

I'm building Boost from source on linux and windows from a single python script, and notice the linux build places the headers under /include/boost/..., whereas the windows builds add a version level /include/boost-1_74/boost/....…
Andreas
  • 5,086
  • 3
  • 16
  • 36
0
votes
0 answers

Building libtorrent in Docker for arm32v7 on x86 host fails with (error: Unknown target type EXE)

I'm trying to build a static python binding for libtorrent for the RPi 4. I wrote a Dockerfile which works (although extremely slow) on the RPi 4. however, if I try to build the same Dockerfile on ubuntu with qemu-user-static or Windows 10 with…
0
votes
0 answers

How to build libboost_thread_vc100-mt-1_62.lib?

I'm doing the following but still unable to get libboost_thread_vc100-mt-1_62.lib (Multi threaded library). b2.exe link=shared threading=multi runtime-link=shared --with-regex --with-thread --with-chrono --toolset=msvc-10.0 address-model=64 The…
nsivakr
  • 1,565
  • 2
  • 25
  • 46
0
votes
1 answer

How can I include the Jambase file to my build?

I'm trying to setup a simple bjam build example, where I use the SubDir rule in my top-level Jamroot.jam file: SubDir TOP ; exe main : main.cpp ; I'm using boost_1_58_0 and when I leave out the SubDir directive, the build works fine. But when I…
dirkbaechle
  • 3,984
  • 14
  • 17
0
votes
0 answers

How can I make the b2 builder to default to -jN?

I want to do boost builds in parallel by default, e.g. instead of ./b2 -j4 I want to just invoke ./b2 and have it use -j4, or -jN for some other relevant N, itself. Can I do this? I was thinking maybe I could put in tools/build/src/user-config.jam…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
1 answer

How do I make conditional cxxflags feature in my boost jamfile?

I am using Boost.Build for a small project and want to enable C++17 support. According to this answer, I can pass the compiler flag -std=c++17 in the following way and the flag is propagated to all executables and libraries: import feature…
pschill
  • 5,055
  • 1
  • 21
  • 42
0
votes
0 answers

How to compile boost library for Nintendo DS Lite (arm none eabi g++ compiler)?

I want to compile the c++ boost library for the NDS (on a Windows machine). I followed this tutorial: https://patater.com/boost-on-the-nintendo-ds/ This is my project-config.jam: import option ; using gcc : 6.3.0 : arm-none-eabi-g++.exe…
user7353781
  • 155
  • 2
  • 10
0
votes
1 answer

bjam: Use same actions for multiple rules

I have an action defined that generates coverage files, it takes some options. actions coverage { echo coverage $(OPTIONS) >> $(<) } I need a rule to set the $(OPTIONS) variable: rule coverage ( targets * : sources * : properties * ) { …
Christian Aichinger
  • 6,989
  • 4
  • 40
  • 60
0
votes
1 answer

Boost Build: Use a feature or a variable

I have a DB integration test that I'm running using Boost Build. The test needs some commandline args (DB username, password). What's the best way to set that via Boost Build in a way that's configurable by the user (via environment variables, bjam…
Christian Aichinger
  • 6,989
  • 4
  • 40
  • 60
0
votes
1 answer

How to build Boost 1.57 for Windows Phone 8 with Visual Studio 2013 Pro?

I want to build Boost 1.57 for Windows Phone 8 but when I run b2 like so b2 toolset=msvc-12.0 variant=release architecture=arm windows-api=phone I get strange errors similar to this one for every target '/Zm800' is not recognized as an internal or…
Jan Deinhard
  • 19,645
  • 24
  • 81
  • 137