From ac47b1520ce9d60622f28c0be6c22aa1ae1bb15e Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 6 Jan 2016 14:35:18 +0100 Subject: Check for python executable. When building QtQml without having python in PATH the build system will generate an empty RegExpJitTables.h. The linking will then fail because of unresolved external symbols. Task-number: QTBUG-47193 Change-Id: I39abf44bf30abfb4a3209713a1fb07faff7ead63 Reviewed-by: Oswald Buddenhagen --- qtdeclarative.pro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qtdeclarative.pro') diff --git a/qtdeclarative.pro b/qtdeclarative.pro index 9ecfad6f75..0e746c3c65 100644 --- a/qtdeclarative.pro +++ b/qtdeclarative.pro @@ -1,3 +1,10 @@ CONFIG += tests_need_tools examples_need_tools load(qt_parts) +!python_available { + py_out = $$system('python -c "print(1)"') + !equals(py_out, 1): error("Building QtQml requires Python version 2.") + tmp = python_available + CONFIG += $$tmp + cache(CONFIG, add, tmp) +} -- cgit v1.2.3