交叉编译icu的问题 [英] Problem with cross compiling icu

查看:298
本文介绍了交叉编译icu的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 检查wchar.h可用性...没有
检查wchar.h存在...是
configure:警告:wchar.h:存在但无法编译
configure:警告:wchar .h:检查缺少必备标题?
configure:警告:wchar.h:请参阅Autoconf文档
configure:警告:wchar.h:section存在但无法编译
configure:警告:wchar.h:继续预处理器的结果
configure:警告:wchar.h:将来,编译器优先使用
检查wchar.h ... yes
检查包含wcscpy ...的库需要
检查wchar_t的大小... 0
configure:错误:有wchar.h但是wchar_t的大小是0

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



提前致谢


<在platform.h中,div class =h2_lin>解决方案

必须将wchar_t的大小定义为实际平台的大小。如果你不这样做就行不通。



定义U_SIZEOF_WCHAR_T 4 // macosx



Manfred


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

解决方案

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

这篇关于交叉编译icu的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆