交叉编译icu的问题

时间:2010-03-07 08:01:55

标签: iphone cross-compiling icu

我正在尝试交叉编译iPhone的icu库。我从http://sites.google.com/site/michaelsafyan/coding/articles/iphone下载了一个配置脚本包装器 当我执行它时,我收到以下错误消息:

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

有没有人知道如何解决这个问题?

提前致谢

2 个答案:

答案 0 :(得分:0)

我做了一个非常脏的黑客来解决问题:我刚刚在配置脚本中删除了这个检查。然后,icu编译。现在希望,它也能正常工作......

答案 1 :(得分:0)

在platform.h中,您必须将wchar_t的大小定义为实际平台的大小。如果你不这样做就行不通。

定义U_SIZEOF_WCHAR_T 4 // macosx

曼弗雷德

相关问题