Results 1 to 4 of 4

Thread: How to deploy Qt project on Windows

  1. #1
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default How to deploy Qt project on Windows

    Hi,

    I want deploy my first Qt app on windows. For this I have run the project in release mode in Qt creator and tried to execute the exe in the release folder.But I get the error that says missing dll. May be I can add that dll but from my googling I see that I will be keep asked for more dll's. So can any one tell me what is the proper way to do this.

    Thank You,
    Baluk

  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 to deploy Qt project on Windows

    You need to 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_PATH\mingw\bin

    And some (depending on what modules you use) for Qt runtime, for example: QtCore4.dll and QtGui4.dll (these are for release build of your application, those for debug have a d in their name and are bigger because they have more debugging information) you can find those in QT_INSTALL_PATH\qt\bin
    Note: the dll's from QT_INSTALL_PATH\bin won't work with your application, you need the ones from QT_INSTALL_PATH\qt\bin.

  3. #3
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to deploy Qt project on Windows

    Hi,

    Thank you for very quiet detailed explanation and now I can able to run the exe in release folder. I have an other doubt that how can I use this release folder to install it on any other computer ( not just by clicking on the exe file from the folder) and Can I use this folder in Linux also. I would be grateful for any suggestions.

  4. #4
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to deploy Qt project on Windows

    hi balu,

    I have an other doubt that how can I use this release folder to install it on any other computer ( not just by clicking on the exe file from the folder)
    u need make the package and deployment of ur own. many opensources are available to do tat.

    Can I use this folder in Linux also
    The exe compiled under windows won't work in linux.
    u need to make different exe ,which compiled under linux.
    similar to windows , u can put all the reqd libs and exe in same folder.
    but for the deployment in another pc , u need to make ur own.

    hope it helps
    Bala

Similar Threads

  1. How to deploy the imageviewer example in windows?
    By fork in forum Installation and Deployment
    Replies: 4
    Last Post: 11th March 2010, 10:52
  2. Compile and deploy to Windows CE
    By Luc4 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 16th February 2010, 02:42
  3. Deploy on Windows XP ?
    By Anti in forum Newbie
    Replies: 3
    Last Post: 24th September 2009, 21:19
  4. Deploy Qt project
    By navi1084 in forum Installation and Deployment
    Replies: 3
    Last Post: 9th October 2008, 19:39
  5. How to deploy Qt-dlls for windows
    By niko in forum Installation and Deployment
    Replies: 5
    Last Post: 18th March 2007, 18:11

Tags for this Thread

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.