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. Building static source QSQLMYSQL.dll Issue
QtWS25 Last Chance

Building static source QSQLMYSQL.dll Issue

Scheduled Pinned Locked Moved General and Desktop
sqlbuildingdriver
4 Posts 3 Posters 2.0k Views
  • 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.
  • E Offline
    E Offline
    Ericode
    wrote on 14 Apr 2015, 02:56 last edited by Ericode
    #1

    Hello, I just built the static source for my program on a new PC and I am getting the error:

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE
    QSqlError("", "Driver not loaded", "Driver not loaded")
    

    Do I have to rebuild the .dll's separate? If so, would flag would I add to the build? Also, what location is it checking for the .dll's because I checked the src/plugins/sqldrivers/ and all the drivers are there. I am not sure why only sqllite is appearing.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Ericode
      wrote on 14 Apr 2015, 04:24 last edited by Ericode
      #2

      I have tried to rebuild the QSQLMYSQL.dll file and I have included the path to mysql 5.5 lib and include folder (with no spaces) and it compiles and builds but there is no debug or release folder output. Any suggestions? Only the .moc .obj and .pch folders are generated along with a Makefile, makefile.debug and makefile.release.
      I have installed the 32bit version of mysql connector and when I try to build it I use the command:

      qmake -o Makefile "INCLUDEPATH+=C:/test/include" "LIBS+=C:/test/lib/libmysql.lib" mysql.pro
      

      and then I build the dll by

      mingw32-make
      

      No errors are provided when I build it from q creator or through the qt cmd

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fennec
        wrote on 14 Apr 2015, 23:21 last edited by
        #3

        I too am having this issue. Try:
        mingw32-make install

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Apr 2015, 23:25 last edited by
          #4

          Hi and welcome to devnet,

          What option did you pass to configure when you built Qt ?

          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

          2/4

          14 Apr 2015, 04:24

          • Login

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