Lazarus

Programming => Databases => Topic started by: StoneAge on March 13, 2018, 01:11:34 pm

Title: [SOLVED]Can't find SQLite3.dll
Post by: StoneAge 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
Title: Re: Can't find SQLite3.dll
Post by: rvk 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.
Title: Re: Can't find SQLite3.dll
Post by: StoneAge 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?
Title: Re: Can't find SQLite3.dll
Post by: rvk 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.
Title: Re: Can't find SQLite3.dll
Post by: StoneAge 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