Results 1 to 2 of 2

Thread: How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.

  1. #1
    Join Date
    Jun 2014
    Posts
    48
    Thanks
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.

    I've two VMs one is Centos 6 as Oracle server and second is Centos 7 oracle instant client for this server + Qt 5.12.
    I am trying to compile Qt 5.12 OCI sqldriver for oracle 11g R2. I given this command and having this error :-

    Qt Code:
    1. [rahul@C-Client oci]$ /opt/Qt5.12.12/5.12.12/gcc_64/bin/qmake -- OCI_INCDIR=/opt/oracle/instantclient_11_2/sdk/include -- OCI_LIBDIR=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
    2. Error :
    3. Project ERROR: Library 'oci' is not defined.
    To copy to clipboard, switch view to plain text mode 

    How to install sqldriver for this.

    Thanks

  2. #2
    Join Date
    Feb 2025
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.

    Quote Originally Posted by rahulvishwakarma View Post
    I've two VMs one is Centos 6 as Oracle server and second is Centos 7 oracle instant client for this server + Qt 5.12.
    I am trying to compile Qt 5.12 OCI sqldriver for oracle 11g R2. I given this command and having this error :-

    Qt Code:
    1. [rahul@C-Client oci]$ /opt/Qt5.12.12/5.12.12/gcc_64/bin/qmake -- OCI_INCDIR=/opt/oracle/instantclient_11_2/sdk/include -- OCI_LIBDIR=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
    2. Error :
    3. Project ERROR: Library 'oci' is not defined.
    To copy to clipboard, switch view to plain text mode 

    How to install sqldriver for this.

    Thanks
    Make sure Oracle Instant Client is installed properly and the paths to the include and lib directories are correct. Next modify your .pro file to explicitly link to the OCI library.

Similar Threads

  1. Install Qt 5 on Centos 6 [Error]
    By Mohsin in forum Qt Programming
    Replies: 0
    Last Post: 9th July 2021, 12:02
  2. How to Install Qt 5 and Qwt on CentOS 6
    By lightdesign84 in forum Installation and Deployment
    Replies: 0
    Last Post: 14th January 2014, 20:40
  3. How to install 4.8 on CentOS 6
    By Markus in forum Installation and Deployment
    Replies: 2
    Last Post: 9th October 2013, 00:30
  4. Building a sqldriver (QIBASE) in windows msvc++2008
    By ProTonS in forum Installation and Deployment
    Replies: 1
    Last Post: 16th July 2009, 17:39
  5. Fix: QT app won't run under Oracle Standard Client install
    By GreyGeek in forum General Discussion
    Replies: 0
    Last Post: 12th May 2006, 19:20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.