[Qt-interest] Building QDB2
Robert Hairgrove
evorgriahr at hispeed.com
Mon Apr 6 15:08:43 CEST 2009
Scott Aron Bloom wrote:
>> Im trying to build the QDB2 sql driver or DB2... In the docs it says you
>> need to have "IBM DB2 development client library"
>>
>> However, for the life of me.. I cant find the development client library.
>> I don't care if I have to purchase it (its for a client, so based on
>> the performance I might be able to justify buying it) but I cnat even
>> find a copy forsale.
> They're included in DB2 Express, at least... that's where I've found
> them.
> http://www-01.ibm.com/software/data/db2/express/
>
Did you ever get this to work? I downloaded and installed DB2 Express
edition from the IBM site and it installed successfully on Ubuntu 8.04.
However, the Qt configure script supplied with the (open)source package
for Qt 4.5.0 seems to disable building DB2 by default since it
apparently doesn't distinguish between GPL'ed and LGPL'ed versions. Here
is a snippet starting at line 649 of configure:
#-------------------------------------------------------------------------------
# check SQL drivers, mouse drivers and decorations available in this package
#-------------------------------------------------------------------------------
# opensource version removes some drivers, so force them to be off
CFG_SQL_tds=no
CFG_SQL_oci=no
CFG_SQL_db2=no
^^^^^^^^^^^
I commented out the line pertaining to DB2, but still no go ... it can't
find the headers, although they are there. I thought about adding the
path to the DB2 headers to the PATH environment variable, but
unfortunately there is also a header called "sql.h" in the DB2 tree. And
since I am also trying to build Qt with ODBC turned on, I don't think
that is the right solution because ODBC has its own sql.h ...
In spite of what others have stated about opensource Qt 4.5 being
identical in functionality with the commercial version, I'm not
convinced just yet! ;)
More information about the Qt-interest-old
mailing list