bjam

Linking to boost_filesystem in a bjam-based project

I'm trying to set up Boost.Build for my own project, which references libboost_filesystem. When I run bjam release avg_asp I get the following output: andreas@rodin:~/src/libdoas/src/tools$ bjam release avg_asp -n /home/andreas/lib/build/boost_1_42_0/Jamroot:637: in modules.load rule targets.create-metatarget unknown in module Jamfi...

How do you create rules in BJAM?

I would like to compile a file with a specific compiler not supported on boost. I made a rule: rule my_rule ( source : target ) { compile_specially source target ; } actions compile_specially { my_compile_command $(my_parameters) $(1) -o $(2) } now this code builds the file into the Jamroot directory (obviously). I, however w...

Cross Compiling Boost for use on the Gumstix Overo with GumROS

I'm trying to cross-compile boost for use with the ROS framework on a Gumstix Overo. I've been following the posted instructions here (modifying the script when need be), however I've come across an issue where bjam will not compile boost properly. I call bjam as follows: # boost if [ ! -f /opt/gumros/lib/libboost_date_time-gcc41-mt-1...

Boost Jam vs Jam

I recently built the Boost libraries in Linux and noticed the package needed an executable called bjam in order to do the build. Is bjam related to jam? If it is related to jam, did they somehow extend (or even dumb-down) bjam? Is it used only for building Boost libraries or is it a general build tool for anything? ...

Do newer versions of BJam support backwards compatibility with older versions of Boost?

I'm trying to build version 1.35 of Boost with the newest version of bjam that is bundled with version 1.42 Boost. Will this adversely affect the results of the build? Is this even possible? The reason I'm trying to do this is because the newest version of BJam has support for command line options that are not included in the older ver...

how to create a new variant in bjam

I've tried reading the documentation but it is rather impenetrable so I'm hoping someone may have a simple answer. I want to define a new 'variant', based on 'debug', which just adds some macro definitions to the compiler command line, eg "-DSOMEMACRO". I think I may be able to do this as a "sub-variant" of debug, or else just define a ...

How can I decode the boost library naming?

I tried to find out that gd means in boost library name and I only found two other people looking for the same thing. I suppose it should be a place where this is clearly documented and I would like to find it. mt - multitheaded, get it with bjam threading=multi s - bjam runtime-link=static g - using debug versions of the standard and...

how to determine value of cxxflags in bjam? Or append to it?

I need to add to compiler flags using bjam. So either I need a way to append to the existing flags -- like CXXFLAGS+=whatever using gmake -- or I need to know the currently-used value of cxxflags so I can replace it with my additions. As usual, the documentation leaves me astonished at the complexity of bjam but no closer to being able ...

How do I build boost examples with bjam?

Boost library is full of examples and tests and I would like to build them using bjam if possible. How do I build boost examples with bjam? PS. I wasn't able to locate proper documentation for this option. ...

How to tell what optimizations bjam is using to build boost

I'm building the boost libraries with bjam for both the intel compiler and vs2008, and I can't tell what optimizations are being passed to the compiler from bjam. For one of the compiler's gcc, I can see some optimizations in one of the bjam files, but I can't find the optimization flags for the compilers I care about. So, my questions a...

How to build Boost with C++0x support?

I don't know how to build Boost with C++0x compilers. Which option must be given to bjam? Should the user.config file be modified?Can someone help me? Best, Vicente ...

Is it possible to do an out-of-source build with bjam?

Due to quota restrictions I really need to build a project that I'm working on with all of the temporary files and build products in a separate directory (in my case /tmp/somewhere). I'm used to doing this with CMake, is it possible with bjam, if so, how? ...

How do I specify 64-bit machine architecture when building boost libraries with bjam on solaris?

That's the question. Thanks in advance. ...

Is it possible to convert a Visual Studio project to a Jamfile?

Hello, I'd like to convert a c++ VS project into a jamfile, so I can compile the code on linux using Bjam. Ideally, it'd be a script I could run, so as I update the VS project I can keep the Jamfiles synchronised. Has anyone tried this? Thanks Si ...

bjam glob 'exclude pattern' question

According to the docs, bjam's glob operator accepts a 2nd argument which specifies a pattern to exclude, like so: [ glob pattern : exclude ] However bjam gives me an error complaining about the 2nd argument. It may be that my bjam version is too old. Would anyone know at what version this 'exclude' feature was added? I'm using 3.1....

How to change include path using bjam

I have the following directory structure: APPDIR/ APPDIR/APPHDRS (has *.h) APPDIR/APPLIBSRCS (has *.cpp need to make a library, say libtest.a) APPDIR/APPMAIN (has main.cpp that will compile if g++ gets args -I $HOME/APPINSTALLDIR and -L $HOME/APPINSTALLDIR/LIB) I got headers to be installed by adding in APPDIR/Jamroot: local headers =...

How to force Boost to use rpath?

I have to build Boost outside the "usual" directory tree (i.e., /custom/dir instead of /usr), which is not that much of a problem: Just pass --prefix=/custom/path to ./runscript.sh / ./bjam, and there you go. Or so I thought. The problem is that some of the Boost libraries depend on each other, and - using the default build process goi...

Build Boost for Windows CE 5.0

Does anyone have a set of instructions for building boost libraries for use on Windows CE? I've found some discussions on it: boost build mailing list and another one from the boost build mailing list ... but surely someone has written up something more concrete... ...

Getting a buildable Boost extract with bcp

I'm using bcp to extract Boost.Archive from Boost. Unfortunately I can't build this extract. Boost.Archive is not a header-only library. bjam complains Unable to load Boost.Build: could not find "boost-build.jam" Is there any way to tell bcp to make the extract buildable with bjam (copy boost-build.jam to the right place)? ...

How could I change boost release variant to use cxxflags=-O2 ?

On my machine cxxflags for variant=release is -O3 by default. I need to change it to -O2. Please advise how to proceed. I am fine with defining a new variant as well, if someone could advise me on that. ...