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
1
vote
0 answers

Building Boost 1.70.0 with icu 64.2

I have built icu 64.2 (debug and release for both x86 and x64). My build passes all the tests, so I know icu is not the issue. I have also built a 64-bit version of boost 1.70.0 using the following b2 build command: b2 address-model=64…
1
vote
0 answers

Boost out-of-tree build

Boost still uses its very own crazy build system called b2. Since nobody else uses it, they include a script to build b2 before you build Boost itself: ./bootstrap.sh. If you run this from another directory it does build b2 elsewhere, but somehow…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
1
vote
1 answer

Undefined symbol from C++ compiled using bjam

I have a Python application interfacing with C++ via Boost Python. The C++ segment of the application is built using Bjam (Bjam make file can be found at bottom of question). The C++ compiles (and appears to link) fine. Shortly after the Python…
user997112
  • 29,025
  • 43
  • 182
  • 361
1
vote
0 answers

HowTo build boost with debug libstdc++ on linux (GLIBCXX_DEBUG flag)

I try to build boost with following commands: #!/bin/bash if [ -z "$BUILD_PATH" ] then echo "Variable BUILD_PATH isn't specified!" exit fi BOOST_BUILD_PATH="$BUILD_PATH/boost" mkdir…
sdd
  • 721
  • 9
  • 23
1
vote
1 answer

Boost-build - dependency on subproject target

I have a jamfile-based project where one of the build steps compiles a custom tool (called 'codegen') which I want to use in a later build step. The codegen tool is built in projects/codegen/Jamfile.jam relative to the root, and the executable…
Gumgo
  • 526
  • 4
  • 16
1
vote
0 answers

Supporting configurations with ExternalProject_Add and Boost

I'm currently building Boost via ExternalProject_Add with this command: ExternalProject_Add(Boost PREFIX workspace/Boost URL http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz URL_MD5…
ltjax
  • 15,837
  • 3
  • 39
  • 62
1
vote
1 answer

C++: All boost path operations segfault ( Ubuntu / g++ )

Introduction I know about C++: All boost path operations segfault (OSX / GCC) And as you can I didn't changed convention of name subject. But I am using a Ubuntu system and I have a problem like author above. I don't understand above solution ( How…
1
vote
1 answer

How do you conditionally add a file to sources in boost.build?

build.jam: project : usage-requirements . ; alias PUB : : : : /ProjectA//PUB /ProjectB//PUB ; lib LIB : [ glob *.c : feature.c ] : static /ProjectA//PUB …
Jason Brown
  • 174
  • 9
1
vote
1 answer

Is there a way to visualize dependencies in boost.build?

I have a large project that uses boost.build. I would like a way to view the dependency tree for specific build targets. For example: exe foo : foo.c /BAR//LIB : /MEOW//PUB ; The dependencies of foo would include all requirements of /BAR//LIB and…
Toonces
  • 11
  • 1
1
vote
2 answers

Trying to extract sub library from Boost using bcp

I'm trying to extract "just what I need" from Boost to reduce the checkin footprint. So far I'm doing the following: bootstrap.bat b2 tools/bcp md extract dist\bin\bcp boost/thread.hpp boost/shared_ptr.hpp boost/enable_shared_from_this.hpp…
MrMoDoJoJr
  • 390
  • 3
  • 9
0
votes
0 answers

Cannot Set Boost Include Path for CMakeFiles When Building on Linux

I'm able to build Boost on Linux but am having a hard time getting the include path to be properly set up. When I'm done compiling, I get the following message: The Boost C++ Libraries were successfully built! The following directory should be…
jslmsca
  • 196
  • 1
  • 14
0
votes
1 answer

Build Boost library at CMake configure time

Some time ago I was looking for a solution on SO how to automatically build BOOST library at CMake configure time. I didn't find a complete solution, but I did find useful part about FetchContent. I wrote a CMake script to do this. But this script…
WEEnch
  • 41
  • 1
  • 7
0
votes
0 answers

Cannot run bootstrap.sh when building Boost on Centos 7

I'm trying to build the Boost libraries (version 1_78_0) on a virtual Centos 7 machine, using gcc/g++ 8.3.1. I've installed the usual development tools to build the libraries but continually get the error message below when running…
FatherJack
  • 29
  • 1
  • 6
0
votes
1 answer

Invalid property , unknown feature 'visibility' in boost build/b2/bjam

I want to pass the GCC visibility flag -fvisibility=hidden to b2 using: b2 (...) linkflags=-fvisibility=hidden (...) but I get this error: /usr/share/boost-build/src/build/property.jam:358: in validate1 from module property error: Invalid property…
Gabriel Devillers
  • 3,155
  • 2
  • 30
  • 53
0
votes
1 answer

No builtin modules when calling b2 on a file with -f

Given the file test.jam: import path ; Running it with b2 -f test.jam gives: test.jam:1: in module scope ERROR: rule "import" unknown in root module. even though path is one of the builtin modules. How can I import builtin modules when calling b2…
Gabriel Devillers
  • 3,155
  • 2
  • 30
  • 53