In the Commercial Qt distribution you should have the oci directory in the src tree.
In my case, I found it here:
/usr/local/Trolltech/qt-x11-commercial-src-4.2.3/src/sql/drivers/oci
It will put the plugin for the driver in the plugins directory of the destination:
/usr/local/Trolltech/Qt-4.2.3/plugins/sqldrivers/
I used the configuration parameter -prefix to set the destination:
-prefix /usr/local/Trolltech/Qt-4.2.3
Any programs built using qmake and moc from the resulting bin file will use that prefix to find the plugins directory.
Notice, I did my build under /usr/local/Trolltech and used that as the base of my destination also.
Now for the oracle, The environment variable $ORACLE_HOME should point to the base of your oracle installation. In my case:
/ORACLE_HOME=opt/oracle/product/10.1.0/db_1
This intern I used the configuration parameters
-I /opt/oracle/product/10.1.0/db_1/rdbms/public
and
-L /opt/oracle/product/10.1.0/db_1/lib
Just to make all of this clear, my configure line looked like this in the end:
configure -prefix /usr/local/Trolltech/Qt-4.2.3 -I /usr/include/pgsql \
-I /opt/oracle/product/10.1.0/db_1/rdbms/public \
-L /opt/oracle/product/10.1.0/db_1/lib -qt-gif -qt-libpng -qt \
-libmng -qt-libjpeg -plugin-sql-psql -plugin-sql-oci -qt-gif
At run time I had to add the directories to my LD_LIBRARY_PATH. It looks like:
LD_LIBRARY_PATH=:/opt/oracle/product/10.1.0/db_1/lib:/usr/local/Trolltech/Qt-4.2.0/lib
The versions in the paths may vary from yours but the overall structures remain reasonably constant.
Now if I can only make it work for Windows using MVC
Bookmarks