Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
diana:windows:building:boost [2009-11-12 14:04:20] dages created |
diana:windows:building:boost [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Building the Boost libraries on Windows ====== | ====== Building the Boost libraries on Windows ====== | ||
- | (using [[.: | + | ===== Boost jam ===== |
- | ===== Build tools ===== | + | This utility is used to [[boost|compile the Boost libraries]]. |
- | See [[.:environment# | + | Get the source tarball from http://downloads.sourceforge.net/ |
- | ===== Main libraries ===== | + | $ sh ./ |
+ | $ cp bin.ntx86/ | ||
+ | $ which bjam | ||
+ | / | ||
+ | $ bjam -v | ||
+ | Boost.Jam | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | Download the main Boost libraries | + | ===== Main libraries |
- | $ tar zxvf boost/boost_1_40_0.tar.gz | + | Download the main Boost libraries from http://downloads.sourceforge.net/ |
Let's see what we've got: | Let's see what we've got: | ||
Line 36: | Line 46: | ||
Jam will detect that you're running Windows and (rather then check what's available) assume that you want to use the MSVC toolchain; you have to force it to use gcc instead. | Jam will detect that you're running Windows and (rather then check what's available) assume that you want to use the MSVC toolchain; you have to force it to use gcc instead. | ||
- | | + | In principle, you could use the following command to build Boost: |
- | $ bjam toolset=gcc --prefix=/usr/local --build-dir=obj | + | |
+ | | ||
+ | |||
+ | If you do, though, you will get warnings about several components due to missing compiler features (e.g. '' | ||
+ | |||
+ | $ bjam toolset=gcc | ||
+ | --prefix=/c/met.no | ||
+ | | ||
+ | | ||
+ | stage | ||
- | You will get a number of warnings about [[http:// | + | To install the result, run the exact same command, but with '' |
- | $ bjam toolset=gcc --prefix=/usr/local --build-dir=obj --without-python | + | $ bjam toolset=gcc |
- | --without-regex --without-graph --without-graph_parallel | + | --prefix=/c/met.no |
+ | | ||
+ | --without-python --without-serialization \ | ||
+ | | ||
+ | $ cp LICENSE_1_0.txt / | ||
- | If all goes well, you will find the libraries in the '' | + | **XXX** can't get static linking |