88 lines
3.3 KiB
Plaintext
88 lines
3.3 KiB
Plaintext
Boost compilation instructions:
|
|
|
|
This is just a quick note, for full information see the Boost library
|
|
documentation
|
|
|
|
On Windows hosts, build Boost in a Visual Studio command prompt:
|
|
|
|
===============================================================================
|
|
== Visual Studio
|
|
===============================================================================
|
|
|
|
1. Setup
|
|
========
|
|
- Extract the Boost sources to a directory
|
|
- Open up a 32-bit Visual C++ command prompt and CD into that directory
|
|
- Type 'bootstrap'
|
|
|
|
2. x86 compilation
|
|
==================
|
|
- Open up a 32-bit Visual C++ command prompt and CD into your Boost source
|
|
directory
|
|
- Delete the bin.v2 folder, if exists
|
|
- Type in:
|
|
'b2 install --libdir=c:/boost/lib --stagedir=./stage32 link=static runtime-link=static'
|
|
|
|
3. x64 compilation
|
|
==================
|
|
- Open up a 64-bit Visual C++ command prompt and CD into your Boost source
|
|
directory
|
|
- Delete the bin.v2 folder, if exists
|
|
- Type in:
|
|
'b2 install --libdir=c:/boost/lib64 --stagedir=./stage64 link=static runtime-link=static address-model=64'
|
|
|
|
4. Checking the results
|
|
=======================
|
|
If all runs above succeded, you should see the following directory structure
|
|
on your hard drive:
|
|
C:\BOOST
|
|
+---include
|
|
| +---boost-1_60
|
|
| +---boost
|
|
| ...
|
|
+---lib
|
|
+---lib64
|
|
You can also check that the library sizes under lib and lib64 are different,
|
|
indicating that they are indeed for two different targets
|
|
|
|
5. Updateing the Visual Studio property sheet
|
|
=============================================
|
|
If you're not using Boost version 1.60, or installed Boost into a non-default
|
|
location, please update the common.props file in this directory:
|
|
- Search for the following line in common.props:
|
|
<AdditionalIncludeDirectories>.;..;..\sim_lib;C:\Boost\include\boost-1_60;..\pdcurses</AdditionalIncludeDirectories>
|
|
- Replace the include directory 'C:\Boost\include\boost-1_60' with the
|
|
appropriate path for your Boost include files.
|
|
- If you insatlled Boost into a non-default location, please make the following
|
|
additional edits. In the same file,replace the library paths with the location
|
|
of your Boost installation:
|
|
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
|
|
<Link>
|
|
<AdditionalLibraryDirectories>$(FINAL_LIBDIR);C:\Boost\lib\</AdditionalLibraryDirectories>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
|
|
<Link>
|
|
<AdditionalLibraryDirectories>$(FINAL_LIBDIR);C:\Boost\lib64\</AdditionalLibraryDirectories>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
===============================================================================
|
|
== MinGW
|
|
===============================================================================
|
|
|
|
Use MinGW distro from http://nuwen.net/mingw.html. That way you don't have to do
|
|
anything, you are ready to go.
|
|
|
|
If you are using a stock MinGW installation, you'll have to build boost yourself.
|
|
|
|
===============================================================================
|
|
== Cygwin
|
|
===============================================================================
|
|
|
|
As of this writing, Cygwin is broken. Theoretically, all you have to select all
|
|
the boost libraries in the cygwin setup.
|
|
See http://comments.gmane.org/gmane.os.cygwin/158779 for what's wrong with the
|
|
current packages.
|