交叉编译libxml2 for android有构建错误

时间:2013-04-06 13:43:13

标签: android-ndk libxml2 icu

我正在尝试交叉编译libxml2 for android,因为libxml需要icu4c头文件,从链接https://github.com/android/platform_external_icu4c下载并包含unicode头文件并尝试使用ndk-build编译。  但得到了以下错误。

      obj/local/armeabi/objs/xsml2/encoding.o: In function `xmlUconvWrapper':
      jni/encoding.c:1870: undefined reference to `ucnv_convertEx'
      jni/encoding.c:1865: undefined reference to `ucnv_convertEx'
      obj/local/armeabi/objs/xsml2/encoding.o: In function `closeIcuConverter':
      jni/encoding.c:141: undefined reference to `ucnv_close'
      jni/encoding.c:142: undefined reference to `ucnv_close'
      obj/local/armeabi/objs/xsml2/encoding.o: In function `openIcuConverter':
      jni/encoding.c:109: undefined reference to `ucnv_open'
      jni/encoding.c:119: undefined reference to `ucnv_setFromUCallBack'
      jni/encoding.c:126: undefined reference to `ucnv_open'
      jni/encoding.c:132: undefined reference to `ucnv_close'
      jni/encoding.c:115: undefined reference to `ucnv_setToUCallBack'
      jni/encoding.c:115: undefined reference to `UCNV_FROM_U_CALLBACK_STOP'
      jni/encoding.c:115: undefined reference to `UCNV_TO_U_CALLBACK_STOP'

对于这个错误,我在Android make文件中包含了-L / Android / android-ndk-r8 / external / libs -licui18n -licuuc,但是我得到了上述错误。 有些人可以建议哪个版本的icu4c库具有所有这些功能。

我的最终目标是为android编译libxml2。

请某人通过一些亮点继续前进。

0 个答案:

没有答案