PDA

View Full Version : How Do I Deploy Application Into Single .exe Stand Alone File



Deshi
23rd January 2010, 01:33
Can someone tell me the process of deploying a simple application into a single .exe file without any dependencies of dll files when other user run its.

Thanks,
Deshi

tsp
23rd January 2010, 07:17
Please take a look at Deploying Qt Applications (http://doc.trolltech.com/latest/deployment.html) part of the documentation. It explains the static linking and shared library approaches.

Deshi
23rd January 2010, 08:00
I did the configure by doing this,
configure -static -release -no-exceptions

then followed by,
mingw32-make sub-src

But resulted with a error.
Here is a snippet of the error.

collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
mingw32-make[2]: Leaving directory `c:/Qt/2010.01/qt/src/tools/moc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `c:/Qt/2010.01/qt/src/tools/moc'
mingw32-make: *** [sub-moc-sub_src_target_ordered] Error 2

Any suggestions?

Thanks,
Deshi

schnitzel
25th January 2010, 18:16
I'm assuming you are running from Qt Prompt.
Try:
mingw32-make distclean

and try the configure and make again, maybe something was left in an inconsistent state from a previous configure/build attempt.

If this doesn't help, re-install Qt but make sure you remove the Qt folder before re-installing.

good luck

Deshi
25th January 2010, 22:26
I didn't realize that doing the configure and make in QT command prompt would give a different result then window's cmd. So I got it to work out after doing all the configuration in QT command prompt not window's cmd.

Thanks,
Deshi