Deployment on Windows 7



  • Hi. All my searching for answers is getting me nowhere, so I hope you can help.

    I've made a simple application and now I want to stick all the necessary bits in an .exe file. That's normal, isn't it?

    This seems like the obvious place to go: http://doc.qt.nokia.com/4.4/deployment-windows.html

    Now, it says, "cd C:\path\to\qt".

    Mine looks like this: C:\QtSDK
    After I go there, there are many different directories. I'm not sure what the path should be. I looked for a file called 'configure' or 'configure.exe' but I couldn't find one.

    Erm... any pointers would be appreciated.

    Thanks a lot.


  • Moderators

    Welcome to the forum

    How did you get the SDK to your machine?
    If you have installed the SDK it is already everything done. If you have copied from someone, you need to install it properly. "Best go to":http://qt.nokia.com/downloads were you have the choices.

    You may install the SDK. It propably comes with the qt creator already included.

    I typically download the Qt lib source and do a compilation. There you would need to do a configure.

    so, have you done a proper installation?



  • See "Deploying an Application on Windows":http://doc.qt.nokia.com/latest/deployment-windows.html.

    You have basically two options:

    • Link your application statically: requires you to build static versions of all your dependencies, including Qt and the C++ runtime; usually requires you to buy a commercial Qt license
    • Link your application dynamically: requires you to deploy dependencies along with your application (various threads on how to do this), usually using an "installer":http://developer.qt.nokia.com/wiki/BuildingQtInstallers; usually does not require you to buy a commercial Qt license


  • How have you made a simple application ? (IDE or not , compiler)
    which version of Qt is used ? (your link is about 4.4)
    Give us detail for better help



  • In your case if you are planning to deploy for Windows, the path will be.
    C:\QtSDK1.1.2\Desktop\Qt\4.7.3

    You don't have configure or configure.exe as Qt is already built for your ( and no source is distributed to you) and you can not build it again.

    Choose mingw or msvc2008 depending up on how you are building your application.



  • Thanks for the responses.

    I tried to run the application and it said a certain .dll was missing, so I found it and put that in the 'release' folder. Then there were two more like that. When I had those three, it worked.

    I can do that again in future, but I thought there must be a more simple way.



  • [quote author="BonRouge" date="1313193841"]Thanks for the responses.

    I tried to run the application and it said a certain .dll was missing, so I found it and put that in the 'release' folder. Then there were two more like that. When I had those three, it worked.

    I can do that again in future, but I thought there must be a more simple way.

    [/quote]
    That't the normal way to do it, when you link dynamically you have to ship your .exe with the qt and mingw dll's it depends on. To have just one .exe you will have to build it statically, but you probably also need to acquire a commercial license.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.