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
34
votes
5 answers

How to build boost Version 1.58.0 using Visual Studio 2015 (Enterprise)

I like to build boost 1.58.0 using the (new) Visual Studio 2015 (Enterprise). In the past I proceeded in the following way: Download boost 1.58.0 from www.boost.org Extract files (e.g. C:\thirdparty\vs2013\x64\boost_1_58_0) Start Visual Studio 2013…
Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
8
votes
2 answers

Boost build fails C++11 feature checks when using (custom) GCC 4.x or 5.x

I need to build Boost 1.62 and 1.63 on a Fedora 24 machine, but using GCC 4.9.3 or GCC 5.4.0 (depending on the version CUDA, which is the reason why I need an older compiler). But if I set the custom GCC version as described in this answer and…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
8
votes
1 answer

BJam not compiling boost libraries with '-mt' tag when multi threading specified

I'm trying to compile boost v1.55 libraries for osx, with multi threading support. My user-config.jam configures the compiler as follows: using clang : osx : xcrun clang -arch i386 -arch x86_64 -stdlib=libstdc++ -mmacosx-version-min=10.9 ; And the…
MM.
  • 4,224
  • 5
  • 37
  • 74
7
votes
5 answers

Buidling boost error: Name clash for 'boost_system-vc120-mt-1_58.dll'

I'm trying to build boost on windows 8.1 with Visual Studio 2013 on 64bit system. b2 toolset="msvc" address-model=64 -s ZLIB_SOURCE=C:\H\M\zlib --build-type=complete stage Here is full output: Performing configuration checks - symlinks…
cnd
  • 32,616
  • 62
  • 183
  • 313
7
votes
1 answer

Boost 1.57.0 bootstrap.bat not working for Visual Studio .NET 2003

On a dev machine Vista SP1 with only Visual Studio .NET 2003 SP1 installed - with boost 1.44.0 I have no problem to generate b2.exe and bjam.exe using bootstrap.bat - with boost 1.57.0 I get this error message when running bootstrap.bat : …
Manuel Rozier
  • 677
  • 5
  • 9
5
votes
1 answer

What's the difference between b2 and ./bootstrap.sh when building python

Sorry if this has already been asked? I've build boost from source but have always been confused about the build tools. Which tool should be used when building the boost libraries from scratch. To me it seems that bootstrap.sh is used to create the…
BigONotation
  • 4,406
  • 5
  • 43
  • 72
4
votes
3 answers

How to build 64-bit boost for visual studio on windows using the address-model flag?

I am trying to build boost on the x64 terminal for Visual Studio using these instructions: https://www.boost.org/doc/libs/1_62_0/more/getting_started/windows.html#get-boost I do: boostrap then .\b2 address-model=64 but it always…
BigBoy1337
  • 4,735
  • 16
  • 70
  • 138
4
votes
1 answer

how to pass cxxflag with mutli-parameters to boost.b2

i want to pass c++14 and -fPIC to boost.b2 and buid static lib. use :cxxflags="--std=c++14 -fPIC" and occur below error: g++: error: unrecognized command line option ‘--std=c++14 -fPIC’ "g++" -pthread -O3 -finline-functions -Wno-inline -Wall…
As.xjc
  • 61
  • 1
  • 5
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
3 answers

Build Boost.Locale with iconv for iOS

I'm currently trying to build Boost.Locale for iOS, but I can't get it to find the iconv lib (I'm successfully building other parts of Boost for iOS, such as thread or filesystem). I've tried to let Boost.Build find it by itself, I've tried to set…
JBL
  • 12,588
  • 4
  • 53
  • 84
3
votes
0 answers

How can I build the boost libraries 1_72_0 on a windows host for a linux target?

Trying to build the boost libraries, I followed the steps: open cmd in boost_1_72_0 folder bootstrap.bat gcc set cfalgs, cxxflags and linker flags to use the sysroot folder that came with the compiler: cflags="-std=c11 -O2…
3
votes
1 answer

Boost installation: missing argument global-setup

I am trying to install boost library on Windows 10. I have VS2017 installed. I open the Developer Command Prompt 2017, and I already typed boostrap and now while writing b2, I get the following error: C:\Program…
Kasparov92
  • 1,365
  • 4
  • 14
  • 39
2
votes
0 answers

How to remove c++ compilation flag of ninja from cmake run by VCPKG?

I'm trying to build boost-container on Raspberry Pi 4 with VCPKG package manager. The problem is that one of compilation flags -m64 is invalid for compiler on rpi (but is OK for PCs), so I need to remove the flag. It is extremally hard, because…
baziorek
  • 2,502
  • 2
  • 29
  • 43
2
votes
1 answer

Access environment variables inside a jam configuration file

I am trying to cross compile Boost python library with x86_64-w64-mingw32 compiler on a Linux host. I need to specify the path to python libraries and include files inside my user-config.jam file. Instead of hard coding this path I would like to…
sbunny
  • 433
  • 6
  • 25
2
votes
1 answer

Running Out Of Memory With Fread

I'm using Backblaze B2 to store files and am using their documentation code to upload via their API. However their code uses fread to read the file, which is causing issues for files that are larger than 100MB as it tries to load the entire file…
Rohan
  • 21
  • 2
1
2 3 4 5 6