Re: [xml] Fwd: Cross compile error :: libxml2 for android



Hi,
I am using the libxml from the link https://github.com/android/platform_external_libxml2 

and I downloaded the  icu4c from the link https://github.com/android/platform_external_icu4c and linked .

After I linked I got the new errors 

      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'
For this errors I linked the I included the -L/Android/android-ndk-r8/external/libs -licui18n -licuuc in Android make . But still getting the same errors .
--Ranga



On Sun, Apr 7, 2013 at 9:17 PM, Daniel Veillard <veillard redhat com> wrote:
[ please subscribe to the list, i had to pull you message from the
  waiting queue ! ]

On Fri, Apr 05, 2013 at 02:15:39PM -0400, Ranga ks wrote:
> Hi,
>
> I am trying to cross compile libxml2 for android and I have written the
> Android.mk file for the libxml source . I am using libxml2 to
> Validation,XMl Content Creation , parsing etc .
>
> When I run the ndk-build script , I get the error :
>
>  libxml/encoding.h:31:26: error: unicode/ucnv.h: No such file or directory
>
> so I disabled the macro LIBXML_ICU_ENABLED in Xmlversion.h , then I
> compiled but again I got the below new errors .

  yeah I doubt ICU is available in android.

> master/jni/encoding.c: In function 'xmlByteConsumed':
> master/jni/encoding.c:2486: error: invalid storage class for function
> 'UTF8ToISO8859x' master/jni/encoding.c:2600: error: invalid storage class
> for function 'ISO8859xToUTF8' master/jni/encoding.c:3388: error: invalid
> storage class for function 'ISO8859_2ToUTF8' master/jni/encoding.c:3392:
> error: invalid storage class for function 'UTF8ToISO8859_2'
> master/jni/encoding.c:3397: error: invalid storage class for function
> 'ISO8859_3ToUTF8'

  never seen that, what version of libxml2 are you trying to compile ?

> I have attached my Android make file . Can some body through light on how
> to  to proceed further .
>  android.mk<https://docs.google.com/file/d/0B8SgT4t6K_L-UDR3aTh6bWMzXzA/edit?usp=drive_web>
>

Daniel

--
Daniel Veillard      | Open Source and Standards, Red Hat
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]