From 42cbdb1a86708e2c93d81ac9740cd9fa37a2e61c Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 7 Oct 2016 19:50:02 +0200 Subject: [PATCH] Increase verbosity --- shared/shared.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/shared/shared.cpp b/shared/shared.cpp index 321955b..239c0a2 100644 --- a/shared/shared.cpp +++ b/shared/shared.cpp @@ -878,10 +878,13 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo, // Use qmlimportscanner from QLibraryInfo::BinariesPath QString qmlImportScannerPath = QDir::cleanPath(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlimportscanner"); + LogDebug() << "Looking for qmlimportscanner at" << qmlImportScannerPath; // Fallback: Look relative to the linuxdeployqt binary - if (!QFile(qmlImportScannerPath).exists()) + if (!QFile(qmlImportScannerPath).exists()){ qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner"; + LogDebug() << "Fallback, looking for qmlimportscanner at" << qmlImportScannerPath; + } // Verify that we found a qmlimportscanner binary if (!QFile(qmlImportScannerPath).exists()) { @@ -898,6 +901,15 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo, argumentList.append(qmlDir); } QString qmlImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath); + + // Verify that we found a valid qmlImportsPath + if (!QFile(qmlImportsPath + "/QtQml").exists()) { + LogError() << "Valid qmlImportsPath not found at" << qmlImportsPath; + LogError() << "Possibly your Qt library has the wrong information in qt_prfxpath, e.g., because it was moved since it was compiled"; + return false; + } + + LogDebug() << "Qml2ImportsPath:" << QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath); argumentList.append( "-importPath"); argumentList.append(qmlImportsPath); @@ -944,6 +956,8 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo, qtQuickContolsInUse = true; LogNormal() << "Deploying QML import" << name; + LogDebug() << "path:" << path; + LogDebug() << "type:" << type; // Skip imports with missing info - path will be empty if the import is not found. if (name.isEmpty() || path.isEmpty()) {