PDA

View Full Version : Can't load the postgre driver!



brevleq
9th January 2008, 01:10
Hi guys!!

Something different its happening with my program!! I my computer I can run the program so well,but in others computers, the Driver no loaded appears!!

I can't understand!! All dlls the program need is with the .exe file!

What could be??

jacek
9th January 2008, 14:32
You forgot to copy the QPSQL driver plugin to that other machine. Make sure it's in sqldrivers subdirectory and that you have copied all necessary DLLs to the same directory where your executable it.

brevleq
10th January 2008, 12:50
Well guy, the files I'm sending for the "testers" are these:

Pasta de C:\caixa_xpress


10/01/2008 10:23 <DIR> .
10/01/2008 10:23 <DIR> ..
06/01/2008 18:36 662.016 caixa.exe
12/10/2005 09:32 24.576 comerr32.dll
12/10/2005 09:32 524.288 krb5_32.dll
03/11/2005 11:50 1.064.960 libeay32.dll
31/01/2003 18:41 916.849 libiconv-2.dll
01/02/2003 15:51 51.016 libintl-2.dll
20/04/2007 11:22 186.822 libpq.dll
13/01/2005 17:19 15.960 mingwm10.dll
05/12/2007 17:36 81.408 qsqlpsql4.dll
05/12/2007 22:38 2.078.720 QtCore4.dll
05/12/2007 23:11 9.114.112 QtGui4.dll
05/12/2007 23:12 291.840 QtSql4.dll
03/11/2005 11:50 200.704 ssleay32.dll

dependency walker says that's no problem with the dlls here in my computer!!
but in tester's computer the "driver not loaded" message appears!

I forgot some file??
The QPSQL driver plugin you meant isnt qsqlpsql4.dll??

jacek
10th January 2008, 12:58
Create sqldrivers subdirectory in that directory and move qsqlpsql4.dll there.

brevleq
10th January 2008, 16:47
No way!!

I did it and still with the same problem!!
We should think in computers that have never the QT libraries installed, this is the kind of computer the testers are using!!

In my computer it works well but in others no!

jacek
11th January 2008, 13:16
You can use Dependency Walker (http://www.dependencywalker.com/) to check whether all DLLs are in place. Just point it to qsqlpsql4.dll and it should list all required DLLs that you should copy to C:\caixa_xpress (of course except the standard windows DLLs).

brevleq
12th January 2008, 05:23
Ohh guy!!

I tryied again put the dlls in qsqldrivers and now it run well!!
I didn't put qodbc (I didn't remember the correct name) dlls and it now run!!

Thanks for your help!!