Results 1 to 3 of 3

Thread: Problems with QOCI8 in Linux

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Problems with QOCI8 in Linux

    I am using Qt 3.3.3 Enterprise Edition in RedHat Linux AS4. Some months ago I rebuilt Qt to include the QODBC3 database driver directly in the Qt library file (nl more plugin), and that works fine. Now we would like to use the QOCI8 database driver, so after installing the (Oracle 10g) client software, I ran configure with "-qt-sql-oci" and then did the make again. No errors, I got a new (bigger) Qt library file, and I saw it compile the qsql_oci.cpp file. But when I try to use addDatabase ("QOCI8") with my new library, it still generates the following messages:

    QSqlDatabase: QOCI8 driver not loaded
    QSqlDatabase: available drivers: QODBC3

    Where have I gone wrong?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with QOCI8 in Linux

    Try running "ldd <program>". It should display paths to all shared libraries that your program uses. Check if the new Qt version is there.

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Problems with QOCI8 in Linux

    It was there, but so was another (old) version of the Qt library, and it found the old one. I got rid of it, and now it works.

    Thank you for your help, jacek.

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12

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.