From df3b88606744fb8e385dc1c536f103a70cc1fe12 Mon Sep 17 00:00:00 2001 From: fedepell Date: Mon, 19 Sep 2016 17:17:39 +0200 Subject: [PATCH] If compiler_cxx was not configured before qt5 then qt5 will try to build applications with an empty compiler which gives very strange errors in the config log. Just check if the compiler is not there and remember the user that compiler_cxx should be configured before qt5. --- waflib/Tools/qt5.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waflib/Tools/qt5.py b/waflib/Tools/qt5.py index 3fb7d194..037c9744 100644 --- a/waflib/Tools/qt5.py +++ b/waflib/Tools/qt5.py @@ -497,6 +497,9 @@ def configure(self): if not has_xml: Logs.error('No xml.sax support was found, rcc dependencies will be incomplete!') + if 'COMPILER_CXX' not in self.env: + self.fatal('No CXX compiler defined: did you forget to configure compiler_cxx first?') + # Qt5 may be compiled with '-reduce-relocations' which requires dependent programs to have -fPIE or -fPIC? frag = '#include \nint main(int argc, char **argv) {return 0;}\n' uses = 'QT5CORE QT5WIDGETS QT5GUI'