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
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
Please take a look at Deploying Qt Applications part of the documentation. It explains the static linking and shared library approaches.
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
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
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
Bookmarks