PDA

View Full Version : Error compiling oracle oci driver for Qt database



NAYZAKAY44
25th August 2010, 18:13
HI every body,
I use Microsoft windows Vista 32 bit OS, I installed Qt SDK 2010.04 4.7.0 (32 bit) Open source, I installed oracle 10g expresse.

I done an application that need a database connection. so I had to compile the OCI driver to connect to the database. and this is the problem !!
I did :
I open the Qt commande Prompt.
and I type:

set INCLUDE=%INCLUDE%;C:\oraclexe\app\oracle\product\1 0.2.0\server\OCI\include
set LIB=%LIB%;C:\oraclexe\app\oracle\product\10.2.0\se rver\OCI\lib\MSVC
set PATH=%PATH%;C:\oraclexe\app\oracle\product\10.2.0\ server\BIN
cd C:\Qt\2010.04\qt\src\plugins\sqldrivers\oci
qmake -o Makefile oci.pro

and then I typed "make" like in the doc but it don't recognize it so I type "nmake" and it don't recognize also.
so I type "mingw32-make" and it works but it gives me a lot of errors like:

c:\program files\microsoft visuel studio\vc98\include/xstring:94:error expected ';' before '_N' :


I don't know if my compilation is correct or not ...and why make and nmake dosen't work with me in Qt command prompt !!
I want know what is worrong ! why it write microsoft visuel studio in the error ????? ?
please give exemple of compilation and the right steps for the oracle 10g oci ...
plzz HELP