quantlib-bjam /

Filename Size Date modified Message
1.4 KB
261 B

Boost.Build files to build QuantLib without autotools

I tired of fighting autotools and libtool on MinGW so I decided to use Boost.Build instead. Not that I liked it but it least it is more predictable.

I tested it on Windows and Linux.


If you are on Windows, install MinGW.

On all platforms, download and extract boost and QuantLib. Due to the specific version of GCC I needed, I used GCC-4.5.2 with boost-1.50 and QuantLib-1.2.1.

If you don't have Boost.Build (bjam) installed, run this in the Boost directory ensuring gcc is in your PATH:

cd tools\build\v2
boostrap mingw
.\b2 install --prefix=<your-preferred-dir-for-bjam>

The same will work on Linux if you replace backslashes in paths with forward ones.

Making sure b2 is in PATH, adjust PATH to Boost in the use-project /boost line of jamroot.jam. The execute this in the QuantLib directory to build fully static library (--hash is used to reduce command line length):

b2 -d+2 --hash

Also you might want to run the same in the Examples and test-suite directories.

Probably some time later I will add installation targets, for now the built library can be used in place from bin subdirectories, see test-suite/jamfile.jam for how you can refer QuantLib in your Boost.Build files.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.