1

I have developed an QML application (Mingw). I want to deploy this app to other Windows system. My instructions are:

  • Building app in Release mode
  • Run windeployqt.exe for necessery dlls and folders.
  • Adding missing dll.

Problem is, when I start my app, it seems to work in background and no window appears. I have wasted a lot of time on this.

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
Aykar Kr.
  • 21
  • 5
  • You are still missing some dlls/files. That's a common issue. Have a look to [this wiki](https://wiki.qt.io/Deploy_an_Application_on_Windows). – BaCaRoZzo Jan 14 '16 at 08:26
  • 2
    As I remember is such situation, copying QTPATH/qml/QtQuick* into application folder helped me. Check if Qt QML files were copied on destination machine. – folibis Jan 14 '16 at 10:44
  • You are missing QML's files. You must deploy /qml/* to the your app install path, the following will deploy the QML's files: windeployqt --release --qmldir /qml yourApp.exe – Devopia Jan 14 '16 at 12:04
  • ı am using dependency Walker.This shows me a lot of dll missing like : API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.dll etc.... – Aykar Kr. Jan 14 '16 at 12:41
  • Ok! And you must install MS Visual C++ Redistributable Package on your target machine also. Check your Qt version. [here download](https://www.microsoft.com/en-us/search/DownloadsDrillInResults.aspx?q=The+Microsoft+Visual+C%2b%2b+Redistributable+Package+&cateorder=2_5_1&site=) – Devopia Jan 15 '16 at 08:31
  • @devopia, he compiled with mingw, that should be not needed. @ OP, look at the dependencies listed [here](http://stackoverflow.com/a/25056475/2538363). They should suffice. – BaCaRoZzo Jan 15 '16 at 08:35
  • @BaCaRoZzo Oh! no, they should be needed on target machine. – Devopia Jan 15 '16 at 08:46
  • @Devopia don't get me wrong. You are right about the dependency. :) Considering that even Notepad depends on `msvcrt.dll`, on recent releases of Win, it's a bit pointless though. That said, here the problem is clearly related to the missing Qt dlls (as also you have pointed out) and it's a common issue with quick applications which can be easily solved following the linked answer. – BaCaRoZzo Jan 15 '16 at 08:59
  • I am also build apps in Win 8, – Aykar Kr. Jan 16 '16 at 11:02
  • @AykarKr. API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.dll etc. are false results in Dependency Walker, so you should ignore them. Have you followed the instructions in the Wiki page that BaCaRoZzo gave you? https://wiki.qt.io/Deploy_an_Application_on_Windows – JKSH Jan 16 '16 at 14:07

1 Answers1

0

I know it's an old question. For anyone to get here looking for an anwser, try using:

windeployqt.exe . --qmldir <\project\folder\>
albertTaberner
  • 1,969
  • 1
  • 26
  • 35