[Qt-interest] building Qt 4.5.0 (LGPL) with DB2 and ODBC plugin support
Christopher Rasch-Olsen Raa
christopher at technophile.info
Thu Apr 9 14:39:44 CEST 2009
Torsdag 09 april 2009 14:29:40 skrev Robert Hairgrove:
> There seems to be a conflict with these two: I can build either, but not
> both because DB2 has its own "sql.h" header file which is totally
> different than the ODBC "sql.h" header. There are other ODBC headers in
> the DB2 include path as well; however, these appear to be Microsoft ODBC
> headers. Whether or not they will conflict with unixODBC headers is
> another question ... at any rate, I haven't gotten that far yet.
>
> The problem is that in order to build DB2 functionality, I must add the
> path to the include and lib directory at the command line for the Qt
> "configure" script. If I don't do that, DB2 isn't enabled. If I do, then
> DB2 is enabled, but then all the ODBC tests try to include the DB2
> "sql.h". :(
>
> Is there an easy fix for this? If not easy, is there any way to do it at
> all?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
You can try to do the following:
Run configure _without_ references to the respective plugins include-dirs (but
with options where you say you want to use those two plugins).
Then go into src/plugins/sqldrivers/{odbc-driverdir,db2-driverdir} and run
qmake as specified in the manual with the proper include-dirs. Then go to the
toplevel qt-dir and run make from there.
--
Christopher
More information about the Qt-interest-old
mailing list