Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
diana:windows:building:boost [2010-01-13 10:30:34] dages |
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 ====== | ||
- | |||
- | **XXX** revisit | ||
===== Boost jam ===== | ===== Boost jam ===== | ||
Line 9: | Line 7: | ||
Get the source tarball from http:// | Get the source tarball from http:// | ||
- | $ tar zxf boost-jam-3.1.17.tgz | ||
- | $ cd boost-jam-3.1.17 | ||
$ sh ./build.sh | $ sh ./build.sh | ||
$ cp bin.ntx86/ | $ cp bin.ntx86/ | ||
Line 25: | Line 21: | ||
===== Main libraries ===== | ===== Main libraries ===== | ||
- | Download the main Boost libraries from http:// | + | Download the main Boost libraries from http:// |
- | + | ||
- | $ tar zxvf boost/ | + | |
Let's see what we've got: | Let's see what we've got: | ||
Line 52: | 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. | ||
- | $ mkdir obj | + | In principle, you could use the following command to build Boost: |
- | $ bjam toolset=gcc --prefix=/ | + | |
+ | $ bjam toolset=gcc --prefix=/ | ||
+ | |||
+ | If you do, though, you will get warnings about several components due to missing compiler features (e.g. '' | ||
- | You will get a number of warnings about [[http://www.boost.org/ | + | $ bjam toolset=gcc variant=release link=shared threading=multi \ |
+ | | ||
+ | | ||
+ | | ||
+ | stage | ||
- | $ bjam toolset=gcc --prefix=/ | + | To install the result, run the exact same command, but with '' |
- | --without-regex --without-graph --without-graph_parallel --without-mpi | + | |
- | If all goes well, you will find the libraries in the '' | + | $ bjam toolset=gcc variant=release link=shared threading=multi \ |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | $ cp LICENSE_1_0.txt | ||
- | (No, Virginia, Boost does not have an install script) | + | **XXX** can't get static linking to work |