Commit af1a9207 authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by Eike Ziller
Browse files

QNX: Use correct command for running the SDK installer

Depending on NDK version, the application used for the
SDK installer is different.

Without this, the installation of NDK's is not possible
from within Qt Creator.

Change-Id: I71ba67ccb05d30bcef5b63e7e397e545c5a89e3e
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <>
Reviewed-by: default avatarDavid Kaspar <>
Reviewed-by: default avatarMehdi Fekari <>
Reviewed-by: default avatarRafael Roquetto <>
parent f3292a44
......@@ -287,8 +287,12 @@ QString QnxUtils::qdeInstallProcess(const QString &ndkPath, const QString &optio
if (installerPath.isEmpty())
return QString();
return QString::fromLatin1("%1 -nosplash -application "
"%2 %3 -vmargs -Dosgi.console=:none").arg(installerPath, option, version);
const QDir pluginDir(ndkPath + QLatin1String("/plugins"));
const QStringList installerPlugins = pluginDir.entryList(QStringList() << QLatin1String("*.jar"));
const QString installerApplication = installerPlugins.size() >= 1 ? QLatin1String("")
: QLatin1String("");
return QString::fromLatin1("%1 -nosplash -application %2 "
"%3 %4 -vmargs -Dosgi.console=:none").arg(installerPath, installerApplication, option, version);
QList<Utils::EnvironmentItem> QnxUtils::qnxEnvironment(const QString &sdkPath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment