Recent

Author Topic: [SOLVED]Can't find SQLite3.dll  (Read 6478 times)

StoneAge

  • New Member
  • *
  • Posts: 13
[SOLVED]Can't find SQLite3.dll
« on: March 13, 2018, 01:11:34 pm »
Win 10. Lazarus 1.8.2 - I've put copies of SQLite3.dll in every damn directory I can think of that's possibly related, including Lazarus. Put it in both path files. As soon as I try and connect I get the error message "can't find SQLite3.dll, check your installation" or something very similar. Somewhere in the 1k pages of stuff I've looked at over the past several days I saw something about a 64/32 bit problem but I've been unable to find that since.  I was away from programming for 15 or more years. This is only the 2nd program I've worked on now, so please treat me like a newborn in your answers :-)

Thanks,
Steve
« Last Edit: March 13, 2018, 10:51:08 pm by StoneAge »

rvk

  • Hero Member
  • *****
  • Posts: 6056
Re: Can't find SQLite3.dll
« Reply #1 on: March 13, 2018, 01:20:27 pm »
Win 10. Lazarus 1.8.2 - I've put copies of SQLite3.dll in every damn directory I can think of that's possibly related, including Lazarus.
Don't do that  ;D

Put SQLite3.dll in your project directory. It needs to be the same bitness (32 or 64 bit) as your intended application.

additionally you can put a SQLite3.dll in your lazarus.exe directory. It also needs to be the same bitness as your lazarus.exe.

StoneAge

  • New Member
  • *
  • Posts: 13
Re: Can't find SQLite3.dll
« Reply #2 on: March 13, 2018, 08:03:28 pm »
I THOUGHT they were both the 64 bit versions. Can I determine that without downloading and installing new copies of both?

rvk

  • Hero Member
  • *****
  • Posts: 6056
Re: Can't find SQLite3.dll
« Reply #3 on: March 13, 2018, 08:15:26 pm »
You can open them in notepad and look for the PE characters (use wordwrap).

32 bit will have PE  L
64 bit will have PE  d†

But of course you can also download the 64 bit again so you are sure you've got the right one.

StoneAge

  • New Member
  • *
  • Posts: 13
Re: Can't find SQLite3.dll
« Reply #4 on: March 13, 2018, 10:46:21 pm »
SOLVED Thanks rvk! You were 100% correct. Somehow, (don't ask, I have no idea) I had downloaded the 32 bit version of Lazarus. That is not what I had intended and I never noticed. All good now, and what a relief.
Thanks again!

 

TinyPortal © 2005-2018