You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

1

Friday, June 10th 2011, 9:02am

Deployment of application on windows with sqlite failed

Hi ! I'm using Qt 4.7.1, on Windows 7.
I've built an application using qsql, and native qt sqlite implementation.
Building on my machine, works, running on my machine works.
Running on my laptop, where there is not installed the qt environment, but there are installed a lot of programs, using qt.
Running on my friend computer, doesn't work, it shows "Driver not loaded".
I searched on google, and it seems a plugin problem.
I've tried to create a folder named plugins, with a subfolder, named sqldrivers, and put a dll i've found in my laptop system, the qsqlite.dll i could not find it on the internet, by the way, called qsqlite4.dll.
But doesn't work either.
How i can resolve this issue ?

By the way, the program loads correctly on all the machine, it shows the user interface, but just then it shows "Driver not loaded", and doesn't work.

Thanks in advance.

Marco.

Junior

Professional

  • "Junior" is male

Posts: 1,613

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

2

Friday, June 10th 2011, 2:32pm

Not sure if this will be helpful: Deploying Qt-Plugins

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

3

Sunday, June 12th 2011, 7:05pm

Using addLibraryPath or setLibraryPaths doesn't work !
How i do this ?

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

4

Sunday, June 12th 2011, 8:10pm

I think is a bug, i've filed it.
Look at: http://bugreports.qt.nokia.com/browse/QTBUG-19841

I've resolved with a workaround.

Thank you very much anyway.

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

5

Sunday, June 12th 2011, 8:11pm

And qt.conf doesn't work either.

6

Monday, June 13th 2011, 4:25pm

It sounds like one of the dependencies is missing. I would use depends ( http://www.dependencywalker.com/ ) to figure out what DLL's the program requires. Then check to make sure they are all present and in the correct directories on the machine where it fails.

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

7

Monday, June 13th 2011, 7:37pm

Yes is missing qsqlite4.dll, because the program search it in C:\QtSDK\Desktop\Qt\4.7.3\mingw\plugins\sqldrivers
Trying on my computer friend is still not working, i don't know why.
addLibraryPath and setLibraryPaths, must work ! But they do not !
I don't know what to do ! Please help ! :)

chang112x

Beginner

  • "chang112x" is male
  • "chang112x" started this thread

Posts: 15

Occupation: Programmer and all sort of thing to survive.

  • Send private message

8

Monday, June 13th 2011, 8:28pm

It says it can't find gpsvc.dll and ieshims.dll, but on my dev computer, where it works. So i think they are not important.
Now renaming qsqlite4.dll to qsqlite.dll on my friend's computer, it works.