From 4ef778fff846c2ec7b1c79645b4bdf1a11ebf999 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Sep 2015 22:55:13 +0530 Subject: [PATCH] Better error message when pkg-config not found --- setup/build_environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/build_environment.py b/setup/build_environment.py index fbf68b5dfb..4c72873eec 100644 --- a/setup/build_environment.py +++ b/setup/build_environment.py @@ -38,6 +38,8 @@ QMAKE = os.environ.get('QMAKE', QMAKE) PKGCONFIG = find_executable('pkg-config') PKGCONFIG = os.environ.get('PKG_CONFIG', PKGCONFIG) +if islinux and not PKGCONFIG: + raise SystemExit('Failed to find pkg-config on your system. You can use the environment variable PKG_CONFIG to point to the pkg-config executable') if iswindows: import win32api