Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
diana:windows:building:boost [2010-01-14 15:51:09]
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 
- 
-**XXX** wchar issue 
  
 ===== Boost jam ===== ===== Boost jam =====
Line 11: Line 7:
 Get the source tarball from http://downloads.sourceforge.net/project/boost/boost-jam/3.1.17/boost-jam-3.1.17.tgz; once you have it, it's a simple matter of running the build script (which will automatically detect MinGW) and installing the resulting executable: Get the source tarball from http://downloads.sourceforge.net/project/boost/boost-jam/3.1.17/boost-jam-3.1.17.tgz; once you have it, it's a simple matter of running the build script (which will automatically detect MinGW) and installing the resulting executable:
  
-  $ tar zxf boost-jam-3.1.17.tgz 
-  $ cd boost-jam-3.1.17 
   $ sh ./build.sh   $ sh ./build.sh
   $ cp bin.ntx86/bjam.exe /mingw/bin   $ cp bin.ntx86/bjam.exe /mingw/bin
Line 27: Line 21:
 ===== Main libraries ===== ===== Main libraries =====
  
-Download the main Boost libraries from http://downloads.sourceforge.net/project/boost/boost/1.40.0/boost_1_40_0.tar.gz and extract them somewhere convenient+Download the main Boost libraries from http://downloads.sourceforge.net/project/boost/boost and extract them somewhere convenient.
- +
-  $ tar zxvf boost/boost_1_40_0.tar.gz+
  
 Let's see what we've got: Let's see what we've got:
Line 60: Line 52:
 If you do, though, you will get warnings about several components due to missing compiler features (e.g. ''wchar'' for [[http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/index.html|Boost.Serialization]]) and / or third-party components (e.g. Python for [[http://www.boost.org/doc/libs/1_40_0/libs/python/doc/index.html|Boost.Python]]). If you do, though, you will get warnings about several components due to missing compiler features (e.g. ''wchar'' for [[http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/index.html|Boost.Serialization]]) and / or third-party components (e.g. Python for [[http://www.boost.org/doc/libs/1_40_0/libs/python/doc/index.html|Boost.Python]]).
  
-  $ bjam toolset=gcc --prefix=/opt/boost --build-dir=obj --layout=tagged \+  $ bjam toolset=gcc variant=release link=shared threading=multi \ 
 +       --prefix=/c/met.no --build-dir=obj --layout=tagged \
        --without-graph --without-graph_parallel --without-mpi \        --without-graph --without-graph_parallel --without-mpi \
-       --without-python --without-regex --without-serialization \+       --without-python --without-serialization \
        stage        stage
  
 To install the result, run the exact same command, but with ''install'' instead of ''stage'': To install the result, run the exact same command, but with ''install'' instead of ''stage'':
  
-  $ bjam toolset=gcc --prefix=/opt/boost --build-dir=obj --layout=tagged \+  $ bjam toolset=gcc variant=release link=shared threading=multi \ 
 +       --prefix=/c/met.no --build-dir=obj --layout=tagged \
        --without-graph --without-graph_parallel --without-mpi \        --without-graph --without-graph_parallel --without-mpi \
-       --without-python --without-regex --without-serialization \+       --without-python --without-serialization \
        install        install
 +  $ cp LICENSE_1_0.txt /c/met.no/copyright/boost.txt
  
 +**XXX** can't get static linking to work
  • diana/windows/building/boost.1263484269.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)