Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 372 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rahulvishwakarma
    wrote on last edited by
    #1

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

    [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
    Error :
    Project ERROR: Library 'oci' is not defined.
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please follow the documentation.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rahulvishwakarma
        wrote on last edited by
        #3

        I tried all these but no success :-

        cd /usr/lib64/qt-3.3/qtbase/src/plugins/sqldrivers
        /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 OCI_LIBS=-Wl,-rpath,/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
        
        
        [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 OCI_LIBS=-Wl,-rpath,/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
        Project ERROR: Library 'oci' is not defined.
        
        
        [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 OCI_LIBS=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
        Project ERROR: Library 'oci' is not defined.
        
        
        [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 OCI_LIBS=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 
        Project ERROR: Library 'oci' is not defined.
        
        
        
        
        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          qt-3.3

          Are you serious? Qt3.3?

          /usr/lib64/qt-3.3/qtbase/src/plugins/sqldrivers
          You need the Qt sources if you want to compile the Qt plugin (what a surprise) - I doubt they are in this directory ...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rahulvishwakarma
            wrote on last edited by
            #5

            sorry I posted wrong lines its actually :-

            [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 OCI_LIBS=-Wl,-rpath,/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
            Project ERROR: Library 'oci' is not defined.
            
            
            [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 OCI_LIBS=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 oci.pro
            Project ERROR: Library 'oci' is not defined.
            
            
            [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 OCI_LIBS=/opt/oracle/instantclient_11_2 -lclntsh -lnnz11 
            Project ERROR: Library 'oci' is not defined.
            
            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by Christian Ehrlicher
              #6

              You still don't follow the instructions... You need the source code to compile something.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved