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



  • 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



  • 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



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.