Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, November 2007
problem with qt4 when lunching it on another station


Message 1 in thread



	
	
	
	
	
	
	<!--
		@page { size: 21cm 29.7cm; margin: 2cm }
		P { margin-bottom: 0.21cm }
	-->
	

Hi list

I have compiled a program that uses
postgressql with QT4.1 on wondows XP. I have successufully run it on
mu machine. Now I want to give my program to someone else and I don t
want him to install QT neither postgresql (my program request
directly a distant server).





So, I have prepared a folder with my
binary, the qt dll, the dll of the pg driver and the dll of pg.
However, when I lunch the program on the new machine, my program runs
but it tells me that he cannot load the database driver. What should
I do?

Regards

Adel









      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

Message 2 in thread

Do you ship the qt pg dll in a "sqldrivers" folder next to the application? Qt looks there for the sql plugins, by default.
Qt also looks into your "%QTDIR%\plugins\sqldrivers\", that should be the reason why it works on your development machine.

Good luck,
Alessandro

adel safi schrieb:
> Hi list
> 
> I have compiled a program that uses postgressql with QT4.1 on wondows 
> XP. I have successufully run it on mu machine. Now I want to give my 
> program to someone else and I don t want him to install QT neither 
> postgresql (my program request directly a distant server).
> 
> 
> So, I have prepared a folder with my binary, the qt dll, the dll of the 
> pg driver and the dll of pg. However, when I lunch the program on the 
> new machine, my program runs but it tells me that he cannot load the 
> database driver. What should I do?
> 
> Regards
> 
> Adel

--
 [ signature omitted ]