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. QSqlite Application runs on my computer but not on client computers: Drivers not loaded.
Forum Updated to NodeBB v4.3 + New Features

QSqlite Application runs on my computer but not on client computers: Drivers not loaded.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k 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.
  • W Offline
    W Offline
    W.K.S
    wrote on last edited by
    #1

    Hi everyone,

    I made an application that uses a QSQLITE database driver and compiled a release build for Windows.
    After placing all the libraries in the same folder and running the application on my system, the application ran smoothly.

    When I run the application on my client's system (with all the dependencies met) - I get an error message that drivers not loaded.

    I'm not quite sure why this is happening. I've read a number of related questions and it seems that I've already implemented the steps that solved their problems.

    I appreciate your help.

    Dependancy List

    libgcc_s_dw2-1.dll

    mingwm10.dll

    QtCore4.dll

    QtGui4.dll

    QtSql4.dll

    1 Reply Last reply
    0
    • W Offline
      W Offline
      W.K.S
      wrote on last edited by
      #2

      I realised what the problem was.

      Qt Applications that make use of QSQLITE must include the qsqlite4.dll driver found in this folder:

      bq. $QTSDKDIR/4.7.4/mingw/plugins/sqldrivers/qsqlite4.dll

      A folder named 'sqldrivers' needs to be created in the same directory as the executable and the above .dll has to be copied into this folder.

      After Installation, the application's folder should contain

      the release executable

      all dependencies required by the executable

      sqldrivers folder containing qsqlite4.dll

      The application should then work on any system.
      Source: "Stack Overflow":http://stackoverflow.com/questions/5151279/qsqlite-driver-not-loaded

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marcogaribay
        wrote on last edited by
        #3

        You made my day!

        "This is what I did...":http://qt-project.org/forums/viewthread/19174/#102670

        [quote author="W.K.S" date="1340745207"]I realised what the problem was.

        Qt Applications that make use of QSQLITE must include the qsqlite4.dll driver found in this folder:

        bq. $QTSDKDIR/4.7.4/mingw/plugins/sqldrivers/qsqlite4.dll

        A folder named 'sqldrivers' needs to be created in the same directory as the executable and the above .dll has to be copied into this folder.

        After Installation, the application's folder should contain

        the release executable

        all dependencies required by the executable

        sqldrivers folder containing qsqlite4.dll

        The application should then work on any system.
        Source: "Stack Overflow":http://stackoverflow.com/questions/5151279/qsqlite-driver-not-loaded[/quote]

        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