Building ICU 32/64 on Windows

From NEOSYS Dev Wiki
Jump to navigationJump to search

Building ICU 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

The release configuration of ICU can be built with SDK only. Visual Studio is only needed to create debug versions. Visual Studio Express is sufficient and it can be run in command mode.

Specimen Build Platform/Environment

  • windows server 2008 R2 SP1 64
  • install sdk7.1 minimally
  • install visual studio c++ 2010 express (optional if not building debug libs)

VS is needed for building debug versions even while doing command line build. It might even be needed for building release versions if the projects arent setup quite right for msbuild+sdk only. Presence of VS doesnt mean that we are going to use GUI

Get ICU Source

Download

http://download.icu-project.org/files/icu4c/4.6.1/icu4c-4_6_1-src.zip

"extract all" to

f:\icu4c-4_6_1-src

Script to build x86 x64 Release+Debug

Can make VS2005 VS2008 VS2010 if you amend parameters in the heading

rem xp 2008 win7 for VS2005 VS2008 VS2010 respectively
set SETENV_TARGET=2008

http://code.google.com/p/exodusdb/source/browse/trunk/buildicu.cmd

older instructions