Results 1 to 5 of 5

Thread: Help with QMYSQL driver for QT 4.4.0: driver not loaded

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Posts
    8
    Thanks
    1

    Default Re: Help with QMYSQL driver for QT 4.4.0: driver not loaded

    Thanks for replying,

    For the future, I was compiling qt as static library with just the mysql plugin, this explain the present of qsqlmysql.a but not the share library.

    A reconfiguring and recompiling of qt as share library and including mysql driver, not just as a plugin, solved the problem.

    cheer
    khikho

  2. #2
    Join Date
    Feb 2011
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Post Re: Help with QMYSQL driver for QT 4.4.0: driver not loaded

    Quote Originally Posted by khikho View Post
    Thanks for replying,

    For the future, I was compiling qt as static library with just the mysql plugin, this explain the present of qsqlmysql.a but not the share library.

    A reconfiguring and recompiling of qt as share library and including mysql driver, not just as a plugin, solved the problem.

    cheer
    khikho
    I request you to mention the commands used for reconfiguring of qt as share library and including mysql driver.

  3. #3
    Join Date
    Mar 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: Help with QMYSQL driver for QT 4.4.0: driver not loaded

    If you are wanting a static build:

    Qt Code:
    1. [FONT=Arial, sans-serif]# ./configure -platform linux-g++ -prefix /usr/local/qt-4.4-static -static -release -qt-sql-mysql -qt-sql-sqlite -I /usr/include/mysql -L /usr/lib/mysql[/FONT]
    To copy to clipboard, switch view to plain text mode 

    You can refer to http://doc.qt.nokia.com/4.4/install-x11.html for more details

    Karl

Similar Threads

  1. QSqlDatabase: QMYSQL driver not loaded
    By onder in forum Newbie
    Replies: 12
    Last Post: 29th March 2017, 15:43
  2. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  3. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 21:15
  4. mysql 5 connection
    By GuL in forum Newbie
    Replies: 37
    Last Post: 18th August 2008, 16:11
  5. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 18:10

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
  •  
Qt is a trademark of The Qt Company.