Recent

Author Topic: Can Lazarus on OS-X use 64-bit MySQL?  (Read 3451 times)

AKCarlow

  • New Member
  • *
  • Posts: 45
Can Lazarus on OS-X use 64-bit MySQL?
« on: July 08, 2014, 12:02:26 am »
Using:
OS-X 10.6.8
Lazarus 1.2.4, FPC 2.6.4
MySQL 5.6.19 (64-bit)

I start a new project, drop an SQLDBLibraryLoader on the form, set the LibraryName property to /usr/local/mysql-5.6.19-osx10.6-x86_64/lib/libmysqlclient.dylib (in case Lazarus can't follow the symbolic link in the mysql) and try to change the loader's Enabled property to true. I get an error "Can't load MySQL library ...". I also get the error if I reference the libmysqlclient.18.dylib

Am I doing something wrong, or is it because of the 64-bit MySQL? And if it is a Lazarus/FPC issue, is it something that might be fixed in a future release?
 :(
Using: OS-X 10.6.8, Lazarus 1.2.4, FPC 2.6.4,  MySQL 5.6.19 (32-bit)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8286
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can Lazarus on OS-X use 64-bit MySQL?
« Reply #1 on: July 08, 2014, 01:41:54 am »
64-bit application can only link to 64-bit libraries and vice versa. So check first whether your Lazarus is 64-bit.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9014
  • FPC developer.
Re: Can Lazarus on OS-X use 64-bit MySQL?
« Reply #2 on: July 08, 2014, 09:23:28 am »
I'm no mysql expert, but I assume a 32-bit client DLL can use a 64-bit server?

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1251
Re: Can Lazarus on OS-X use 64-bit MySQL?
« Reply #3 on: July 08, 2014, 09:48:48 am »
Quote
I'm no mysql expert, but I assume a 32-bit client DLL can use a 64-bit server?
Sure, that's my experience.

But @Leledumbo is talking about client side.  Build a 64bit application with Lazarus, and you'll need the 64bit MySQL dll's/so's.  Build a 32bit app, you'll need the 32bit dll's/so's.
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

AKCarlow

  • New Member
  • *
  • Posts: 45
Re: Can Lazarus on OS-X use 64-bit MySQL?
« Reply #4 on: July 08, 2014, 12:40:58 pm »
Thanks for the replies. I installed 32-bit MySQL and Lazarus can load my database.
 :D
Using: OS-X 10.6.8, Lazarus 1.2.4, FPC 2.6.4,  MySQL 5.6.19 (32-bit)

 

TinyPortal © 2005-2018