Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Deployment on windows



  • What a user can do to deploy a qt app in a Windows QtSDK-less machine? Does he have to install all enormous libraries? I tried to compile statically my qt app but I failed.
    Please help me.
    Regards
    Willy



  • The "Deploying an Application on Windows":http://doc.qt.nokia.com/stable/deployment-windows.html page of the docs has the instructions. You must provide all the libs yourself.



  • Thanks very much, I visited that page but I didn't take it right look



  • you just have to copy those libraries needed for your application to run inside your application's directory.
    but first you'll need to compile your application via VS2008.



  • mohsen: What's with VS2008? Because willypuzzle didn't said anything about Visual Studio.
    You need to compile the application with the same compiler you used to compile the framework

    willypuzzle: the runtime for Qt isn't that enormous, usually you don't need the whole framework for your application just copy the modules you used, like for example: QtCore4.dll and QtGui4.dll (they have ~12MB) and the runtime for your C++ compiler (the proper vcredist in case of VS, or mingwm10.dll and libgcc_s_dw2-1.dll in case of MingW)



  • Yes I saw, I compiled all with QtCreator. I didn't have problem with libraries but with plugins. Now I solved.


Log in to reply