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 :-
Code:
[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.
How to install sqldriver for this.
Thanks
Re: How to install sqldriver for Oracle 11gR2 for Qt5.12 in CentOS 7.
Quote:
Originally Posted by
rahulvishwakarma
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 :-
Code:
[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.
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.