Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOCIDriver: unable to create environment
Forum Updated to NodeBB v4.3 + New Features

QOCIDriver: unable to create environment

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    H.Klingel
    wrote on last edited by
    #1

    Hi,

    I’m trying to move my application to 64 bits. That’s why I build qt4.7.3 with the VS2010 ×64-compiler. I’ve used -qt-sql-oci in the configuration because I need a connection to an Oracle DB. As includes, I took the oci.lib and oci.h from the same instant client sdk where I get the oci.dll from.

    When I look at QSqlDatabase::drivers() it says “QSQLITE QOCI8 QOCI” so I guess, QSqlDriver did compile with oci.

    But the moment I run QSqlDatabase::add(“QOCI”) there is an error:
    Warning: QOCIDriver: unable to create environment
    and lastError() says: Unable to initialize.

    isValid() returns true, though.

    I’ve already checked QApplication::getLibraryPath and made sure, the oci.dll is in the correct Folder but no success.
    I added the path of the original location of oci.dll to PATH – nothing.

    I’m going crazy. In 32-bits version everything went smooth, but in 64 bits…

    Any help is greatly appreciated.

    Kind regards,
    Harald

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved