windeployqt: Print warning when MinGW runtime cannot be found.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Mon, 8 Jun 2015 09:59:09 +0000 (11:59 +0200)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Mon, 8 Jun 2015 10:12:18 +0000 (10:12 +0000)
Task-number: QTBUG-46458
Change-Id: I102eb6b902e9f59e7abacae611b5ad32dbe64eeb
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
src/windeployqt/main.cpp

index a993765..7f9f6c7 100644 (file)
@@ -933,8 +933,10 @@ static QStringList compilerRunTimeLibs(Platform platform, unsigned wordSize)
     case WindowsMinGW: { // MinGW: Add runtime libraries
         static const char *minGwRuntimes[] = {"*gcc_", "*stdc++", "*winpthread"};
         const QString gcc = findInPath(QStringLiteral("g++.exe"));
-        if (gcc.isEmpty())
+        if (gcc.isEmpty()) {
+            std::wcerr << "Warning: Cannot find GCC installation directory. g++.exe must be in the path.\n";
             break;
+        }
         const QString binPath = QFileInfo(gcc).absolutePath();
         QDir dir(binPath);
         QStringList filters;