Recent

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

mangakissa

  • Hero Member
  • *****
  • Posts: 907
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

  • Jr. Member
  • **
  • Posts: 57
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.

mangakissa

  • Hero Member
  • *****
  • Posts: 907
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