Recent

Author Topic: sqlite.dll placement in windows  (Read 10810 times)

davesimplewear

  • Sr. Member
  • ****
  • Posts: 321
    • Davids Freeware
sqlite.dll placement in windows
« on: November 12, 2009, 02:15:23 am »
I have installed lazarus in windows xp and installed sqlite3 but lazarus won't start, the message is that the sqlite.dll can't be found, i have placed the dll in windows system folder but it still won't load, its been along time since I used windows and have forgotten where this goes, could someone help please.
All things considered insanity seems the best option

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: sqlite.dll placement in windows
« Reply #1 on: November 12, 2009, 04:42:04 pm »
First Place Sqlite beside lazarus.exe

davesimplewear

  • Sr. Member
  • ****
  • Posts: 321
    • Davids Freeware
Re: sqlite.dll placement in windows
« Reply #2 on: November 13, 2009, 12:44:48 am »
I put the sqlite3.dll in lazarus directory and got the same result, put it in sqlite folder in components sub-directory, same result.
All things considered insanity seems the best option

mrmikehicks

  • New Member
  • *
  • Posts: 39
Re: sqlite.dll placement in windows
« Reply #3 on: November 14, 2009, 06:31:54 am »
I think the dll for sqlite3 is sqlite3.dll not sqlite.dll. Just a thought.

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: sqlite.dll placement in windows
« Reply #4 on: November 20, 2009, 05:15:59 pm »
I think the dll for sqlite3 is sqlite3.dll not sqlite.dll. Just a thought.

You're correct. The right dll IS "sqlite3.dll" and everything should work fine if it's put to system32 dir when sqlite3 package is installed.

However, it seems strange if you really installed sqlite3 package, why would it ask for "sqlite.dll" - sqlite3 package complains that it cannot find "sqlite3.dll". Did you really install version 3, not 2? Or did you perhaps misread the error dialog?
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

lijinjie

  • New Member
  • *
  • Posts: 18
Re: sqlite.dll placement in windows
« Reply #5 on: March 24, 2021, 08:14:45 am »
I had the same problem .. I copied the sqlite3.dll to the lazaurs folder, but it still asks for sqlite.dll. I tried to change its name to sqlite.dll couldn't work either. 

af0815

  • Hero Member
  • *****
  • Posts: 1382
Re: sqlite.dll placement in windows
« Reply #6 on: March 24, 2021, 08:49:17 am »
First the bitness must be correct with lazarus. In 32bit Lazarus you can only use 32bit dll. 64Bit Lazarus need a 64 bit dll.
Second you have to place the second dll in the same folder like your executable is, this version must have the bitness of your app !!!

Rename works, if the version and bitness is ok. Attention, often it is not clear what bittness you have in the dll, because the naming have no schema.

BTW: For the App you are able to change the path of the dll (and so for linux as well) by code. It is possible for zeos and SQLdb, but implemented in a differnet way.
« Last Edit: March 24, 2021, 08:50:56 am by af0815 »
regards
Andreas

 

TinyPortal © 2005-2018