background preloader

Boost.Build

Facebook Twitter

Build - Boost and intel compiler. Build boost libraries 1.40 for linux using Intel compiler. Build boost libraries 1.37 for window using Intel compiler. This BK is for preparation for POVRay project build. Please go to to download boost libraries package first. I am using 1.37 version. Please go to to read Boost getting started on Windows for more details. Below are steps how to build Boost libraries using Intel compiler: If you want to use any of the separately-compiled Boost libraries, you'll need to acquire library binaries. Build Binaries from source using Intel compilerBecause we will use Intel compiler to build binaries from source, we will need to use Boost.build to create our own binaries.Boost.build is a text-based system for developing, testing and installing software. Tu use it, we will need an executable called bjam.Get bjambjam is the command-line tool that drives the Boost Build system.

For Intel compiler, we will use ‘intel' as our Toolset name. 5. I am using Intel ParalleI Studio Composer as Intel compiler. 6. Invoke bjam. Boost.Build and bjam. Build mailing page: [Boost-build] Newbie: bjam on IBM AIX, undefined .pthread. Using Boost Build on your own projects. While I am a fan of SCons, every now and then I like to dabble in other build systems. One that has intrigued me for some time is Boost Build (BB).

You can visit the linked site to find out more about it but in a nutshell, it is a very elegant way to build C++ software. This post will attempt to give you some steps you can use to get started using the tool on your own projects. Note that it is a bit long but if you are new to Boost Jam as I was a few weeks back, I think it might help you get started. Please feel free to ask any clarifying questions in the comments. In the following Boost Jam is the build tool and Boost Build is the library on top of the Jam language. Building Boost Jam Before getting started, I suggest you build Boost Jam as follows (might as well get Boost too!). $ wget tar -xjf boost_1_41_0.tar.bz2$ pushd boost_1_41_0$ export BOOST_ROOT=$PWD$ pushd tools/jam/src/$ .

The Jam Language.

Accelerate Compilation

Building basic Boost applications with bjam. Boost.Build - An Introduction and Quick Start | BuildMonkey. Boost.Build is a high-level build system which makes it as easy as possible to manage C++ projects. The idea is to specify in configuration files only as much as is necessary to build programs and/or libraries. Boost.Build supports many compilers out of the box and knows how to use them and where to find them - you just need to tell Boost.Build where to find the source files, what the executable / library should be called and which compiler toolset Boost.Build should use. Boost.Build will then figure out the rest and automatically build the program. As Boost.Build supports many compilers configuration files never contain any compiler-specific options. Configuration files are entirely compiler-independent. Of course it is possible to set options like whether code should be optimized.

As nice as it sounds Boost.Build can only be used for C++ and C projects. Boost.Build was created to build and install the Boost C++ libraries easily with different compilers on different platforms. Using Boost.Test with Boost.Build. In my earlier post C++ Unit Testing With Boost.Test I used make to build my sample code — largely because that is what I am more familiar with. If you’re using Boost for testing, though, you should also consider using it for building. From what I’ve seen you get a lot of functionality for free with Boost.Build if you’re willing to climb the learning curve. In order to help, I’ve put together a simple tutorial that combines Boost.Test and Boost.Build. Prerequisites In this tutorial I’m assuming you have Boost installed already. Installing Boost.Build If, like me, you installed Boost by using the package manager on your Linux box, you may still not have Boost.Build installed.

The bjam package installs Boost’s variant of the jam build tool, whereas the boost-build package installs a set of bjam configurations that form the actual Boost.Build system. Once you have everything set up, you should be able to run bjam –version and see similar to the following output: Sample Projects Top Level Wrap Up. Building DynamO 1.0 From Source.