Compiling Oracle drivers in latest Qt (5.10)
itjustme_tech
Windows, MS VC 2015 32 bit, Oracle instant client 11gr2.

1. Modify oci.pro:

#QMAKE_USE += oci
QMAKE_LFLAGS += oci.lib


2. Modify ../qsqldriverbase.pri:

#include($$shadowed($$PWD)/qtsqldrivers-config.pri)


3. In command line go to driver source directory (with file oci.pro)

set INCLUDE=C:\oracle\ora11-32-instant\include;%INCLUDE%
set LIB=C:\oracle\ora11-32-instant\lib\msvc;%LIB%
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
qmake oci.pro


4. Modify Makefile.Release and Makefile.Debug:

in strings contain
moc.exe
remove
-I%INCLUDE%


5. In command line

nmake


6. Done

?

Log in

No account? Create an account