Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Monday, November 14, 2005

build boost 1.33 (regex) with VC8.0 (VC++ 2005)

Follow these steps to build boost:
# Download "boost_1_33_0.exe" from SourceForge.org
# Download "boost-jam-3.1.11-1-ntx86.zip" from SourceForge.org
# Extract "boost_1_33_0.exe" and "boost-jam-3.1.11-1-ntx86.zip"
# "Start" → "All Programs" → "Microsoft Visual Studio 2005" → "Visual Studio Tools" → "Visual Studio 2005 Command Prompt"
# Change Directory to "boost_1_33_0.exe" extraction directory.
# TYPE$ bjam "-sTOOLS=vc-8_0" install

I got the following result:
...failed updating 6 targets...
...skipped 28 targets...
...updated 4777 targets...

The biggest problem is that boost regex library is not created.

try again:
D:\boost\boost_1_33_0>bjam "-sTOOLS=vc-8_0" install > vc8_log.txt

boost regex library still failed. But I get some clue from the log file.

From Onega (www.fruitfruit.com, http://fruitfruit.blogspot.com/)
Start-->All Programs-->Control Panel-->Regional and Language Options:
Advanced tab:
Select a language to match the language version of the non-Unicode programs you want to use:
English (United States)

Restart computer and try again:
D:\boost\boost_1_33_0>bjam "-sTOOLS=vc-8_0" install > vc8_log.txt
OK, I got it.
FileClone C:\Boost\lib\libboost_regex-vc80-mt-1_33.lib
FileClone C:\Boost\lib\boost_serialization-vc80-mt-gd-1_33.lib
FileClone C:\Boost\lib\boost_wserialization-vc80-mt-gd-1_33.lib
HardLink C:\Boost\lib\boost_filesystem-vc80-mt-gd.lib
HardLink C:\Boost\lib\boost_regex-vc80-mt-gd.lib
HardLink C:\Boost\lib\boost_regex-vc80-mt.lib
HardLink C:\Boost\lib\libboost_regex-vc80-mt-sgd.lib
HardLink C:\Boost\lib\libboost_regex-vc80-mt-gd.lib
HardLink C:\Boost\lib\libboost_regex-vc80-mt-s.lib
HardLink C:\Boost\lib\libboost_regex-vc80-mt.lib
HardLink C:\Boost\lib\boost_serialization-vc80-mt-gd.lib
HardLink C:\Boost\lib\boost_wserialization-vc80-mt-gd.lib
...updated 40 targets...

0 Comments:

Post a Comment

<< Home