Adding support for Firebird SQL to libqt4-sql

Asked by Diego Schulz

I'm developing a toy in C++ using Trolltech's Qt4 library, just a small GUI for altering rows of a few tables.

My toy is working properly using QSQLITE driver (Sqlite3), QMYSQL (MySQL 5) and QPSQL (PostgreSQL 8.x), absolutely no problems with those RDBMS, but..

This week I looked at Firebird2 and decided to give it a try. In a few minutes I discovered that the package libqt4-sql (the one that provides support for accessing databases from Qt4 apps) comes with just a few drivers enabled (coincidentally the ones that I mentioned above). Firebird is NOT enabled by default.

I've noticed that OpenSUSE provides independent packages for each RDBMS, for example "libqt4-sql-drivernamehere", while Ubuntu (probably Debian also) provides only one package that enables support for three RDBMSs. I guess if Suse's way of solving this way is more convenient...

I've found posts in some mailing lists suggesting to recompile the libqt4-sql package in order to enable the QIBASE driver (for Fbird support), but I don't know exactly how to do this.

Which is the correct way of solving this issue?

TIA

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Scott Kitterman
Solved:
Last query:
Last reply:
Revision history for this message
Diego Schulz (dschulzg) said :
#1

I partially solved my question. Instructions at

http://ubuntuforums.org/showthread.php?p=4161699#post4161699

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Diego Schulz (dschulzg) said :
#3

I'm still concerned about this issue. Is there a good reason that precludes adding support for firebirdsql in libqt4-sql ? Licensing? Avoiding excesive number of dependencies on the libqt4-sql package?

If it's just a matter of developer effort/time, and there's something I can do, even if I'm not the right person, I'll do my best to solve this.

TIA

Revision history for this message
Best Scott Kitterman (kitterman) said :
#4

The problem is that Firebird is in the Universe repository for Ubuntu (these are applications provided, but supported by the community, not Canonical). In order to enable the functionality, libqt4-sql would have to build depend on the firebird development headers. This would require firebird to be promoted to Main (and thus supported).

In other packages, the functionality has been split out into a separate package that can live in Universe. I've no idea if that's feasible in this case, but that's what would be required.

Revision history for this message
Diego Schulz (dschulzg) said :
#5

Thanks Scott Kitterman, that solved my question.

Revision history for this message
Diego Schulz (dschulzg) said :
#6

Thank you. That cleared all my doubts