mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-05 14:09:35 +00:00
fix path to qmake
This commit is contained in:
parent
a690d3e3f2
commit
ad8de35234
@ -1134,7 +1134,7 @@ QString ConfigParser::getPathFrmoQmakeLine(const QString &in) const {
|
|||||||
bool ConfigParser::initQmakePrivate(const QString &qmake) {
|
bool ConfigParser::initQmakePrivate(const QString &qmake) {
|
||||||
QFileInfo info(qmake);
|
QFileInfo info(qmake);
|
||||||
|
|
||||||
QuasarAppUtils::Params::log("initialize qt dirs for ." + info.absoluteFilePath(),
|
QuasarAppUtils::Params::log("initialize qmake for ." + info.absoluteFilePath(),
|
||||||
QuasarAppUtils::Debug);
|
QuasarAppUtils::Debug);
|
||||||
|
|
||||||
QString basePath = info.absolutePath();
|
QString basePath = info.absolutePath();
|
||||||
@ -1157,6 +1157,9 @@ bool ConfigParser::initQmakePrivate(const QString &qmake) {
|
|||||||
QString debianQtRoot = QString("/usr/lib/%0/qt%1").
|
QString debianQtRoot = QString("/usr/lib/%0/qt%1").
|
||||||
arg(neededPlatform).arg(qtVersion);
|
arg(neededPlatform).arg(qtVersion);
|
||||||
|
|
||||||
|
if (DeployCore::isSnap()) {
|
||||||
|
debianQtRoot = DeployCore::snapRootFS() + debianQtRoot;
|
||||||
|
}
|
||||||
|
|
||||||
if (!setQtDir(debianQtRoot)) {
|
if (!setQtDir(debianQtRoot)) {
|
||||||
QuasarAppUtils::Params::log("Failed to initialize Qt directories",
|
QuasarAppUtils::Params::log("Failed to initialize Qt directories",
|
||||||
@ -1310,6 +1313,9 @@ bool ConfigParser::setQtDir(const QString &value) {
|
|||||||
|
|
||||||
QFileInfo info(value);
|
QFileInfo info(value);
|
||||||
|
|
||||||
|
QuasarAppUtils::Params::log("initialize qt dirs for ." + info.absoluteFilePath(),
|
||||||
|
QuasarAppUtils::Debug);
|
||||||
|
|
||||||
if (!QFile::exists(info.absoluteFilePath() + ("/bin"))) {
|
if (!QFile::exists(info.absoluteFilePath() + ("/bin"))) {
|
||||||
QuasarAppUtils::Params::log("get qt bin failed!", QuasarAppUtils::Debug);
|
QuasarAppUtils::Params::log("get qt bin failed!", QuasarAppUtils::Debug);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user