First, the prerequisite installation
1. Need to install QT5.2.0, this introduction installs is Qt-windows-opensource-5.2.0-mingw48_opengl-x86-offline.exe;
This article installs the directory: c:\Qt
2. Install Oracle Client,
This article is installed as: win32_11gr2_database_1of2.zip
Win32_11gr2_database_2of2.zip
This introduction inside installs the path to be E:\app, remembers as Oracelpath
Second, the compilation process
1. Find Qt 5.2.0 for Desktop in the Start menu
2. Open the above console and start setting up the related directory.
3. Compile
The following%oraclepath% need to be replaced with the relevant directory where Oracle is installed
The following%qtdir% need to be replaced with the relevant directory of their own QT installation
(1) Set include directory:
Set Include=%include%;%o Raclepath%\administrator\product\11.2.0\dbhome_1\oci\include;%qtdir%\qt5.2.0\tools\mingw48_32\include
(2) Set Lib directory
Set Lib=%lib%;%o Raclepath%\administrator\product\11.2.0\dbhome_1\oci\lib;%o Raclepath%\administrator\product\11.2.0\dbhome_1\oci\lib\msvc
(3) The engineering catalogue of OCI into QT
CD%qtdir%\qt5.2.0\5.2.0\src\qtbase\src\plugins\sqldrivers\oci
(4) Start Qmake compilation process, Qmake Oci.pro
(5) Compile using GCC libraries: mingw32-make
So the compilation is complete.