Recent

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

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
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 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

devEric69

  • Hero Member
  • *****
  • Posts: 648
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: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
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 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

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.10
FPC 3.1.0

lucamar

  • Hero Member
  • *****
  • Posts: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and 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.10
FPC 3.1.0

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.10
FPC 3.1.0

 

TinyPortal © 2005-2018