Recent

Author Topic: Lazarus + zeos + firebird on Mac  (Read 3609 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2092
    • Lazarus and Free Pascal italian community
Lazarus + zeos + firebird on Mac
« on: June 09, 2016, 08:33:48 am »
Hello guys, i have a problem with Zeus and Lazarus on Mac in an attempt to connect to a firebird db. When you launch the program this screen. What does it mean?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

markus_ja

  • New Member
  • *
  • Posts: 43
Re: Lazarus + zeos + firebird on Mac
« Reply #1 on: June 09, 2016, 10:16:35 am »
As the error describes: Your database is not available. It doesn't exist or the path is wrong.

The second "format" issue occures, since the firebird.msg file to format the massage couldn't be found. This happens, when the loaded fbclient.dll/gds32.dll is not in the same directory where firebird was installed.

xinyiman

  • Hero Member
  • *****
  • Posts: 2092
    • Lazarus and Free Pascal italian community
Re: Lazarus + zeos + firebird on Mac
« Reply #2 on: June 09, 2016, 01:34:11 pm »
Thanks, but I have installed firebird on my mac. Now where I'm going to take the dll to put into the folder with my project?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

markus_ja

  • New Member
  • *
  • Posts: 43
Re: Lazarus + zeos + firebird on Mac
« Reply #3 on: June 09, 2016, 01:52:17 pm »
Set the whole path of your fbclient.dll where it is installed in the TZConnection.LibraryLocation.

E.g. On my windows machine it is:
LibraryLocation := "C:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll"

where the messge file is located in:
C:\Program Files\Firebird\Firebird_2_5\firebird.msg

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Lazarus + zeos + firebird on Mac
« Reply #4 on: June 09, 2016, 02:23:38 pm »
@xinyiman
First of all there is no dll under osx, secondly the firebird library is located here: /Library/Frameworks/Firebird.framework/Versions/A/Firebird. You should copy the file to the user directory(/usr/local/lib/libfbclient.dylib). This worked a few years ago(Mountain Lion), now things probably changed, but you should give it a try anyway.

xinyiman

  • Hero Member
  • *****
  • Posts: 2092
    • Lazarus and Free Pascal italian community
Re: Lazarus + zeos + firebird on Mac
« Reply #5 on: June 09, 2016, 03:01:54 pm »
Thank you GetMem, now connection is ok, but when execute a simple query return this error
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Lazarus + zeos + firebird on Mac
« Reply #6 on: June 09, 2016, 03:56:45 pm »
Personally I newer saw this error before, google is not helping either. I think it's a zeos issue, so try to connect to the database with TIBConnection first. Just a test connection with a simple query.

xinyiman

  • Hero Member
  • *****
  • Posts: 2092
    • Lazarus and Free Pascal italian community
Re: Lazarus + zeos + firebird on Mac
« Reply #7 on: June 09, 2016, 04:24:46 pm »
I think it is a problem of Zeus. Because if I execute the query works, but if I connect to the query a DBGrid creates the problem. Ideas?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Lazarus + zeos + firebird on Mac
« Reply #8 on: June 09, 2016, 04:28:50 pm »
You should ask on the zeos forum, they know the code better.

 

TinyPortal © 2005-2018