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. qt 5.5 qsqldriver not loaded
Forum Updated to NodeBB v4.3 + New Features

qt 5.5 qsqldriver not loaded

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.5ubuntu 15.10mysql
2 Posts 2 Posters 1.4k 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.
  • S Offline
    S Offline
    sachi
    wrote on last edited by
    #1

    Hi guys, I was previesly used ubuntu 14.04 as my os and I have worked on project which use mysql as database. application works fine. but resenlty i installed ubuntu 15.10 and qt 5.5. Then when i tried to compile my project i got following error.

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
    QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
    QWidget: Must construct a QApplication before a QWidget
    The program has unexpectedly finished.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please search the forum about that matter. It's been answer many times already. From your description, you have a newer version the MySQL libraries than the one that have been used to build the plugin. Likely version 18 instead of 16. The fast way is to download Qt's sources and build the plugin yourself like described in the documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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