August 3, 2011

pflaig pflaig
Lab Rat
2 posts

[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 mingw

My 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.dll

The 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.

3 replies

August 3, 2011

pflaig pflaig
Lab Rat
2 posts

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.

  1. Z:.
  2. │   4GNextGenTerminal.exe
  3. │   libgcc_s_dw2-1.dll
  4. │   mingwm10.dll
  5. │   QtCore4.dll
  6. │   QtDeclarative4.dll
  7. │   QtGui4.dll
  8. │   QtNetwork4.dll
  9. │   QtScript4.dll
  10. │   QtSql4.dll
  11. │   QtSvg4.dll
  12. │   QtXml4.dll
  13. │   QtXmlPatterns4.dll
  14. │   QtWebKit4.dll
  15. │   libssl32.dll
  16. │   libeay32.dll
  17. │   ssleay32.dll
  18. │   phonon4.dll
  19. ├───qml
  20. │   └───4GNextGenTerminal
  21. │           BookingDialog.qml
  22. │           BusinessTrip.qml
  23. │           BusinessTripModel.qml
  24. │           ButtonList.qml
  25. │           ButtonModel.qml
  26. │           dienstgang.svg
  27. │           gehen.svg
  28. │           info.svg
  29. │           Header.qml
  30. │           kalender.svg
  31. │           kommen.svg
  32. │           schmetterling.svg
  33. │           uidemo.qml
  34. │           Webcontent.qml
  35. ├───QtWebKit
  36. │       qmldir
  37. │       qmlwebkitplugin.dll
  38. └───imageformats
  39.         qgif4.dll
  40.         qico4.dll
  41.         qjpeg4.dll
  42.         qmng4.dll
  43.         qsvg4.dll
  44.         qtiff4.dll

August 3, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

If you solved yor problem don’t forget to edit title and add [solved] to it. Thanks.

April 20, 2012

toby520 toby520
Lab Rat
9 posts

hi ! can i ask a simple question? how to import the symbian Component in deployment app

 
  ‹‹ QtCreator vs. Xcode      designer.exe will not launch after compiling libraries ››

You must log in to post a reply. Not a member yet? Register here!