2

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

これを修正する方法を知っている人はいますか?

前もって感謝します

4

2 に答える 2

0

platform.hで、wchar_tのサイズを実際のプラットフォームのサイズに定義する必要があります。これを行わないと、機能しません。

定義U_SIZEOF_WCHAR_T4// macosx

マンフレッド

于 2011-05-17T08:52:43.450 に答える
0

この問題を解決するために、非常に汚いハックを作成しました。configure スクリプトでこのチェックを削除しただけです。次に、icu をコンパイルします。それも正しく動作することを願っています...

于 2010-03-07T10:43:58.577 に答える