From f68883d2b52c32af38a71362e70a00168e486987 Mon Sep 17 00:00:00 2001 From: fwcd Date: Sun, 19 Nov 2023 20:40:51 +0000 Subject: [PATCH] Install libraries for host architecture too --- scripts/install-ubuntu-deps | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install-ubuntu-deps b/scripts/install-ubuntu-deps index d2fedf4..7706861 100755 --- a/scripts/install-ubuntu-deps +++ b/scripts/install-ubuntu-deps @@ -94,7 +94,9 @@ target_deps=( mesa-common-dev ) if [ -n "$target_deb_arch" ]; then - sudo apt-get install -y "${target_deps[@]/%/:$target_deb_arch}" + # We need the packages for the host architecture too, since some packages + # (e.g. Qt) have to be built for the host too during cross compilation + sudo apt-get install -y "${target_deps[@]}" "${target_deps[@]/%/:$target_deb_arch}" else sudo apt-get install -y "${target_deps[@]}" fi