Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Library error 12 years 1 week ago #1762

  • David
  • David's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Dear,
I try to compile for Android (from win32) and is ok if the target is a program, but if i try to create a library have the follow error

Options changed, recompiling clean with -B
C:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: warning: link.res contains output sections; did you forget -T?
C:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find /lib/ld-linux.so.3
test1.lpr(16,32) Error: Error while linking
test1.lpr(16,32) Fatal: There were 1 errors compiling module, stopping

the problem is that Android want a library and not a program into apk.

This appeare if i simple trasform "Program" in "Library" into the project source

Some solution?

note: very sorry for my bad english

Please Log in or Create an account to join the conversation.

Last edit: by David.

Re: Library error 12 years 1 week ago #1765

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Android crosbuild element is experimental, Sir
Android Libraries is out of support, for now.
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Library error 12 years 6 days ago #1771

  • David
  • David's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Ok thanks

Please Log in or Create an account to join the conversation.

Re: Library error 12 years 6 days ago #1772

  • David
  • David's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
A member of lazarus forum give me a solution.

If someone served the solution is as follows.......

You need to specify a path to libdl.so from Android NDK via Custom Options of project. Something like this:
-FL${LazarusDir}..\android-ndk-r7\platforms\android-3\arch-arm\usr\lib\libdl.so[code]

Please Log in or Create an account to join the conversation.

Re: Library error 12 years 6 days ago #1777

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
This is
the normal procedure Sir
I thought you wanted to build an android Library...
anyway here are the help steps
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1