Lazarus

Programming => Databases => Topic started by: mangakissa on May 24, 2019, 02:05:41 pm

Title: lazarus 2.x and Firebird 3 emb
Post 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?
Title: Re: lazarus 2.x and emb
Post by: devEric69 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.
Title: Re: lazarus 2.x and Firebird 3 emb
Post by: mangakissa 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. 
Title: Re: lazarus 2.x and Firebird 3 emb
Post by: minkob 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
Title: Re: lazarus 2.x and Firebird 3 emb
Post by: lucamar 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.
Title: Re: lazarus 2.x and Firebird 3 emb
Post by: minkob 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  :'(
Title: Re: lazarus 2.x and Firebird 3 emb
Post by: minkob 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.
TinyPortal © 2005-2018