I was able to manually build the driver on my own. I went to the $QTDIR/src/plugins/sqldrivers/oci directory. I then ran
$QTDIR/bin/qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public" "LIBS+=-L$ORACLE_HOME/lib32" oci.pro
Then I ran make and it all worked well. The library was copied into $QTDIR/plugins/sqldrivers.
Inside my program's makefile I added these lines and also modified my LD_LIBRARY_PATH inside my .cshrc and re-sourced the .cshrc:
In the INC variable I added the line: -I$(QT)/include/QtSql
In the LIBS variable I added the line: -lQtSql
In the LIBHOMES variable I added the line: -L$(QT)/plugins/sqldrivers
I did a make clean followed by a make and everything compiled and linked correctly. But when I ran the program and tried to create a QSqlDatabase I got some printout errors. I first tried to create the database with the line
Qt Code:
To copy to clipboard, switch view to plain text mode
The errors that print out are:
According to this there are no database drivers installed anywhere. Is there something else I need to do to let the program or Qt know I made the QOCI driver? Thanks!QSqlDatabase: QOCI driver not loaded
QSqlDatabse: available drivers:




Reply With Quote
Bookmarks