Results 1 to 9 of 9

Thread: How do I make my project executable file

  1. #1
    Join Date
    Jun 2010
    Location
    Thessaloniki, Greece
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How do I make my project executable file

    Hello everyone,

    this is my first post. I am a new Qt user. My first project has just been ready and I would like to ask if I could make it executable in Windows environment. Thanks in advance
    PAOK Thessaloniki

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How do I make my project executable file

    What problems do you have?

    Do you get errors while compile/build or when execute.

  3. #3
    Join Date
    Jun 2010
    Location
    Thessaloniki, Greece
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How do I make my project executable file

    Quote Originally Posted by Zlatomir View Post
    What problems do you have?

    Do you get errors while compile/build or when execute.
    I get no errors, I can normally execute it through Qt Creator. I just want to be able to execute my console application in another computer for example. I can't find any .exe files in the project folder though
    PAOK Thessaloniki

  4. #4
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How do I make my project executable file

    ok, got it

    You can find the exe in your My Documents\Project_Name\Release or Debug //If you didn't change the path where you saved the project

    But there are some things you need to know:
    1) You must build the release version if you want to run it on another computer (in QtCreator go to menu Build -> set Build Configuration -> select Release)
    2) You will need to "ship" some dll's with your application (if the other PC doesn't have Qt installed, if it does you need to set the environment variables to MingW and Qt)

  5. #5
    Join Date
    Jun 2010
    Location
    Thessaloniki, Greece
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How do I make my project executable file

    Quote Originally Posted by Zlatomir View Post
    ok, got it

    You can find the exe in your My Documents\Project_Name\Release or Debug //If you didn't change the path where you saved the project

    But there are some things you need to know:
    1) You must build the release version if you want to run it on another computer (in QtCreator go to menu Build -> set Build Configuration -> select Release)
    2) You will need to "ship" some dll's with your application (if the other PC doesn't have Qt installed, if it does you need to set the environment variables to MingW and Qt)
    Nearly done,

    I did the first step but when tried to execute the 1st_try.exe (that's how I named me first app) I got the warning: .... missing mingwm10.dll file.... Qt is installed in this computer! Should I keep those dlls in the same folder ? and where are those dll files??
    PAOK Thessaloniki

  6. #6
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How do I make my project executable file

    On your computer you can add the environment variables path for Qt and MingW

    Or you can copy the required dll's in the same folder with your application.exe

    You need at least two dll's for MingW runtime:
    mingwm10.dll and libgcc_s_dw2-1.dll
    you can find this two in the Qt_install_folder\mingw\bin

    and if you used some Qt stuff (maybe you didn't use in console application but you will use with GUI ones) you find those dll's in: Qt_install_folder\qt\bin

  7. The following user says thank you to Zlatomir for this useful post:

    theios_nikos (4th June 2010)

  8. #7
    Join Date
    Jun 2010
    Location
    Thessaloniki, Greece
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How do I make my project executable file

    Quote Originally Posted by Zlatomir View Post
    On your computer you can add the environment variables path for Qt and MingW

    Or you can copy the required dll's in the same folder with your application.exe

    You need at least two dll's for MingW runtime:
    mingwm10.dll and libgcc_s_dw2-1.dll
    you can find this two in the Qt_install_folder\mingw\bin

    and if you used some Qt stuff (maybe you didn't use in console application but you will use with GUI ones) you find those dll's in: Qt_install_folder\qt\bin
    Ok, i copied the dlls in the same folder, plus the QtCore4.dll (i was asked to) and now I get the warning that: Insert point _ZN16QCoreApplicationC1ErPPc of the procedure cannot be found in the dynamic connection library QtCore4.dll
    PAOK Thessaloniki

  9. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How do I make my project executable file

    You probably copied the wrong QtCore4.dll. You should copy the one from "qt" subfolder of where the SDK is installed. The other one is in a different version and is meant only for running QtCreator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. The following 2 users say thank you to wysota for this useful post:

    theios_nikos (4th June 2010), Zlatomir (4th June 2010)

  11. #9
    Join Date
    Jun 2010
    Location
    Thessaloniki, Greece
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How do I make my project executable file

    Perfect

    It works !!! Thanks for your help !!!
    PAOK Thessaloniki

Similar Threads

  1. Replies: 5
    Last Post: 30th August 2011, 23:21
  2. Replies: 5
    Last Post: 15th June 2010, 07:42
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. How to Create Executable file for my QT application
    By c_srikanth1984 in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 04:02
  5. Replies: 1
    Last Post: 14th February 2008, 07:14

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.