win7+qt5.2.0 the OCI-driven compilation that connects the Oracle database

Source: Internet
Author: User

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
    1. 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
    1. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.