Recent

Author Topic: Cannot load SQLite client library "sqlite3.dll"  (Read 766 times)

Kalevi

  • New Member
  • *
  • Posts: 16
Cannot load SQLite client library "sqlite3.dll"
« on: October 28, 2019, 10:38:46 am »
When I try connected TSQLite3Connection   appears message "Cannot load SQLite client library "sqlite3.dll" , Check your installation"
I need that connect when I use LazReport  the elements.

RayoGlauco

  • Full Member
  • ***
  • Posts: 102
  • Beers: 1567
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #1 on: October 28, 2019, 11:44:55 am »
Maybe you need to include these lines somewhere in your code:

Code: Pascal  [Select][+][-]
  1. uses sqlite3dyn;
  2. // ...
  3. sqlite3dyn.SQLiteDefaultLibrary := path_to_sqlite3dll;

Where path_to_sqlite3dll is the path where sqlite3.dll is.
« Last Edit: October 28, 2019, 11:57:15 am by RayoGlauco »
To err is human, but to really mess things up, you need a computer.

avra

  • Hero Member
  • *****
  • Posts: 1910
    • Additional info
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #2 on: October 28, 2019, 12:21:10 pm »
Put sqlite3.dll in some global dir already in %PATH%, or put it in the directory of your Lazarus.exe.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Kalevi

  • New Member
  • *
  • Posts: 16
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #3 on: October 28, 2019, 01:06:13 pm »
I have the sqlite3.dll in every directors.  I use Lazarus IDE v2.0.4 .  Is there a way how I can use the LazReport elements? 

rvk

  • Hero Member
  • *****
  • Posts: 4159
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #4 on: October 28, 2019, 01:45:15 pm »
I have the sqlite3.dll in every directors.  I use Lazarus IDE v2.0.4 .  Is there a way how I can use the LazReport elements?
Are you using the 64 bit Lazarus or the 32 bit one?
You need to match the bitness of the sqlite3.dll with Lazarus.

Kalevi

  • New Member
  • *
  • Posts: 16
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #5 on: October 28, 2019, 02:20:18 pm »
I using the 64 bit Lazarus, isnt these sqlite3.dll different ?

rvk

  • Hero Member
  • *****
  • Posts: 4159
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #6 on: October 28, 2019, 02:50:54 pm »
I using the 64 bit Lazarus, isnt these sqlite3.dll different ?
Then you need the 64 bit version of sqlite3.dll.
I don't know where you got it and if it clearly stated it was the 64 bit version?

Kalevi

  • New Member
  • *
  • Posts: 16
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #7 on: October 28, 2019, 02:56:04 pm »
Ok, Thanks
Im change to 32 bit version.

rvk

  • Hero Member
  • *****
  • Posts: 4159
Re: Cannot load SQLite client library "sqlite3.dll"
« Reply #8 on: October 28, 2019, 02:57:41 pm »
Ok, Thanks
Im change to 32 bit version.
It's easier to take the sqlite3.dll 64 bit version than to reinstall Lazarus 32 bit entirely.

Just make sure you take the "64-bit DLL (x64) for SQLite version 3.30.1" version from this page:
https://www.sqlite.org/download.html

 

TinyPortal © 2005-2018