Recent

Author Topic: [SOLVED] Lazarus refuses to load libmysql.dll  (Read 6597 times)

balazsszekely

  • Guest
Re: Lazarus refuses to load libmysql.dll
« Reply #15 on: February 23, 2021, 09:27:26 pm »
All fixed - had to install all of the VC++ redistributables and the VC Runtime libraries.  After those were installed it started working! Thanks GetMem for your help - that drove me to look for the runtimes - downloaded dependency walker and found out why they weren't loading.

Rich
Ok. I'm glad it's working. :)

rwebb616

  • Full Member
  • ***
  • Posts: 133
Re: [SOLVED] Lazarus refuses to load libmysql.dll
« Reply #16 on: February 23, 2021, 09:28:09 pm »
Perhaps the libmysql.dll depends on one of the runtimes... the specific file that dependency walker was choking on was msvcr120.dll

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: [SOLVED] Lazarus refuses to load libmysql.dll
« Reply #17 on: February 23, 2021, 09:29:34 pm »
it looks if the dll have depencies, not fullfilled on a fresh system.
regards
Andreas

rwebb616

  • Full Member
  • ***
  • Posts: 133
Re: [SOLVED] Lazarus refuses to load libmysql.dll
« Reply #18 on: February 23, 2021, 09:31:35 pm »
it looks if the dll have depencies, not fullfilled on a fresh system.

Yes and I am sure the runtimes were installed on the other system because I also have Visual Studio Community installed so the runtimes probably got installed with that.  The msvcr120.dll appears to be part of the Visual C runtime for Visual Studio 2013.

dseligo

  • Hero Member
  • *****
  • Posts: 1219
Re: [SOLVED] Lazarus refuses to load libmysql.dll
« Reply #19 on: February 24, 2021, 12:18:54 pm »
You could try libmysql.dll from HeidiSQL installation, it probably doesn't have dependency.

rwebb616

  • Full Member
  • ***
  • Posts: 133
Re: [SOLVED] Lazarus refuses to load libmysql.dll
« Reply #20 on: March 04, 2021, 02:07:47 am »
I did try this but it's version 5.6 so I didn't get the error about the specified module but got expected version 5.7 and got version 5.6 so it looks like it maybe is statically linked with all the dependencies - and it did appear to work with the 5.6 connection object.

Rich

 

TinyPortal © 2005-2018