Lazarus

Programming => Operating Systems => Android => Topic started by: thierrydijoux on November 15, 2014, 03:27:56 pm

Title: Android on linux
Post by: thierrydijoux on November 15, 2014, 03:27:56 pm
Hi all,

i'm trying to install the androidmodulewizard on linux (debian jessie 64bits).
All is ready 'sdk, ndk, path and compiler).
i compiled the dummylibs and ran ldconfig /path/to/so
when i try to install the package i've got this error :

/usr/bin/ld: warning: /home/thierry/.lazarus/bin/link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lGL
lazarus.pp(141,1) Error: Error while linking
lazarus.pp(141,1) Fatal: There were 1 errors compiling module, stopping

Any ideas ?
Title: Re: Android on linux
Post by: Leledumbo on November 15, 2014, 05:33:05 pm
Find which package contains libGL.so.X.Y.Z
Title: Re: Android on linux
Post by: osvaldotcf on January 25, 2015, 10:16:37 pm
Could you test this?
https://github.com/jmpessoa/lazandroidmodulewizard/issues/1
Title: Re: Android on linux
Post by: osvaldotcf on February 01, 2015, 07:45:11 pm
Ok, now!
Title: Re: Android on linux
Post by: renabor on February 08, 2015, 04:53:53 pm
You must use the old linker, because the new version, aka gold linker, are incompatible with free pascal (http://forum.lazarus.freepascal.org/index.php?topic=22088.15;wap2)

for a definitive solution use arm-linux-androideabi-ld.bfd instead of arm-linux-androideabi-ld:

sudo ln -s ~/Android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld.bfd /usr/bin/arm-linux-androideabi-ld
ln -s /usr/bin/arm-linux-androideabi-ld /usr/bin/arm-linux-ld

TinyPortal © 2005-2018