Dear all, thanks in advance for any help,
Installed I have FPC 3.3.1, and I've seen lots of threads talking about prblems to load libraries on Raspberry PI 3B
I generated my own libray, that works ok on Win 32 and Linux 32, but when the same application compiled directly on the Raspberry Pi, like the Library, at the Loadlibrary the application simply CLOSE.
I'm already tested with
'./' + Library_Mae
ExtratFilePath(ParamStr(0) + Library_Name
with LoadLbrary,
with safeLoadLibrary
including Initc on the uses clausule
PErmissions on the library was checked too. Then, I'm simply lost.
Obtaining always the same result, application CLOSE without any chance to read Lasterror or other clue to find a solution
here is the problematic part of my code:
if (BV_DLLHandle = 0) AND (Not BV_Dll_Loaded) then
Begin
{$IFDEF Linux}
DLL_BV := './'+DLL_BV;
{$enid}
if FileExists(DLL_BV) then
begin
try
// BV_DLLHandle := safeloadLibrary (DLL_BV)
BV_DLLHandle := loadLibrary (DLL_BV) // Here the program literally CLOSE
except
on E : exception do
begin
// LogError;
end;
end;
end
Other clue was problems to indicate TC_SYSTEM_ISLIBRARY, but theoretically, the problem was solved on 2.7.0
Both parts, Application and library are mine, then any help will be appreciated