Results 1 to 7 of 7

Thread: Release folder - 1 .exe file only

  1. #1
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    2

    Default Release folder - 1 .exe file only

    Can I do that? Right now I've got an .exe and two .o files, one from main & one from hello (I'm using the example given in QT on how to create your first make file)

    After creating the makefile I compile the code in QT and my release folder has the files listed above. To get release to work by clicking the .exe in my directory structure I've had to copy QTGu4, QTCore4 and mingwm10. Is it possible to get the release down to a single exe file and how can I incorporate the dll files?

  2. #2
    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: Release folder - 1 .exe file only

    release and debug folders are just 'working' folders, i.e. they contain files that are created throughout the preprocess/compilation/linking stages.

    It would be a good exercise to learn how make files work.

    Once your executable is done building and you want to deploy your app, you typically copy it to some other place (together with all dll's it needs, such as Qt core/gui dll's). Object files are generally not deployed with an application.

  3. #3
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    2

    Default Re: Release folder - 1 .exe file only

    Quote Originally Posted by schnitzel View Post
    release and debug folders are just 'working' folders, i.e. they contain files that are created throughout the preprocess/compilation/linking stages.

    It would be a good exercise to learn how make files work.

    Once your executable is done building and you want to deploy your app, you typically copy it to some other place (together with all dll's it needs, such as Qt core/gui dll's). Object files are generally not deployed with an application.
    I'll continue to read on make files

    So does that mean you cannot package the QT core files and your generated exe into one distributable exe? How can I keep things clean for distribution?

  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: Release folder - 1 .exe file only

    that depends on what you mean by 'clean'

    you should read the following:

    http://doc.qt.nokia.com/4.6/deployment.html

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Release folder - 1 .exe file only

    Yes, you can do that. If you want a single file, you'll have to recompile Qt, and read the license agreement. Single file distributions are under different conditions than exe+dll distributions.

  6. #6
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    287
    Thanks
    23
    Thanked 31 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Release folder - 1 .exe file only

    A standalone exe file requires Qt to be build statically, you can find how to do this in the wiki, althought you would have to have a comercial license to deploy it like that (search this forum cause there are some good post's about license models). if you just playing with Qt, for non comercial aplications, is better to keep Qt dinamically linked, and use some deployment software, like InstallCreator, or other like that, that will join exe and the dlls in a setup file, easely distributed.
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  7. #7
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    2

    Default Re: Release folder - 1 .exe file only

    Quote Originally Posted by john_god View Post
    A standalone exe file requires Qt to be build statically, you can find how to do this in the wiki, althought you would have to have a comercial license to deploy it like that (search this forum cause there are some good post's about license models). if you just playing with Qt, for non comercial aplications, is better to keep Qt dinamically linked, and use some deployment software, like InstallCreator, or other like that, that will join exe and the dlls in a setup file, easely distributed.
    Install Creator, good thanks

Similar Threads

  1. What are the dependencies that a .exe file needs??
    By srohit24 in forum Installation and Deployment
    Replies: 5
    Last Post: 5th March 2009, 17:25
  2. Replies: 3
    Last Post: 11th September 2008, 20:08
  3. Compile of big generated file in release stuck
    By Equilibrium in forum Qt Programming
    Replies: 4
    Last Post: 31st December 2007, 12:25
  4. Replies: 2
    Last Post: 27th October 2007, 18:16
  5. copy and run a .exe file in another system
    By sabeesh in forum Installation and Deployment
    Replies: 3
    Last Post: 22nd August 2007, 10:05

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.