Results 1 to 5 of 5

Thread: QSLITE driver not loaded??

  1. #1
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QSLITE driver not loaded??

    I created a program with QT4 on one PC
    I then transfer the exe (and dll at the same location) to another PC
    When I try to run the program(try both command line and folder run) i have an error "QSLITE driver not loaded"
    I copied Qtsql4.dll , Qtsqld4.dll, Qsqlite4.dll, qsqlited4.dll in the folder so I don't understand why it's not running the database.

    thanks

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSLITE driver not loaded??

    do you use sql driver plugins?
    if yes, then copy sqldrivers from QTDIR/plugins to dir with your application.

  3. #3
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSLITE driver not loaded??

    I did copy the file Qsqlite4.dll, qsqlited4.dll from the sqldriver directory.
    I even copy the .a but still the same error??

    My first PC is a PC with vista, the second PC with windows 2000, (both win32) does he change anything?
    Last edited by SunnySan; 14th October 2008 at 10:32.

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSLITE driver not loaded??

    you should copy directory as is, not only its content, but and directory too.
    so, after coping this directory you should have next structure of your application directory:
    appdir
    |------sqldrivers
    | |----*.dll
    | ....
    |------application.exe

  5. The following user says thank you to spirit for this useful post:

    SunnySan (14th October 2008)

  6. #5
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSLITE driver not loaded??

    thanks
    I have just copied the dll files with their path Qt\plugins\sqldrivers\
    and it works

    great I thought i had to play with the register of windows....

    thanks

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. mysql driver not loaded after deployment
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 4th September 2011, 10:12
  3. mysql 5 connection
    By GuL in forum Newbie
    Replies: 37
    Last Post: 18th August 2008, 15:11
  4. SQlite driver not loaded error
    By ibergmark in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2008, 01:09
  5. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 17:10

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.