From b4c412d995635898d069a0dbb8b1b90713cc24d7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 21 Feb 2022 16:58:37 +0200 Subject: [PATCH 43/43] configure: Hint about --with-qtver when failing to find Qt5/Qt6 See osdn #43958 Signed-off-by: Marko Lindqvist --- configure.ac | 6 ++++-- m4/qt-client.m4 | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index bc0a02dbee..65e2363338 100644 --- a/configure.ac +++ b/configure.ac @@ -1283,7 +1283,8 @@ if test "x$req_fcmp_qt" = "xyes" || fi if test "x$req_fcmp_qt" = "xyes" && test "x$fcmp_qt" != "xyes" ; then - AC_MSG_ERROR([Cannot build Qt-version of freeciv-modpack as requested]) + AC_MSG_ERROR([Cannot build Qt-version of freeciv-modpack as requested. +Maybe another --with-qtver value would help?]) fi dnl Cli does not satisfy --enable-fcmp=auto as it's not an gui. @@ -1339,7 +1340,8 @@ if test "x$ruledit" = "xyes" || test "x$ruledit" = "xtest" ; then ruledit=yes ruledit_libs="$ruledit_libs $MWINDOWS_FLAG $ruledit_uuid" elif test "x$ruledit" = "xyes" ; then - AC_MSG_ERROR([$qt_ver not found for building freeciv-ruledit]) + AC_MSG_ERROR([$qt_ver not found for building freeciv-ruledit. +Try with another --with-qtver value?]) fi elif test "x$ruledit" = "xyes" ; then AC_MSG_ERROR([No working C++ compiler found for building freeciv-ruledit]) diff --git a/m4/qt-client.m4 b/m4/qt-client.m4 index d811d58bd1..dba7da9e67 100644 --- a/m4/qt-client.m4 +++ b/m4/qt-client.m4 @@ -17,7 +17,8 @@ if test "x$gui_qt" = "xyes" || test "x$client" = "xall" || gui_qt_cxxflags=$FC_QT_CXXFLAGS gui_qt_libs="$FC_QT_LIBS $MWINDOWS_FLAG" else - qt_fail_reason="Missing $qt_ver development files" + qt_fail_reason="Missing $qt_ver development files. +Try with another --with-qtver value?" fi else -- 2.34.1