Recent

Author Topic: mysqlclient.dylib.20 on mac where must be the library  (Read 792 times)

eldonfsr

  • Full Member
  • ***
  • Posts: 210
mysqlclient.dylib.20 on mac where must be the library
« on: September 04, 2021, 05:23:37 pm »
Hi I start to test lazarus and mysql on mac, I think lib must be same as windows where is locate the app, when i click on connect send erro can't load mysql library  mysqlclient.dyn.20 or mysqlclient.dyn , only found  on folder where is mysql mysqlclient.dyn.21 , I settting up  mysql component using mysql5.7.

Thanks any help great.
 

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1679
  • Former Delphi 1-7, 10.2 user
Re: mysqlclient.dylib.20 on mac where must be the library
« Reply #1 on: September 05, 2021, 01:07:08 am »
Have a look at my Wiki article macOS Dynamic Libraries which explains the location of dynamic libraries for macOS applications.

As for the problem you're having with the wrong library versions, this can be avoided by including the correct versions in the application bundle as explained in the artcile I've linked above.
« Last Edit: September 05, 2021, 01:10:27 am by trev »
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

 

TinyPortal © 2005-2018