2010-03-07 239 views
2

我想交叉编译iPhone的icu库。我下载了http://sites.google.com/site/michaelsafyan/coding/articles/iphone 配置脚本包装当我执行它,我收到以下错误信息:交叉编译icu的问题

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 

有没有人有一个线索,我该如何解决这一问题?

在此先感谢

+0

此问题是存在的。 – tofutim 2012-02-10 00:49:11

回答

0

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

+0

Hrmmm。 config.log是什么意思?也许你应该向ICU提交一个错误。 – 2010-06-22 17:41:11

+0

配置:7373:结果:0 配置:7387:错误:有wchar.h但wchar_t的大小为0 – tofutim 2012-02-10 00:53:01

+0

如果您想使它成为一种不需要的破解,您可以提交它。 – 2012-09-21 20:17:28

0

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

限定编译在Ubuntu为Android ICU库时U_SIZEOF_WCHAR_T 4 // MacOSX的

曼弗雷德

+0

我也使用4的长度 – user750716 2011-05-17 08:54:08