Monday, January 28, 2008

Building Boost 1.34.1 with Visual Studio 2008

At this point neither (CGAL 3.3.1 and Boost 1.34.1) provide project files for VS 2008 to compile them. Here are what I did to get them compiled. The main problem is they don't recognize VS 2008 version number in their compiler detection code. We just need to patch them.

Get the patch here:
http://stlab.adobe.com:8080/@md=d&cd=//adobe_source_libraries/tools/&c=KFx@//adobe_source_libraries/tools/boost_1_34_1_patch_01.txt?ac=22

Then use GNU patch tool to boost_1_34_1_patch_01.txt

Actually, Adobe's fix is more than what you probably needs, someone else made a simpler patch here:

http://www.mythicsoft.com/blogs/post/Compiling-Boost-with-Visual-Studio-2008-(VS2008).aspx

However, it's not complete. You may get errors from the signal library in boost, get my modified patch here:

http://www.box.net/shared/qxvyt41s0g

Run VS command line environment and follow build instruction here:
http://www.boost.org/more/getting_started/windows.html

Run with: bjam -a --build-dir=../boost-build --toolset=msvc stage

No comments: