Can't build QOCI driver
-
When I try to connect my application with the Oracle database it gives an error saying
"QOCI driver not loaded"
So then I googled the error and found this answer in stackoverflow
https://stackoverflow.com/questions/29508725/qt-connect-to-oracle-database-on-windows
I followed every step in that answer but in the 5th step when I try to run command qmake oci.pro
it gives an error like this
how can I solve this??? -
hi
Check that
set INCLUDE=%INCLUDE%;c:\app\user\product[version]\client_1\oci\include
set LIB=%LIB%;c:\app\user\product[version]\client_1\oci\lib\msvc
is 100% correct.
paste the path part to explore and see it can open location. -
@mrjj said in Can't build QOCI driver:
c:\app\user\product[version]\client_1\oci\include
Yes I have set both paths
-
Hi,
The instructions for building the SQL modules have changed. See Qt's documentation about the OCI driver.
-
Hi,
The instructions for building the SQL modules have changed. See Qt's documentation about the OCI driver.
-
Thanks for pointing out the mistake, Now the qmake command runs without error, but when I run the nmake /oci command it prints many lines on the command prompt but nothing happens.
-
@OAmila you have a MinGW command prompt and want to use the MSVC compiler?! that cannot work...
-
@aha_1980 So does that mean I can't connect my Qt application with an Oracle database? will I be able to do it if I use an older Qt version. Why don't they include it in the documentation :( :( I already spent around a week resolving this, anyway thanks a lot for helping
-
@aha_1980 So does that mean I can't connect my Qt application with an Oracle database? will I be able to do it if I use an older Qt version. Why don't they include it in the documentation :( :( I already spent around a week resolving this, anyway thanks a lot for helping
-
It means, that it does not work with MinGW - you can ask Oracle to better support that compiler.
But it seems you can use the MSVC compiler with a suitable Qt for your app.
Regards