First, the premise installation
1. Need to install QT5.2.0, the introduction of the installation is Qt-windows-opensource-5.2.0-mingw48_opengl-x86-offline.exe;
This article installs the directory: c:\Qt
2. Install the Oracle client,
This article is installed as: win32_11gr2_database_1of2.zip
Win32_11gr2_database_2of2.zip
The path installed in this introduction is E:\app, recorded as Oracelpath
Second, the compilation process
1. Find Qt 5.2.0 for Desktop in the Start menu
2. Open the top console and start setting up the relevant directory.
3. Compiling
the following %oraclepath% need to replace the relevant directory where Oracle is installed
the following %qtdir% needs to be replaced by its own directory to install QT
(1) Set up the Include directory:
[HTML]View Plaincopy
- 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
[HTML]View Plaincopy
- 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 project catalogue of the OCI entering the 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 with GCC libraries: mingw32-make
So the compilation is done.