PDA

View Full Version : Problem while creating QOCIDriver: oci.json not found



Momergil
26th August 2013, 21:22
Hello!

[Once again] I'm trying to build the QOCIDriver (for oracle databases) using MinGW and I'm unable to do it because a file named "oci.json" is not being found.

It may seems strange that I'm doing this question here since this is not a oracle database forum, but Qt, but the problem is that I already did a successful QOCIDriver with MinGW when I was using Qt 4.8.1. Now that I moved to Qt 5.1.0, I discovered that QSqlDatabase wouldn't considered my old drivers, so I'm having to build them again. And when I repeated the steps to make this driver in particular, this error appeared (an error that didn't appear when I compiled the driver in the first time). So that makes me thing if it's not something more related to Qt than to Oracle database.

About the file specifically, there is nothing on Google about it.

The way I'm trying to build: http://stackoverflow.com/questions/17601662/how-to-build-qt-qoci-oracle-database-driver-on-windows-with-mingw

Thanks,

Momergil

ChrisW67
26th August 2013, 22:58
"oci.json" exists in the same place (http://qt.gitorious.org/qt/qtbase/source/HEAD:src/plugins/sqldrivers/oci) as oci.pro in the Qt5+ source.
How to Build the OCI Plugin on Windows

You are not trying to build from the Qt4 source are you?

Momergil
28th August 2013, 16:01
"oci.json" exists in the same place (http://qt.gitorious.org/qt/qtbase/source/HEAD:src/plugins/sqldrivers/oci) as oci.pro in the Qt5+ source.
How to Build the OCI Plugin on Windows

You are not trying to build from the Qt4 source are you?

Hello Chris.

No, I'm not :) The manual I created for building the OCI plugin (that I linked before) is based on the linked you provided (although I have the impression that it may not be that useful for Qt 5.1)

Regarding the file, nice move! Actually it wasn't there, probably because I mistakenly deleted it in a previous move. But I managed to pick the code in gitorious and created the file manually and now everything worked perfectly :)

Thanks!

ChrisW67
28th August 2013, 21:29
The Qt5 docs for building the plugins are different from the Qt4 docs..

http://qt-project.org/doc/qt-4.8/sql-driver.html#qoci
https://qt-project.org/doc/qt-5.1/qtsql/sql-driver.html#qoci

This is why you should refer the original docs and not some blow-by-blow 'tutorial' that tells you little more but will be out-of-date quickly.