Hi again,
I've managed to fool mono on win32 to compile w/ ICU the following way :
- I've got the latest ICU Win32 binary from
(ftp://www-126.ibm.com/pub/icu/2.6.1/icu-2.6.1-Win32_msvc6.zip).
- I've got the latest ICU source from
(ftp://www-126.ibm.com/pub/icu/2.6.1/icu-2.6.1.zip).
- Installed the binary zip at c:\icu
- Unsing the ICU's 'configure' script I've produced a proto icu-config
for CygWin
- Changed the names and the location of the ICU libraries from their
cygwin names to the Win32 native names. This way I got the attached
icu-config.
- Copied the so produced icu-config to c:\icu\bin and added c:\icu\bin
to the PATH
- run the mono-build-win32.sh - it detected and compiled the ICU support
just fine.
For anybody interested I'm attaching the modified icu-config. Just get
the Win32 binary achive, unzip it to c:\icu, add the icu-config to
c:\icu\bin and add the c:\icu\bin to your PATH.
It proves handy to copy the three ICU dlls referenced (icudt26l.dll,
icuuc26.dll and icuin26.dll) to install\lib (next to the glib dlls) so
you can safely remove the icu installation.
Best Regards,
George Kodinov
George Kodinov wrote:
Hi,
I've noted that the Win32 build script is not adding the ICU to the mix.
Does anyone have some experience on building Mono with ICU on windows ?
Does it worth trying at all ?
Best Regards,
George Kodinov
___
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
#!/bin/sh
## -*-sh-*-
#set -x
# BEGIN of icu-config-top
#**
# Copyright (C) 1999-2002, International Business Machines
# Corporation and others. All Rights Reserved.
# $Revision: 1.1 $
#**
# This script is designed to aid configuration of ICU.
# rpath links a library search path right into the binaries.
### END of icu-config-top
## Zero out prefix.
execprefix=
prefix=
loaddefs()
{
# Following from ./config/mh-cygwin
# Generated automatically from Makefile.inc.in by configure.
## -*-makefile-*-
#**
# Copyright (C) 1999-2003, International Business Machines
# Corporation and others. All Rights Reserved.
# $Revision: 1.35 $
#**
# This Makefile.inc is designed to be included into projects which make use
# of the ICU.
# CONTENTS OF THIS FILE
# 1). Base configuration information and linkage
# 2). Variables giving access to ICU tools
# 3). Host information
# 4). Compiler flags and settings
# 5). Data Packaging directives
# 6). Include of platform make fragment (mh-* file)
##
#
# *1* base configuration information and linkage
#
##
# The PREFIX is the base of where ICU is installed.
# Inside this directory you should find bin, lib, include/unicode,
# etc. If ICU is not installed in this directory, you must change the
# following line. There should exist ${prefix}/include/unicode/utypes.h
# for example.
default_prefix="c:/icu"
if [ "x${prefix}" = "x" ]; then prefix="$default_prefix"; fi
exec_prefix="${prefix}"
libdir="${exec_prefix}/bin"
libexecdir="${exec_prefix}/libexec"
bindir="${exec_prefix}/bin"
datadir="${prefix}/share"
sbindir="${exec_prefix}/sbin"
# about the ICU version
VERSION="2.6.1"
UNICODE_VERSION="4"
# The prefix for ICU libraries, normally 'icu'
ICUPREFIX="icu"
PACKAGE="icu"
LIBICU="${ICUPREFIX}"
# Suffix at the end of libraries. Usually empty.
ICULIBSUFFIX="26"
# ICULIBSUFFIX_VERSION is non-empty if it is to contain a library
# version. For example, if it is 21, it means libraries are named
# libicuuc21.so for example.
# rpath links a library search path right into the binaries.
## mh-files MUST NOT override RPATHLDFLAGS unless they provide
## equivalent '#SH#' lines for icu-config fixup
default_ENABLE_RPATH="NO"
if [ "x${ENABLE_RPATH}" = "x" ]; then ENABLE_RPATH="$default_ENABLE_RPATH"; fi
RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}"
# icu-config version of above 'if':
case "$ENABLE_RPATH" in
[yY]*)
ENABLE_RPATH=YES
RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}"
;;
[nN]*)
ENABLE_RPATH=NO
RPATHLDFLAGS=""
;;
*)
echo $0: Unknown --enable-rpath value ${ENABLE_RPATH} 1>&2
exit 3
;;
esac
### To link your application with ICU:
# 1. use LDFLAGS, CFLAGS, etc from above
# 2. link with ${ICULIBS}
# 3. optionally, add one or more of:
#- ${ICULIBS_I18N}- i18n library, formatting, etc.
#- ${ICULIBS_LAYOUT} - ICU layout library.
#- ${ICULIBS_USTDIO} - ICU stdio equivalent library
ICULIBS_COMMON="-l${ICUPREFIX}uc${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
ICULIBS_DATA="-l${