Problem with cross compiling icu

喜欢而已 提交于 2019-12-05 04:00:42

问题


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


回答1:


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...




回答2:


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



来源:https://stackoverflow.com/questions/2395569/problem-with-cross-compiling-icu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!