Results 1 to 3 of 3

Thread: QSqlDatabase connectivity issues

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QSqlDatabase connectivity issues

    I am having some issues with a QSqlDatabase connectivity. The line of code I have is

    Qt Code:
    1. QSqlDatabase db = QSqlDatabase::addDatabase( "QOCI" );
    To copy to clipboard, switch view to plain text mode 

    I get 2 lines of error statements after this line executes:
    QSqlDatabase: QOCI driver not loaded
    QSqlDatabase: available drivers: QSQLITE QOCI8 QOCI
    Why can it not load the QOCI driver when it is one of the available drivers to me? I originally compiled Qt 4.3.0 on Solaris 9, however we have since upgraded to Solaris 10. Do I need to recompile Qt 4.3.0 on Solaris 10? It appears everything else has been working fine for the past month using this same install of Qt but this is the first time I tried using the database connectivity stuff since then. I would prefer not to rebuild all of Qt since this takes many hours, but if I need to I will. Thanks for any ideas anybody has on why I cannot load the QOCI driver when it is there.

  2. #2
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase connectivity issues

    I am gonna bet yes. The links may have changed between 9 and 10, or the paths are not exactly the same.
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

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

    ToddAtWSU (16th July 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase connectivity issues

    Yeah, before I left last night I had Qt recompile itself and this morning everything worked like normal again. So Qt did need to be recompiled even though the IT guys assured me this would not be the case. Thanks!

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.