Warn about systm Qt when encountering Qt in /usr

This commit is contained in:
probonopd
2017-02-27 09:35:39 +01:00
parent b830f1f8cd
commit 5b68f3af59
+9
View File
@@ -806,6 +806,15 @@ DeploymentInfo deployQtLibraries(const QString &appDirPath, const QStringList &a
setenv("LD_LIBRARY_PATH",newPath.toUtf8().constData(),1); setenv("LD_LIBRARY_PATH",newPath.toUtf8().constData(),1);
} }
if(qtLibsPath.startsWith("/usr/")){
LogError() << "Bundling Qt provided by distributions is not yet supported by this tool.";
LogError() << "Please see https://github.com/probonopd/linuxdeployqt/issues/79 and";
LogError() << "submit a Pull Request to implement this.";
LogError() << "In the meantime, use Qt from the Qt Company";
LogError() << "or Qt for /opt from https://launchpad.net/~beineri";
exit(1);
}
if(fhsLikeMode == false){ if(fhsLikeMode == false){
changeIdentification("$ORIGIN/lib/" + bundleLibraryDirectory, applicationBundle.binaryPath); changeIdentification("$ORIGIN/lib/" + bundleLibraryDirectory, applicationBundle.binaryPath);
} else { } else {