Recent

Author Topic: Android on linux  (Read 2941 times)

thierrydijoux

  • New Member
  • *
  • Posts: 21
Android on linux
« 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 ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8244
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Android on linux
« Reply #1 on: November 15, 2014, 05:33:05 pm »
Find which package contains libGL.so.X.Y.Z

osvaldotcf

  • New Member
  • *
  • Posts: 15
Re: Android on linux
« Reply #2 on: January 25, 2015, 10:16:37 pm »

osvaldotcf

  • New Member
  • *
  • Posts: 15
Re: Android on linux
« Reply #3 on: February 01, 2015, 07:45:11 pm »
Ok, now!

renabor

  • Jr. Member
  • **
  • Posts: 67
Re: Android on linux
« Reply #4 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

FPC 3.0.5 | Lazarus 1.8 | Ubuntu Gnome 17.10 64bit

 

TinyPortal © 2005-2018