[Lazarus] Raspberry Pi / Shared Libraries
Martin Waller
Martin at The-Wallers.net
Wed Jun 8 18:08:54 CEST 2016
Hi,
I've been trying to build and load dynamically a simple shared library using
Lazarus and the FPC. At the moment I have a simple one function shared
library that compiles and builds cleanly and I have a couple of lines to try
and load the library.
It consistently returns a handle of zero. The associated error from
GetLoadErrorStr is "No such file or directory". Using objdump I can see that
the library needs ld-linus-armhf.so.3 and that is in the /lib folder.
If I replace the library name with a shared library in the same folder
generated using the C compiler then it loads fine.
The only different that I can see in that the Lazarus generated shared
library has the soft-float ABI flag set and the C library has the hard-float
ABI flag set!
Does anyone have any clues as to why this can fail.
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160608/cae12710/attachment-0002.html>
More information about the Lazarus
mailing list