I couldn’t find a concise howto on compiling Boost with STLPort on Windows, so here it is:
- Download Boost. I used version 1.44, I have heard people have struggled with earlier versions.
- In the Boost root directory, open
project-config.jam
. Add the following line:
using stlport : STLPORT_VERSION : C:/PATH_TO_STLPORT/stlport : C:/PATH_TO_STLPORT/lib ;
, substitutingSTLPORT_VERSION
for you version of STLPort, andPATH_TO_STLPORT
to you STLPort directory. - Build Boost:
bjam stdlib=stlport stage
. If you want to build a static lib, addlink=static runtime-link=static
.
My setup:
- Boost 1.44
- STLPort 5.2.1
- Visual Studio 2008
If you enjoyed this post, you can subscribe to my blog, or follow me on Twitter