Boost C++ Dev Setup
Get Python
I use boost.python, so python must be installed before building boost. No need to build from source, just get the Windows installer from http://python.org/. I'm using python 2.6 right now, haven't tried the 3.X series yet. Add C:\Python26 to your Windows PATH environment variable. (You can do it when you modify that below.)Boost Build
The boost windows docs has all the instructions you really need to build boost. This guide only adapts that to my local dev conventions- Get the boost source from http://sourceforge.net/projects/boost/files/
- Also, get the Windows bjam .exe, currently rev'd at: http://sourceforge.net/projects/boost/files/boost-jam/boost-jam-3.1.17-1-ntx86.zip/download
- Make your dev dirs. I use cygwin, you can easily translate to the Windows command shell. Unless you have tar, though, make sure you download the zip distro of boost. Also, I use the cygpath of "/" instead of "/cygdrive", i.e., I run
mount -s --change-cygdrive-prefix /cd "/c/Documents and Settings/Rod/My Documents"
mkdir -p Devel/local
cd Devel/local
mkdir bin lib src tmp
cd src
tar jxf ~/Downloads/boost_1_39_0.tar.bz2
cd ../bin
unzip ~/Downloads/boost-jam-3.1.17-1-ntx86.zip
mv boost-jam-3.1.17-1-ntx86/bjam.exe .
chmod +x bjam.exe
rm -rf boost-jam-3.1.17-1-ntx86/ - Add the Devel/local/bin path to your Windows path variable (Control Panel->System, Advanced Tab, Environment Variables Button):
- Start a Visual C++ command shell, i.e., menu to something like:
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Actually, I'm currently building with...
C:/Users/rod/KlickFu/Devel/local/src/boost_1_39_0>bjam --build-dir=../../tmp/boost --prefix=../.. --toolset=msvc --threading=multi --runtime-link=static link=static debug release installC:Develboost_1_43_0>bjam --build-dir=../tmp --prefix=../boost --build-type=complete runtime-link=static --without-graph --without-graph_parallel --without-mpi --without-wave msvc install
Related links
| Browse Boost C++ Libraries Files on SourceForge.net Posted by Rod, on Jan. 29 2010 | |
| Boost Getting Started on Windows - (28 clicks) Posted by Rod, on Jan. 29 2010 | |
| Python Programming Language -- Official Website - (13 clicks) Posted by Rod, on Jan. 29 2010 |


