Building ICU 32/64 on Windows
Building ICU x64 common and i18n projects for Boost
You do not need to build the whole of ICU just to get icudt.lib, icuuc.lib and icuin.lib required by boost regex for unicode aware regex
The "common" project makes icudt.lib icuuc.lib and the "i18n" project makes icuin.lib
Specimen Build Platform/Environment
- windows server 2008 R2 SP1 64
- install sdk7.1 minimally
- install visual studio c++ 2010 express (if building debug versions)
Get ICU Source
extract all to f:\icu4c-4_6_1-src
http://download.icu-project.org/files/icu4c/4.6.1/icu4c-4_6_1-src.zip
open sdk7.1 command prompt and get into icu source folder
f: cd \icu4c-4_6_1-src\icu\source
Building Release Version
setenv /release cd common msbuild /p:Platform=x64 /p:Configuration=Release cd .. cd i18n msbuild /p:Platform=x64 /p:Configuration=Release cd ..
Check the lib64 folder for icudt.lib, icuuc.lib and icuin.lib
Building Debug Version
Producing the proper debug versions of icu may not be necessary if your objective is only to produce release versions of the boost libraries (and you use the work-around to avoid the need for icu debug libraries)
setenv /debug
NOTE: To produce the DEBUG version of the libraries, you need Visual Studio's bscmake on the path. This must be done after setenv.
vsvars32 x64 cd common msbuild /p:Platform=x64 /p:Configuration=Debug cd .. cd i18n msbuild /p:Platform=x64 /p:Configuration=Debug cd ..
Check the lib64 folder for icuucd.lib and icuind.lib