After some time, I have FPC v3.2.2 and Lazarus 1.8.4 running on a Variscite arm. I can compile and run terminal apps quite happily.
I'm having trouble loading libraries. The attached code works fine on a Linux desktop PC (FPC 3.2.0 & Laz 2.0.12). However, the LoadLibrary function always returns 0 on the same code compiled on the arm.
Using nm -D on the .so lists the exported function on the arm compiled code.
I've used the LoadLibrary function for years on Delphi 6 and XE3 so don't believe there's anything fundamentally wrong with the code. I suspect it's a magic rune in Linux that needs setting.
Any suggestions?