Where did you place the plugin and PostgreSQL DLLs?
Where did you place the plugin and PostgreSQL DLLs?
hi jacek,
i add libeay32.dll, libpq.dll and qsqlpsql.dll there where my .exe file is (in the release folder)![]()
have you a idea?
Think DigitalGasoline
Then move qsqlpsql.dll to the sqldrivers subdirectory.
hi jacek,
this dll is allready under: D:\apps\Qt\4.1.3\plugins\sqldrivers
![]()
Think DigitalGasoline
Then copy it to the sqldrivers subdirectory of the directory where your executable is.Originally Posted by raphaelf
Hi Jacek,
I create the sqldrivers directory, copy this dlls: libeay32.dll, libpq.dll, qsqlpsql.dll
I get the same error message: DRIVER NOT LOAD DRIVER NOT LOAD![]()
Mission Impossible..![]()
Think DigitalGasoline
Only qsqlpsql.dll should go the sqldrivers, the rest should remain in the same directory where your executable is.Originally Posted by raphaelf
Did you compile the plugin and Qt with the same compiler and same build key?
Hi!
I put just qsqlpsql.dll now in my sqldrivers directory.
Yes i have compiled QT and Plugin with the same Compiler.
What is a build key?
Think DigitalGasoline
It's a special string that you can assign to your Qt DLLs and plugins. When Qt loads a plugin it checks whether both keys are the same, but since you have never heard about it, you have probably probably left the default values, so it shouldn't be a problem.Originally Posted by raphaelf
Open libeay32.dll and libpq.dll in Dependency Walker and see if there are some DLLs missing. If it finds some, post them here.
Hi,
libeay32.dll seems to miss nothing
libpq.dll seems to miss (i get a yellow question mark):
- COMERR32.DLL
- LIBINTL-2.DLL
- KRB5_32.DLL
- SSLEAY32.DLL
If i open LIBPQ.DLL from the original path: D:\apps\PostgreSQL\8.1\bin then its missing nothing..
Think DigitalGasoline
Then copy all missing DLLs from D:\apps\PostgreSQL\8.1\bin to the directory where your executable is.Originally Posted by raphaelf
Just put those DLL into c:\windows\system32\
This is a bit dangerous solution. What if there is another program that uses those DLLs, but for example their older versions?Originally Posted by ball
Yeah you are right but in this case, we need to make his program get running as first priority problem to be solved.
Hi everybody![]()
I put the dlls where my .exe is and i get the same error: driver not loaded..
I really dont know what to do now![]()
P.S. If i start the sql browser example, i can just see: qsqlite and qodbc, but no qsqlpsql. Did this information help??
Please help me to solve my problem..With QT3.2.1 i could connect me without problem to a postgre database..
Think DigitalGasoline
Bookmarks