Recent

Author Topic: How to use Firebird with Lazarus?  (Read 4428 times)

HowardH

  • New Member
  • *
  • Posts: 16
    • http://www.celtic-fiddler.com
How to use Firebird with Lazarus?
« on: October 11, 2007, 03:15:38 am »
I'm having enormous difficulty finding out how to connect to a Firebird database. I have set up a database using IBEasy+, and I can access it with ISql, and FlameRobin, so I know the database itself is working.

But I need to know which set of components I should use, and how to set up the connection string. I have installed JvUIB and I have the SQLdb components that came with Lazarus, but I can't make either of them work.

I have Firebird set up on the same machine (localhost), and I'm using the Super Server.

Thanks in advance for any pointers.
Howard Lee Harkness
The Celtic Fiddler http://www.celtic-fiddler.com
Violins and Accessories

tatamata

  • Hero Member
  • *****
  • Posts: 787
    • ZMSQL - SQL enhanced in-memory database
How to use Firebird with Lazarus?
« Reply #1 on: October 11, 2007, 01:50:10 pm »
Hello.
I don't know for other components, but Zeoslib works just fine with Firebird.
You can download Zeoslib trunk version from http://zeosdownloads.firmos.at/downloads/snapshots/
It works very fine and is stable.
Unpack the download into lazarus/components folder, find folder with Lazarus packages, find zcomponent.lpk and try to compile it.
During compilation you will probably get some errors because of IFDEF directives concerning fpc versions. In that case you can modify (or remove) those IFDEF directives. Also, you will probably need to compile every package independantly. First compile zcore.lpk, zdbc.lpk, zparsesql.lpk, zplain.lpk, and only after that compile zcomponent.lpk with "recompile clean" . If the zcomponent.lpk is compiled without error, you can click "Install" for zcomponent.lpk.
Regards,

Zlatko

 

TinyPortal © 2005-2018