0
votes

I have this app that uses sqlite database. Login to the app is done by accessing the credentials in a table in the database. I am able to login on the development machine but on the target machine, i am not able to login. I built the program in release mode. What could be the problem?

target machine is windows 7, no debug info or warning. These are the files i shipped with the app;

kernel32.dll
libgcc_s_dw2-1.dll
libstdc++-6.dll
libwinpthread-1.dll
msvcrt.dll
QtCore4.dll QtGui4.dll
QtSql4.dll
the_database_file.db
user32.dll

1
are there any debug infos - like some error messages? how do you deploy on target machine? what OS host/target? you provided very little infos.. - nayana
I have updated my question. The program runs on the target machine but i am not able to login. - Paa K
Ist the sql dll in the sqldrivers subdirectory? I am not sure if this is required with qt4 as well but it is often forgotten and not always necessary on a dev machine as qt finds it in its own path - Bowdzone
Where is .sqlite file with DB located? And how did you write path to it in code ? - tema
Why are user32.dll, etc. included? My nose tells me something there is responsible. - jonspaceharper

1 Answers

2
votes

create a folder in your executable directory called sqldrivers and add sqlite driver plugin to it. I think it should be;
qsqlite4.dll You'll find the driver plugin in Qt\4.whatever\plugins\sqldrivers You should be able to login or access the sqlite database on the target machine now. I think Bowdzone was trying to say the same thing.