HI everybody,
I use Microsoft windows Vista 32 bit, I installed Qt SDK 2010.04 4.7.0 (32 bit) Open source, I installed oracle 10g express.
I did an application that needs a database connection. So I had to compile the OCI driver to connect to the database.
So I did like this:
I open the Qt command Prompt.
And I typed:
set INCLUDE=%INCLUDE%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\includ
set LIB=%LIB%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\lib\MSVC
set PATH=%PATH%;C:\oraclexe\app\oracle\product\10.2.0\server\BIN
set PATH=%PATH%;C:\Qt\2010.04\bin
set PATH=%PATH%;C:\Qt\2010.04\mingw\bin
set PATH=%PATH%;C:\Qt\2010.04\qt\qmake
set PATH=%PATH%;C:\Qt\2010.04\qt\bin
set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server
set QT_PLUGIN_PATH=C:/Qt/plugins/sqldrivers
cd C:\Qt\2010.04\qt\src\plugins\sqldrivers\oci
qmake -o Makefile oci.pro
mingw32-make
set INCLUDE=%INCLUDE%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\includ
set LIB=%LIB%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\lib\MSVC
set PATH=%PATH%;C:\oraclexe\app\oracle\product\10.2.0\server\BIN
set PATH=%PATH%;C:\Qt\2010.04\bin
set PATH=%PATH%;C:\Qt\2010.04\mingw\bin
set PATH=%PATH%;C:\Qt\2010.04\qt\qmake
set PATH=%PATH%;C:\Qt\2010.04\qt\bin
set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server
set QT_PLUGIN_PATH=C:/Qt/plugins/sqldrivers
cd C:\Qt\2010.04\qt\src\plugins\sqldrivers\oci
qmake -o Makefile oci.pro
mingw32-make
To copy to clipboard, switch view to plain text mode
I don't know if my compilation is correct or not...!!
But when I execute my program, it appears this message to me:
QSqlDatabase: QOCI driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
To copy to clipboard, switch view to plain text mode
I don’t know why the OCI driver is not loaded!!
Help plzzz
Thanks
Bookmarks