我试图使用 libxml2 与和 Roidndk 。 当我运行文件时, 我发现错误, 说 Unicode/ ucnv.h 文件不存在。 我见过 Unicode/ ucnv.h 包含在其中一个文件中, 没有这样的页眉文件 。 因此我下载了 < a href=> http://site.icu- project.org/ " rel=" nofolp" 文件, http://site.icu- project.org/ < /a> 并把它们放入文件夹中。
上一个错误已删除, 但我有这些错误 。
分享图书馆:libxml2.so
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `openIcuConverter :
C: esthello-jni/jni/encoding.c:109: undefined reference to `ucnv_open_49
C: esthello-jni/jni/encoding.c:115: undefined reference to `ucnv_setToUCallBack_49
C: esthello-jni/jni/encoding.c:119: undefined reference to `ucnv_setFromUCallBack_49
C: esthello-jni/jni/encoding.c:126: undefined reference to `ucnv_open_49
C: esthello-jni/jni/encoding.c:132: undefined reference to `ucnv_close_49
C: esthello-jni/jni/encoding.c:135: undefined reference to `UCNV_TO_U_CALLBACK_STOP_49
C: esthello-jni/jni/encoding.c:135: undefined reference to `UCNV_FROM_U_CALLBACK_STOP_49
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `closeIcuConverter :
C: esthello-jni/jni/encoding.c:141: undefined reference to `ucnv_close_49
C: esthello-jni/jni/encoding.c:142: undefined reference to `ucnv_close_49
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `xmlUconvWrapper :
C: esthello-jni/jni/encoding.c:1865: undefined reference to `ucnv_convertEx_49
C: esthello-jni/jni/encoding.c:1870: undefined reference to `ucnv_convertEx_49
collect2: ld returned 1 exit status make: * [obj/local/armeabi/libxml2.so] Error 1
I didn t find function ucnv_open_49 in any of the files. Am I the only one who is facing this problem?