How to add platforms/plugins (qwindows.dll/QtQuick folder) to a static build?



  • Hello,

    I'm trying to compile a static version of the executable, but some of the required elements always seem to be missing and I don't know how to add them to the executable. As of now I always have to deploy them together with the executable.

    I'm using Qt 5.3.0

    In detail I'm talking about the following files:
    ../platforms/qwindows.dll
    ../QtQuick/ (and all the files in there)
    ../QtQuick.2/ (and all the files in there)

    So now the deployed folder looks like this:
    ../platforms/qwindows.dll
    ../QtQuick/ (and all the files in there)
    ../QtQuick.2/ (and all the files in there)
    ../gallery.exe
    ../libgcc_s_dw2-1.dll
    ../libstdc++-6.dll
    ../libwinpthread-1.dll

    While I'd like it to look just like this:
    ../gallery.exe
    ../libgcc_s_dw2-1.dll
    ../libstdc++-6.dll
    ../libwinpthread-1.dll

    I'd be very thankful if someone could find a solution for this.

    Edit:
    It seems the platforms folder is not needed anymore. Still leaves both of the QtQuick folders.


Log in to reply
 

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