The problem with cross compiling icu

I am trying to cross compile the icu library for iPhone. I downloaded the configure script shell from http://sites.google.com/site/michaelsafyan/coding/articles/iphone. When I executed it, I get the following error message:

checking wchar.h usability... no checking wchar.h presence... yes configure: WARNING: wchar.h: present but cannot be compiled configure: WARNING: wchar.h: check for missing prerequisite headers? configure: WARNING: wchar.h: see the Autoconf documentation configure: WARNING: wchar.h: section "Present But Cannot Be Compiled" configure: WARNING: wchar.h: proceeding with the preprocessor result configure: WARNING: wchar.h: in the future, the compiler will take precedence checking for wchar.h... yes checking for library containing wcscpy... none required checking size of wchar_t... 0 configure: error: There is wchar.h but the size of wchar_t is 0 

Does anyone know how I can fix this?

Thanks in advance

+2
source share
2 answers

I did a very dirty hack to solve the problem: I just deleted this check in the setup script. Then icu compiled. Hope it also works correctly ...

0
source

in the .h platform, you must determine the wchar_t size for the size of the real platform. If you do not, it will not work.

define U_SIZEOF_WCHAR_T 4 // macosx

Manfred

0
source

All Articles