Recent

Author Topic: lazarus 2.x and Firebird 3 emb  (Read 801 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 944
lazarus 2.x and Firebird 3 emb
« on: May 24, 2019, 02:05:41 pm »
I try to set up a firebird 3 embedded connection in lazarus. Firebird has a different design than 2.5. The engine12.dll has become the new fbembed.dll. What have I done:
- firebird 3 downloaded 64 bits
- Lazarus 64 bits installed and started up.
- engine12.dll renamed to fbclient.dll (SQLdb does not know the new engine name)
- Placed an IBConnection and SQLTransaction on the Form.
- a database connected.
- e.v.t. username / ww entered (if that is not necessary for embedded).

If I then set the property connected of IBconnection to true, it comes with the message that fbclient / gds32 / fbembedded.dll is not found.

It does work with Firebird 2.5.

Can Firebird 3 emb work with Lazarus 2.x / FPC 3.04. And if so, what should you do for it?
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

devEric69

  • Full Member
  • ***
  • Posts: 146
Re: lazarus 2.x and emb
« Reply #1 on: May 24, 2019, 02:35:21 pm »
Nothing should be renamed, imo:
- the fbclient.so library is the network client for Firebird server on Linux.
- the old libfbembed.so is now implemented as a plug-in library: engine12.so (that's how it is).

I don't think renaming the Firebird 3's libraries will help you.
use: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

mangakissa

  • Hero Member
  • *****
  • Posts: 944
Re: lazarus 2.x and Firebird 3 emb
« Reply #2 on: May 24, 2019, 03:25:01 pm »
You're absolutely right. I had to copy the plugin directory to the directory of my exe. And then the original fbclient.dll is used. 
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

minkob

  • New Member
  • *
  • Posts: 13
Re: lazarus 2.x and Firebird 3 emb
« Reply #3 on: July 07, 2019, 11:50:44 am »
Hi.
I copied plugin directory as a directory then as a single files into my bindir but still have that message.
Where I'm making a mistake?
Fedora30
ASUS K53S i5
Fedora fc30.x86_64
Lazarus 2.0.2
FPC 3.0.4

lucamar

  • Hero Member
  • *****
  • Posts: 2081
Re: lazarus 2.x and Firebird 3 emb
« Reply #4 on: July 07, 2019, 12:53:11 pm »
Hi.
I copied plugin directory as a directory then as a single files into my bindir but still have that message.
Where I'm making a mistake?
Fedora30

Your mistake is following in Linux directions intended for Windows :)

For Linux, installing the Firebird libs as you would any other (for Fedora that would be with yum, wouldn't it? or the normal package manager) should be enough.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

minkob

  • New Member
  • *
  • Posts: 13
Re: lazarus 2.x and Firebird 3 emb
« Reply #5 on: July 07, 2019, 10:45:19 pm »
Thank You.
Sorry I was at work. Later is dnf. This is clean install from repos and it does  not work  :'(
ASUS K53S i5
Fedora fc30.x86_64
Lazarus 2.0.2
FPC 3.0.4

minkob

  • New Member
  • *
  • Posts: 13
Re: lazarus 2.x and Firebird 3 emb
« Reply #6 on: July 08, 2019, 12:33:57 am »
OK. Just install libfbclient devel package.
For now it has some compatibility problems with TIBConnection, so I think I have to downgrade.
Thank You.
ASUS K53S i5
Fedora fc30.x86_64
Lazarus 2.0.2
FPC 3.0.4