WOW,I resolved it finally.<div>I create a setup.py file scratch from cx_setup.py which from Armando.</div><div>The main purpose of the setup.py is to include plugins of PyQt4.Then build with command:python setup.py build</div>
<div>That's all I have done,the icon shows.</div><div>Thank you Armando and Hans.</div><div><br></div><div>Bests,<br><div><br><div class="gmail_quote">On Thu, Sep 16, 2010 at 9:16 PM, "V. Armando Solé" <span dir="ltr"><<a href="mailto:sole@esrf.fr">sole@esrf.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi Von,<div><div></div><div class="h5"><br>
<br>
On 16/09/2010 08:38, Von wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
Here is my command:<br>
cxfreeze --target-dir=AutoOrder gui.py --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe --include-path=. -z icon.jpg<br>
<br>
Both app icon and tray icon used icon.jpg<br>
<br>
Regards,<br>
<br>
</blockquote>
<br></div></div>
I had similar problems in the past and they were due to the generated binary not finding the qt libraries. I do not know if those issues are automatically handled by cx_freeze now.<br>
<br>
I solved them adding a qtconffile saying where to find them in the frozen binary.<br>
<br>
You can take a look at the cx_setup.py and the qtconffile files found in the pymca svn repository (<a href="http://pymca.svn.sourceforge.net/viewvc/pymca/" target="_blank">http://pymca.svn.sourceforge.net/viewvc/pymca/</a> )<br>

<br>
Best regards,<br><font color="#888888">
<br>
Armando</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br></div></div>