From 9d9192f31b31f3046997711e268bf32a6e9bd28d Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 22 Jul 2017 12:54:03 +0000 Subject: [PATCH] Attempt to fix "not found" error --- tools/linuxdeployqt/shared.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tools/linuxdeployqt/shared.cpp b/tools/linuxdeployqt/shared.cpp index 5d8436f..3ef0ce4 100644 --- a/tools/linuxdeployqt/shared.cpp +++ b/tools/linuxdeployqt/shared.cpp @@ -298,6 +298,14 @@ LddInfo findDependencyInfo(const QString &binaryPath) } foreach (QString outputLine, outputLines) { + + if(outputLine.contains("libQt5")){ + qtDetected = 5; + } + if(outputLine.contains("libQtCore.so.4")){ + qtDetected = 4; + } + // LogDebug() << "ldd outputLine:" << outputLine; if ((outputLine.contains("not found")) && (qtDetectionComplete == 1)){ LogError() << "ldd outputLine:" << outputLine.replace("\t", ""); @@ -984,15 +992,6 @@ DeploymentInfo deployQtLibraries(const QString &appDirPath, const QStringList &a // Find out whether Qt is a dependency of the application to be bundled LddInfo lddInfo = findDependencyInfo(appBinaryPath); - foreach (const DylibInfo dep, lddInfo.dependencies) { - LogDebug() << "dep.binaryPath" << dep.binaryPath; - if(dep.binaryPath.contains("libQt5")){ - qtDetected = 5; - } - if(dep.binaryPath.contains("libQtCore.so.4")){ - qtDetected = 4; - } - } if(qtDetected != 0){