From 9932984ead5b3e4d20f4fe22867186cabf7a380d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 23 Nov 2011 13:35:31 +0100 Subject: [PATCH] Require correct Qt version to build bat --- bacula/src/qt-console/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 5cd36c1397..baf0f625b1 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-2010 Free Software Foundation Europe e.V. + Copyright (C) 2007-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -37,6 +37,15 @@ #include #include +/* + * We need Qt version 4.6.2 or later to be able to comple correctly + */ +#if QT_VERSION < 0x040602 +#error "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +#error "You need Qt version 4.6.2 or later to build Bat" +#error "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +#endif + MainWin *mainWin; QApplication *app; -- 2.39.5