Cross compiling for android

Anton Lundin glance at acc.umu.se
Thu Jan 15 11:34:01 PST 2015


On 15 January, 2015 - Thiago Macieira wrote:

> On Friday 16 January 2015 07:52:07 Kurt McAlpine wrote:
> > Hi Anton,
> > 
> > I'm attempting to compile subsurface for Android but I have encountered an
> > error when I run build.sh
> > 
> > This is my error:
> > 
> > /home/kurt/workspace/subsurface/src/ndk-arm/bin/../lib/gcc/arm-linux-android
> > eabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llzma
> > collect2: error: ld returned 1 exit status
> > Makefile:1066: recipe for target 'testSchemas' failed
> > make[2]: *** [testSchemas] Error 1
> > make[2]: *** Waiting for unfinished jobs....
> > /home/kurt/workspace/subsurface/src/ndk-arm/bin/../lib/gcc/arm-linux-android
> > eabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llzma
> > collect2: error: ld returned 1 exit status
> > /home/kurt/workspace/subsurface/src/ndk-arm/bin/../lib/gcc/arm-linux-android
> > eabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llzma
> > collect2: error: ld returned 1 exit status
> > Makefile:1102: recipe for target 'xmlcatalog' failed
> > make[2]: *** [xmlcatalog] Error 1
> > Makefile:1106: recipe for target 'xmllint' failed
> > make[2]: *** [xmllint] Error 1
> > make[2]: Leaving directory
> > '/home/kurt/workspace/subsurface/src/libxml2-build-arm' Makefile:1429:
> > recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > '/home/kurt/workspace/subsurface/src/libxml2-build-arm' Makefile:847:
> > recipe for target 'all' failed
> > make: *** [all] Error 2
> > 
> > Am I missing something obvious?
> 
> You need to build liblzma prior to libxml2.

I don't build any liblzma and i don't need to.

Your problem is that the configure script for libxml2 picks up your lzma
from your host os. I don't know any good way to get it to not do that,
so my tip is to remove your liblzma-dev-package from your host.


Do any one else know a better way to stop configure scripts and such
from picking up headers, pkgconfig and such?


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list