Lazarus
Programming => Databases => Topic started by: mangakissa 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?
-
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.
-
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.
-
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
-
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.
-
Thank You.
Sorry I was at work. Later is dnf. This is clean install from repos and it does not work :'(
-
OK. Just install libfbclient devel package.
For now it has some compatibility problems with TIBConnection, so I think I have to downgrade.
Thank You.