PDA

View Full Version : Oracle database connection failure



atiker
11th December 2017, 15:47
hello,
I am quite new to Qt and I want to establish connection between Qt and Oracle. I researched various articles even the online Qt documentation. None of them helped and end up with failure to connect Oracle database. Is there anyone can explain step by step guide for dummies to connect with Oracle database? My environment is:
OS=windows 10
Qt=5.10
Database=Oracle 12
Here is the Error message in Mingw32 environment;
C:\Qt\5.10.0\mingw53_32>cd C:\Qt\5.10.0\Src\qtbase\src\plugins\sqldrivers\oci

C:\Qt\5.10.0\Src\qtbase\src\plugins\sqldrivers\oci>set INCLUDE=%INCLUDE%;C:\app\aliati\product\12.2.0\dbh ome_1\oci\include

C:\Qt\5.10.0\Src\qtbase\src\plugins\sqldrivers\oci>set LIB=%LIB%;C:\app\aliati\product\12.2.0\dbhome_1\oc i\lib\msvc

C:\Qt\5.10.0\Src\qtbase\src\plugins\sqldrivers\oci>qmake oci.pro
Cannot read C:/Qt/5.10.0/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: The system cannot find the file specified.
Project ERROR: Library 'oci' is not defined.

I believe that the error raised because MSVC libraries cannot be used within MINGW. There must be some other solution to build QOCI driver. Can anyone help?:crying::crying:
Thanks in advance.

ChrisW67
11th December 2017, 22:04
Your answer is possibly here (https://stackoverflow.com/questions/19849270/use-oracle-oci-dll-with-mingw64-64bit-compiler#20097291) on StackOverflow