PDA

View Full Version : PSQL path dependency



CassioTC
22nd August 2011, 13:40
Hello,

I'm heaving some trouble to make my application work in other computers.

I compiled PSQL drivers, worked in my PC ok. But when i put in others computers the driver do not load. I discovery that the app always try to load qsqlpsql4.dll, searching in C:\QtSDK\Desktop\Qt\4.7.3\mingw\plugins\sqldrivers , and just in this path.

I tried to put the qsqlpsql4.dll in the app folder, windows path, etc.. and didn't work.

How can I change this path dependency?

Thank you

ChrisW67
22nd August 2011, 23:30
Put the Qt plugin in the correct location when you deploy. It should be in the "sqldrivers" sub directory of the directory containing your application exe for it to be found automatically, or you can put it anywhere and use the qt.conf file if you prefer. You also need to ensure all the SQL plugin's dependencies (not a part of Qt) are installed on the target system in places the operating system can find them.