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 [2009-12-01 13:51:39] 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/ |
- | | + | |
$ which bjam | $ which bjam | ||
- | /usr/ | + | /mingw/bjam.exe |
$ bjam -v | $ bjam -v | ||
Boost.Jam | Boost.Jam | ||
Line 26: | 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 53: | 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 |