How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.
Unsolved
Installation and Deployment
-
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.
-
Please follow the documentation.
-
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.
-
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 ... -
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.
-
You still don't follow the instructions... You need the source code to compile something.