Build icu
From Fortis
Prerequisites
- Microsoft Platform SDK (PSDK)
- A working C/C++ Compiler. (These instructions assume MSVC.)
The compiler used here must be the same compiler (or C++ binary compatible) with the compiler you will use to build Fortis. In the case of MSVC the compiler must be configured to work from the command line as follows:
VS="C:/path/to/visual studio"
PSDK="C:/path/to/psdk"
PATH=`cygpath $VS/vc/bin`:`cygpath $VS/common7/ide`:`cygpath $PSDK/bin`:/usr/local/bin:/usr/bin:/bin
export LIB="$VS/vc/lib;$PSDK/lib"
export INCLUDE="$VS/vc/include;$PSDK/include"
Installation Steps
- Go to the contrib folder and verify that ICU is not already installed. $
cd /develop/contrib - Download the ICU source. $
wget http://.../icu-src.tgzNote: It is important to get the .tar or .tgz archive and not use the .zip archive because of possible problems caused by MS-DOS line endings. - Extract the source archive. $
gzip -dc icu-src.tgz | tar xf - - Rename the created directory to your liking. $
mv icu icu-X.Y.Z - (optional) Add Fortis custom data to ICU's codepage database. (See Official Docs)$
cd icu-X.Y.Z/source/data/mappings
$ echo 'frameroman7 { framemif-7* }' >> convrtrs.txt
$ echo 'UCM_SOURCE_LOCAL = frameroman7.ucm' >> ucmlocal.mk
$ cp /develop/<branch>/src/filter/framemif/frameroman7.ucm ./Note: You also need to add framemif-7 to the struct at the top of convrtrs.txt - Run ICU's configure script. $
cd icu-X.Y.Z/source; ./runConfigureICU Cygwin/MSVC2005 --prefix=/develop/contrib/icu-X.Y.Z --enable-debug --enable-releaseNote: Specifying both --enable-debug and --enable-release should build both a -MD and -MDd build of the library simultaneously. - Build icu, check the build, and install it. Monitor the file build.log for error messages and successful completion. $
make "CFLAGS=$CFLAGS" "CXXFLAGS=$CXXFLAGS" all check install >build.log 2>&1 - Finally, verify that the bin/ lib/ and include/ directories have received the final program. $
find /develop/contrib/icu-X.Y.Z/{include,bin,lib}