Recent

Author Topic: ZeosDB and sqlite3  (Read 1023 times)

Prime

  • Jr. Member
  • **
  • Posts: 75
ZeosDB and sqlite3
« on: April 11, 2026, 10:02:49 pm »
Hi all,

I'm updating a program that uses ZeosDB and SQLite3.
I'm running Lazarus 4.4 on Windows 11 X64, and insalled Zeos from the online package manager, I rebuilt the IDE without problems and removed a couple of peroperties that where no longer in the Zeos visual components.

However when I start up my program I get : Requested database driver was not found.
I have the sqllite3.dll in the same folder as my executable.

Is that where it needs to be? If so how do I make Zeos use it?

Cheers.

Phill.

Xenno

  • Jr. Member
  • **
  • Posts: 88
    • BS Programs
Re: ZeosDB and sqlite3
« Reply #1 on: April 11, 2026, 10:07:39 pm »
Check the dll if it is 32/64-bit version same with the app.
Lazarus 4.0, Windows 10, https://www.youtube.com/@bsprograms

Prime

  • Jr. Member
  • **
  • Posts: 75
Re: ZeosDB and sqlite3
« Reply #2 on: April 11, 2026, 10:34:48 pm »
Check the dll if it is 32/64-bit version same with the app.

My application is deffo 64bit, I've just recompiled it, has todays date on the exe.
Just downloaded latest X64 sqlite3.dll and replaced the existing one, same problem.

Cheers.

Phill.

paweld

  • Hero Member
  • *****
  • Posts: 1611
Re: ZeosDB and sqlite3
« Reply #3 on: April 12, 2026, 07:03:11 am »
Is the value of the LibraryLocation property correct? For this to work, it must be empty (in which case it will search for libraries in the directory containing the executable file, then in the system folder) or simply point to the correct location of the SQLite library.
Best regards / Pozdrawiam
paweld

Thaddy

  • Hero Member
  • *****
  • Posts: 19129
  • Glad to be alive.
Re: ZeosDB and sqlite3
« Reply #4 on: April 12, 2026, 08:49:46 am »
I have the sqllite3.dll in the same folder as my executable.
sqllite3.dll ?? I guess that is a typo that is NOT in your code?
It is sqlite3.dll (single  L).
« Last Edit: April 12, 2026, 08:53:31 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

Prime

  • Jr. Member
  • **
  • Posts: 75
Re: ZeosDB and sqlite3
« Reply #5 on: April 12, 2026, 05:57:37 pm »
Is the value of the LibraryLocation property correct? For this to work, it must be empty (in which case it will search for libraries in the directory containing the executable file, then in the system folder) or simply point to the correct location of the SQLite library.

LibraryLocation is empty (I verified by printing it out to my debug log, immediately before the connect statement for ZConnection), so should be searching in the exe location?

Cheers.

Phill.

Prime

  • Jr. Member
  • **
  • Posts: 75
Re: ZeosDB and sqlite3
« Reply #6 on: April 12, 2026, 05:58:29 pm »
I have the sqllite3.dll in the same folder as my executable.
sqllite3.dll ?? I guess that is a typo that is NOT in your code?
It is sqlite3.dll (single  L).

Yes just a typo :)

Cheers.

Phill.

dseligo

  • Hero Member
  • *****
  • Posts: 1683
Re: ZeosDB and sqlite3
« Reply #7 on: April 12, 2026, 09:06:22 pm »
Make a simple test project which uses Zeos and Sqlite.
If test project doesn't work post that project here, and someone will help you.
If test project works, problem is in your code and more debugging will be required.

 

TinyPortal © 2005-2018