diff --git a/kiwixbuild/buildenv.py b/kiwixbuild/buildenv.py index 8e766dc..fa7991b 100644 --- a/kiwixbuild/buildenv.py +++ b/kiwixbuild/buildenv.py @@ -32,7 +32,11 @@ class NeutralEnv: self.git_command = self._detect_command("git") self.make_command = self._detect_command("make") self.cmake_command = self._detect_command("cmake") - self.qmake_command = self._detect_command("qmake", required=False) + self.qmake_command = self._detect_command( + "qmake", + required=False, + default=[["qmake"], ["qmake-qt5"]], + ) def detect_platform(self): _platform = platform.system() diff --git a/kiwixbuild/dependencies/base.py b/kiwixbuild/dependencies/base.py index dbe5ef2..1aceb3a 100644 --- a/kiwixbuild/dependencies/base.py +++ b/kiwixbuild/dependencies/base.py @@ -493,7 +493,7 @@ class QMakeBuilder(MakeBuilder): def _configure(self, context): context.try_skip(self.build_path) command = [ - "qmake", + *neutralEnv("qmake_command"), *self.configure_options, *self.env_options, self.source_path,