FortisMain Page | About | Help | FAQ | Special pages | Log in

Build icu

From Fortis

Prerequisites

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

  1. Go to the contrib folder and verify that ICU is not already installed.
    $ cd /develop/contrib
  2. Download the ICU source.
    $ wget http://.../icu-src.tgz
    Note: 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.
  3. Extract the source archive.
    $ gzip -dc icu-src.tgz | tar xf -
  4. Rename the created directory to your liking.
    $ mv icu icu-X.Y.Z
  5. (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
  6. Run ICU's configure script.
    $ cd icu-X.Y.Z/source; ./runConfigureICU Cygwin/MSVC2005 --prefix=/develop/contrib/icu-X.Y.Z --enable-debug --enable-release
    Note: Specifying both --enable-debug and --enable-release should build both a -MD and -MDd build of the library simultaneously.
  7. 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
  8. Finally, verify that the bin/ lib/ and include/ directories have received the final program.
    $ find /develop/contrib/icu-X.Y.Z/{include,bin,lib}

Retrieved from "http://starfish.multiling.com/wiki/index.php/Build_icu"

This page has been accessed 92 times. This page was last modified 10:33, 22 August 2008.


Find

Browse
Main Page
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...