Lazarus
Programming => Operating Systems => Android => Topic started 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 ?
-
Find which package contains libGL.so.X.Y.Z
-
Could you test this?
https://github.com/jmpessoa/lazandroidmodulewizard/issues/1
-
Ok, now!
-
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