Deploy an QML App in Windows!



  • Hi there! I had just started working on QT and QML for a project!
    I had compiled a sample program with QT5.1 and used dependency walker for solving the dll dependencies!
    While running the exe it asked for more dependencies at last following dll were added

    icudt49.dll
    icuin49.dll
    icuuc49.dll
    libgcc_s_sjlj-1.dll
    libGLESv2.dll
    libstdc++-6.dll
    libwinpthread-1.dll
    Qt5Core.dll
    Qt5Declarative.dll
    Qt5Gui.dll
    Qt5Network.dll
    Qt5Script.dll
    Qt5Sql.dll
    Qt5Widgets.dll
    Qt5XmlPatterns.dll

    Atlast it gave me an VC Runtime error! Any idea how to solve this!


  • Moderators

    VC redistributable not installed? And you need to add QPA plugin for your platform (copy qwindows.dll to plugins/platforms. If I remember the path well, that is ;) ).



  • @sierdzio But I think VC Runtime is required only for deploying apps developed with Qt-VC, but I was using Qt-MinGW


  • Moderators

    Ah yes, you are right. Are you sure you have MinGW build of Qt? You cannot mix libraries build with MSVC with MinGW code (there is no binary compatibility).



  • Yes! Its MinGW build!
    'k! Is there any simple tutorial for deploying QML apps on windows!


  • Moderators

    Hm, it could be that ICU was built with MSVC.

    Anyway, no, I have not encountered a deployment tutorial for Qt5. But search, maybe some good lad has created a wiki for it here on DevNet.



  • Anyway thanks sierdzio!


Log in to reply
 

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