Results 1 to 5 of 5

Thread: How Do I Deploy Application Into Single .exe Stand Alone File

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Question How Do I Deploy Application Into Single .exe Stand Alone File

    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

  2. #2
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How Do I Deploy Application Into Single .exe Stand Alone File

    Please take a look at Deploying Qt Applications part of the documentation. It explains the static linking and shared library approaches.

  3. #3
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Re: How Do I Deploy Application Into Single .exe Stand Alone File

    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

  4. #4
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How Do I Deploy Application Into Single .exe Stand Alone File

    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

  5. #5
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: How Do I Deploy Application Into Single .exe Stand Alone File

    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

Similar Threads

  1. Can't execute a Stand Alone Qt Application after compiling
    By aarelovich in forum Qt Programming
    Replies: 5
    Last Post: 8th October 2009, 17:59
  2. how to deploy my application
    By yuvaraj.yadav in forum Installation and Deployment
    Replies: 5
    Last Post: 9th April 2009, 10:21
  3. Deploy Qt application on Mac OS X
    By giandrea77 in forum Installation and Deployment
    Replies: 3
    Last Post: 11th February 2009, 09:34
  4. dependency file for Qt application to deploy
    By rajeshs in forum Installation and Deployment
    Replies: 5
    Last Post: 11th August 2008, 09:59
  5. Deploy Qt application on Mac OS X 10.4 Tiger
    By mourad in forum Installation and Deployment
    Replies: 1
    Last Post: 30th March 2008, 16:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.