Results 1 to 4 of 4

Thread: Problem while creating QOCIDriver: oci.json not found

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Problem while creating QOCIDriver: oci.json not found

    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/1...ows-with-mingw

    Thanks,

    Momergil

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problem while creating QOCIDriver: oci.json not found

    "oci.json" exists in the same place 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?

  3. The following user says thank you to ChrisW67 for this useful post:

    Momergil (28th August 2013)

  4. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Problem while creating QOCIDriver: oci.json not found

    Quote Originally Posted by ChrisW67 View Post
    "oci.json" exists in the same place 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!

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problem while creating QOCIDriver: oci.json not found

    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/qt...iver.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.

Similar Threads

  1. QOCIDriver: unable to create environment problem
    By Momergil in forum Qt Programming
    Replies: 4
    Last Post: 7th August 2013, 01:06
  2. Replies: 2
    Last Post: 27th March 2013, 04:21
  3. QOCIDriver: unable to create environment
    By thaihoangluu in forum Newbie
    Replies: 18
    Last Post: 11th May 2012, 03:20
  4. Replies: 0
    Last Post: 16th May 2010, 17:53
  5. Replies: 5
    Last Post: 25th September 2009, 14:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.