[solved] Deploy qt qml application
-
I have some big problems getting all needed DLL’s together to deploy a qt-qml application.
Everything is working fine in Qt Creator if I run my application as debug or release configuration,
but if I copy the application to another PC that has no Qt installed it is not fully running.Some more details:
Operating System Windows 7 64bit
QtSDK 4.7.3 mingwMy qt-qml application is using the webkit plugin, and here I have the most problems, the qmlwebkitplugin.dll cannot be found, but it is in the path.
file:///Z:/usr/pflaig/4GNextGenTerminal-Demo/qml/4GNextGenTerminal/Webcontent.qml:2:1: plugin cannot be loaded for module "QtWebKit":
Cannot load library Z:/usr/pflaig/4GNextGenTerminal-Demo/QtWebKit/qmlwebkitplugin.dll: Das angegebene Modul wurde nicht gefunden.Here’s the structure of my deploy folder:
Z:.
│ 4GNextGenTerminal.exe
│ libgcc_s_dw2-1.dll
│ mingwm10.dll
│ QtCore4.dll
│ QtDeclarative4.dll
│ QtGui4.dll
│ QtNetwork4.dll
│ QtScript4.dll
│ QtSql4.dll
│ QtSvg4.dll
│ QtXml4.dll
│ QtXmlPatterns4.dll
│ QtWebKit4.dll
│
├───qml
│ └───4GNextGenTerminal
│ BookingDialog.qml
│ BusinessTrip.qml
│ BusinessTripModel.qml
│ ButtonList.qml
│ ButtonModel.qml
│ dienstgang.svg
│ gehen.svg
│ info.svg
│ Header.qml
│ kalender.svg
│ kommen.svg
│ schmetterling.svg
│ uidemo.qml
│ Webcontent.qml
│
├───QtWebKit
│ qmldir
│ qmlwebkitplugin.dll
│
└───imageformats
qgif4.dll
qico4.dll
qjpeg4.dll
qmng4.dll
qsvg4.dll
qtiff4.dllThe complete application is running except the webkit part. Any ideas what I’m doing wrong?
The webkit plugin is from C:\QtSDK\Desktop\Qt\4.7.3\mingw\imports\QtWebKit.Thanks a lot.
-
Found the solution by myself:
It seems I forgot to add some important dll (at least phonon4.dll),
the changed directory structure below is now working.@
Z:.
│ 4GNextGenTerminal.exe
│ libgcc_s_dw2-1.dll
│ mingwm10.dll
│ QtCore4.dll
│ QtDeclarative4.dll
│ QtGui4.dll
│ QtNetwork4.dll
│ QtScript4.dll
│ QtSql4.dll
│ QtSvg4.dll
│ QtXml4.dll
│ QtXmlPatterns4.dll
│ QtWebKit4.dll
│ libssl32.dll
│ libeay32.dll
│ ssleay32.dll
│ phonon4.dll
│
├───qml
│ └───4GNextGenTerminal
│ BookingDialog.qml
│ BusinessTrip.qml
│ BusinessTripModel.qml
│ ButtonList.qml
│ ButtonModel.qml
│ dienstgang.svg
│ gehen.svg
│ info.svg
│ Header.qml
│ kalender.svg
│ kommen.svg
│ schmetterling.svg
│ uidemo.qml
│ Webcontent.qml
│
├───QtWebKit
│ qmldir
│ qmlwebkitplugin.dll
│
└───imageformats
qgif4.dll
qico4.dll
qjpeg4.dll
qmng4.dll
qsvg4.dll
qtiff4.dll
@ -
If you solved yor problem don't forget to edit title and add [solved] to it. Thanks.