Problem with cross compiling icu

2019-04-02 00:53发布

I am trying to cross compile the icu library for the iPhone. I downloaded a configure script wrapper from http://sites.google.com/site/michaelsafyan/coding/articles/iphone When I execute 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's 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 have a clue how I can fix this?

Thanks in advance

2条回答
做自己的国王
2楼-- · 2019-04-02 01:32

I made a very dirty hack to solve the problem: I just removed this check in the configure script. Then, icu compiled. Hope now, that it also works correctly...

查看更多
Viruses.
3楼-- · 2019-04-02 01:47

in the platform.h you must define the size of wchar_t to the size of the actual platform. If you dont do this it does not work.

define U_SIZEOF_WCHAR_T 4 // macosx

Manfred

查看更多
登录 后发表回答