<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I fail to build text-icu-0.1 on Windows, and would
appreciate some help...<BR>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>Let me describe what I've done so for, and what
results I got:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>First, I got a version of ICU on my machine,
specifically unzipping the<BR>file "icu4c-4_0_1-Win32-msvc8.zip" from </FONT><A
href="http://icu-project.org/download/4.0.html"><FONT face=Arial
size=2>http://icu-project.org/download/4.0.html</FONT></A><FONT face=Arial
size=2>.<BR>This made me having ICU stuff at location "C:\HaskellStuff\icu\icu",
as<BR>witnessed below:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>> C:\HaskellStuff\icu\icu>dir<BR><<
30/04/2009 16:08
<REP> .<BR><<
30/04/2009 16:08
<REP> ..<BR><<
30/04/2009 16:51
<REP>
bin<BR><< 30/04/2009 16:08
<REP>
include<BR><< 30/04/2009 16:36
<REP>
lib<BR><< 14/01/2009
22:48
2 032 license.html</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>After downloading and untaring "text-icu-0.1",
I tried to configure, typing in:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>
C:\HaskellStuff\pkg\text-icu-0.1>runhaskell Setup configure<BR><<
Configuring text-icu-0.1...<BR><< Setup: Missing dependencies on foreign
libraries:<BR><< * Missing C libraries: icui18n, icuuc,
icudata<BR><< This problem can usually be solved by installing the system
packages that<BR><< provide these libraries (you may need the "-dev"
versions). If the libraries<BR><< are already installed but in a
non-standard location then you can use the<BR><< flags
--extra-include-dirs= and --extra-lib-dirs= to specify where they
are.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>OK, let's restart with appropriate values for said
flags!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>
C:\HaskellStuff\pkg\text-icu-0.1>runhaskell Setup
configure<BR>>>
--extra-include-dirs=C:\HaskellStuff\icu\icu\include<BR>>>
--extra-lib-dirs=C:\HaskellStuff\icu\icu\lib<BR><< Configuring
text-icu-0.1...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And then proceed with the building per
se:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>
C:\HaskellStuff\pkg\text-icu-0.1>runhaskell Setup build<BR><<
Preprocessing library text-icu-0.1...<BR><< In file included from
C:/HaskellStuff/icu/icu/include/unicode/umachine.h:47,<BR><<
from
C:/HaskellStuff/icu/icu/include/unicode/utypes.h:36,<BR><<
from Data\Text\ICU\Error.hsc:148:<BR><<
C:/HaskellStuff/icu/icu/include/unicode/pwin32.h:120:<BR><<
error: redefinition of typedef 'int8_t'<BR><<
C:/ghc/ghc-6.10.1/include/mingw/stdint.h:27:<BR><<
error: previous declaration of 'int8_t' was here<BR><< <SPAN
class=149285107-13052009>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=149285107-13052009></SPAN><< <SPAN class=149285107-13052009>...
(a bunch of similar messages for other type aliases,
e.g. </SPAN>'uint8_t'<SPAN
class=149285107-13052009>)</SPAN><BR><< <SPAN
class=149285107-13052009>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=149285107-13052009></SPAN><<
compiling dist\build\Data\Text\ICU\Error_hsc_make.c failed<BR><< command
was: C:\ghc\ghc-6.10.1\gcc.exe -c
-BC:\ghc\ghc-6.10.1\gcc-lib<BR><<
-IC:\ghc\ghc-6.10.1\include\mingw
-D__GLASGOW_HASKELL__=610<BR><<
-IC:\HaskellStuff\icu\icu\include<BR><<
-IC:\ghc\ghc-6.10.1\bytestring-0.9.1.4\include<BR><<
-IC:\ghc\ghc-6.10.1\base-4.0.0.0\include<BR><<
-IC:\ghc\ghc-6.10.1/include<BR><<
-IPAPI_INCLUDE_DIR
dist\build\Data\Text\ICU\Error_hsc_make.c<BR><<
-o dist\build\Data\Text\ICU\Error_hsc_make.o<BR><< <BR><<
C:\HaskellStuff\pkg\text-icu-0.1></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>The "mingw/stdint.h" file contains a series of
lines of this style:<BR><<<BR><< typedef signed char
int8_t;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>Whereas, the "unicode/pwin32.h" file contains
contains stuff like:<BR><< <BR><< /* Define whether inttypes.h is
available */<BR><< #ifndef U_HAVE_INTTYPES_H<BR><< #define
U_HAVE_INTTYPES_H 0<BR><< #endif<BR><< ...<BR><< <BR><<
/* Determines whether specific types are available */<BR><< #ifndef
U_HAVE_INT8_T<BR><< #define U_HAVE_INT8_T U_HAVE_INTTYPES_H<BR><<
#endif<BR><< ...<BR><<<BR><< /* If your platform does not have
the <inttypes.h> header, you may<BR><< need to
edit the typedefs below. */<BR><< #if U_HAVE_INTTYPES_H<BR><<
#include <inttypes.h><BR><< #else /* U_HAVE_INTTYPES_H
*/<BR><< <BR><< #if ! U_HAVE_INT8_T<BR><< typedef signed char
int8_t;<BR><< #endif<BR><< ...<BR><< #endif</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>So, do I need to explicitely change the icu
include file?<BR>And in which way?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any other solution/suggestion?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--Serge<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>