[Lazarus] Raspberry Pi / Shared Libraries

Fabio Luis Girardi fluisgirardi at gmail.com
Wed Jun 8 20:22:44 CEST 2016


See: http://bugs.freepascal.org/view.php?id=26454

2016-06-08 13:08 GMT-03:00 Martin Waller <Martin at the-wallers.net>:

> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
>


-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160608/a00e28da/attachment-0002.html>


More information about the Lazarus mailing list