Skip to content

Commit

Permalink
Install libraries for host architecture too
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Nov 30, 2023
1 parent b34e404 commit f68883d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install-ubuntu-deps
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f68883d

Please sign in to comment.