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

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


Message 1 in thread

it does not work !!
Is there a mean to compile statically the project such a way to include all the needed code in .exe file.
Regards
Adel


----- Message d'origine ----
De : Alessandro Portale <Alessandro.Portale@xxxxxxxxxxxxx>
à : qt-interest@xxxxxxxxxxxxx
Envoyà le : Jeudi, 8 Novembre 2007, 16h10mn 09s
Objet : Re: Re : problem with qt4 when lunching it on another station

I guess the main executable is in e:\testete. So try removing the
 "plugins" part.

e:\testete\app.exe
e:\testete\otherlibs.dll
e:\testete\sqldrivers\qxyz4.dll

Alessandro

adel safi schrieb:
> Thanks;
> I have tried that, but it does not work.
> e:\testete\plugins\sqldrivers
> Here is my tree. But it does not work yet. Can you help.
> regards
> Adel
> 
> ----- Message d'origine ----
> De : Alessandro Portale <Alessandro.Portale@xxxxxxxxxxxxx>
> Ã : qt-interest@xxxxxxxxxxxxx
> Envoyà le : Jeudi, 8 Novembre 2007, 15h55mn 25s
> Objet : Re: problem with qt4 when lunching it on another station
> 
> 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
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx 
> <mailto:qt-interest-request@xxxxxxxxxxxxx> with "unsubscribe" in the 
> subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 
> 
>
 ------------------------------------------------------------------------
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails 
> <http://www.trueswitch.com/yahoo-fr/> vers Yahoo! Mail

--
 [ signature omitted ] 
Message 2 in thread

see here:
http://doc.trolltech.com/4.3/plugins-howto.html#static-plugins
and here:
http://doc.trolltech.com/4.3/deployment-windows.html#building-qt-statically 

Cheers,
Peter

> -----Ursprüngliche Nachricht-----
> Von: adel safi [mailto:adelessafi@xxxxxxxx] 
> Gesendet: Donnerstag, 8. November 2007 16:32
> An: Alessandro Portale; qt-interest@xxxxxxxxxxxxx
> Betreff: Re : Re : problem with qt4 when lunching it on 
> another station
> 
> it does not work !!
> Is there a mean to compile statically the project such a way 
> to include all the needed code in .exe file.
> Regards
> Adel
> 

--
 [ signature omitted ]