Results 1 to 2 of 2

Thread: Cannot load SQLITE driver on clean target

  1. #1
    Join Date
    Dec 2008
    Location
    Tahoe National Forest (California)
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cannot load SQLITE driver on clean target

    New to this forum

    I own X11 and Win commercial licenses.

    I have developed a simple application that includes a minor database.
    I have targeted both X11 and Windows.

    I have built and tested on windows using both the console and VS2005. Now I am trying to deploy on a windows (XP) that does not have QT installed and I am unable to load (addDatabase). The error returned is "Driver not loaded".

    I have tried several approaches to this problem:
    QT suggests "create the plugins subdirectory and copy over the relevant DLLs"

    OK, no difference. "qApp->addLibraryPath("...path\to\plugins");"
    Again no difference.

    Added:
    LIBS += -LC:/Qt/4.2.2/plugins/sqldrivers -lqsqlite
    QTPLUGIN += qsqlite
    to the .pro

    etc. etc. etc.

    I tried re-compiling the QT tree with the sqlite driver
    qmake config:
    QMAKE_QT_VERSION_OVERRIDE = 4
    OBJECTS_DIR = tmp\obj\release_shared
    MOC_DIR = tmp\moc\release_shared
    RCC_DIR = tmp\rcc\release_shared
    sql-drivers += sqlite
    styles += windows plastique cleanlooks windowsxp motif cde
    imageformat-plugins += jpeg
    CONFIG += minimal-config small-config medium-config large-config full-config release incremental create_prl link_prl depend_includepath
    QMAKESPEC = C:\Qt\4.2.2\mkspecs\win32-msvc2005
    ARCH = windows
    QT_BUILD_TREE = C:\Qt\4.2.2
    QT_SOURCE_TREE = C:\Qt\4.2.2
    DEFINES *= QT_EDITION=QT_EDITION_DESKTOP
    QMAKE_MOC = $$QT_BUILD_TREE/bin/moc.exe
    QMAKE_UIC = $$QT_BUILD_TREE/bin/uic.exe
    QMAKE_UIC3 = $$QT_BUILD_TREE/bin/uic3.exe
    QMAKE_RCC = $$QT_BUILD_TREE/bin/rcc.exe
    QMAKE_DUMPCPP = $$QT_BUILD_TREE/bin/dumpcpp.exe
    QMAKE_INCDIR_QT = $$QT_BUILD_TREE/include
    QMAKE_LIBDIR_QT = $$QT_BUILD_TREE/lib

    This was supposed to include the driver in the core lib (i believe) but has no effect.

    I'm out of ideas and very frustrated. It must be something simple.
    I could use a hand...
    Thanks

  2. #2
    Join Date
    Dec 2008
    Location
    Tahoe National Forest (California)
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot load SQLITE driver on clean target

    THANKS Grimlock

    I never would have thought of this. I tried plugins/sqldrivers but not ./sqldrivers.

    your comment: "Ok i got it running the qsqlite.dll needs to be an folder named sqldrivers. And all is fine" ended my hours long trial and fail.

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 06:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.