PDA

View Full Version : QSLITE driver not loaded??



SunnySan
14th October 2008, 10:15
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

spirit
14th October 2008, 10:19
do you use sql driver plugins?
if yes, then copy sqldrivers from QTDIR/plugins to dir with your application.

SunnySan
14th October 2008, 10:23
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?

spirit
14th October 2008, 10:31
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

SunnySan
14th October 2008, 10:38
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