win7+qt5.2.0 OCI-driven compilation of Oracle database connections

Source: Internet
Author: User
Tags oracle database

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.

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.