+ Reply to Thread
Results 1 to 3 of 3

Thread: SQlite driver not loaded error

  1. #1
    Join Date
    Feb 2008
    Location
    South Korea
    Posts
    14
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default SQlite driver not loaded error

    I'm trying to deploy an application on Windows XP, but I get a "Driver not loaded" error when trying to open a sqlite database.

    My distribution contains;
    mingwm10.dll
    QtCore4.dll
    QtGui4.dll
    QtSql4.dll
    vace.db
    vace.exe

    I tested the installation on my development machine, and it works pefectly. When testing I renamed the Qt directory so that it was forced to use the dll's in the distribution.

    However, when I do the installation on another Win XP machine, I get the "Driver not loaded" error....

    Anybody have some advice?

    Thanks,
    Ingemar

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,514 Times in 1,387 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: SQlite driver not loaded error

    In addition to those, you'll need to deploy
    sqldrivers/qsqlite4.dll
    where sqldrivers is a subdirectory where the executable is located.
    J-P Nurmi

  3. The following 6 users say thank you to jpn for this useful post:

    Gecsevar (20th May 2011), ibergmark (17th March 2008), Jits (1st October 2010), Raccoon29 (18th March 2008), thefatladysingsopera (3rd November 2011), vladozar (7th June 2009)

  4. #3
    Join Date
    Feb 2008
    Location
    South Korea
    Posts
    14
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: SQlite driver not loaded error

    Yes, now that I see it I remember reading about it in the docs (sorry ).
    I ran Dependency Walker on my executable, and trusted that it would report all necessary dll's however it can't pick this one up since it's not actually opening the database...

    After putting qsqlite4.dll in the sqldrivers directory... (and also moving my database to the directory) it works perfectly!

    Thanks for your help.
    / Ingemar

+ Reply to Thread

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 15:22
  2. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 18:10
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 13:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 03:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 13:19

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