Update for SQLite for Linux
Posted: 24.10.2010, 18:10
Hello,
I have the problem, when file "libsqlite3.so" is not installed in the folder /lib then the database would not work.
I have copy this SO into the same folder from the application, but it does not work.
I want make a application where can run with a simple USB Stick without installation. In Windows, it works fine. But in Linux the system seek only in the folder /lib.
Can I do alter the file ZPlainSqlLiteDriver.pas:
constructor TZSQLite3PlainDriver.Create;
begin
inherited Create;
{$IFNDEF UNIX}
FLoader.AddLocation(WINDOWS_DLL3_LOCATION);
{$ELSE}
if FileExists('./' + LINUX_DLL3_LOCATION) then
FLoader.AddLocation('./' + LINUX_DLL3_LOCATION)
else
FLoader.AddLocation(LINUX_DLL3_LOCATION);
{$ENDIF}
end;
What think you about this?
Is it possible include it into V7.0.1 ?
Thanks for answer, regards Markus
I have the problem, when file "libsqlite3.so" is not installed in the folder /lib then the database would not work.
I have copy this SO into the same folder from the application, but it does not work.
I want make a application where can run with a simple USB Stick without installation. In Windows, it works fine. But in Linux the system seek only in the folder /lib.
Can I do alter the file ZPlainSqlLiteDriver.pas:
constructor TZSQLite3PlainDriver.Create;
begin
inherited Create;
{$IFNDEF UNIX}
FLoader.AddLocation(WINDOWS_DLL3_LOCATION);
{$ELSE}
if FileExists('./' + LINUX_DLL3_LOCATION) then
FLoader.AddLocation('./' + LINUX_DLL3_LOCATION)
else
FLoader.AddLocation(LINUX_DLL3_LOCATION);
{$ENDIF}
end;
What think you about this?
Is it possible include it into V7.0.1 ?
Thanks for answer, regards Markus