From 92de9a574fe0547089d91e97dab9d2740c083817 Mon Sep 17 00:00:00 2001 From: Dorinda Bassey Date: Thu, 8 Aug 2024 11:06:38 +0200 Subject: [PATCH] Build and install additional packages for rutabaga_gfx The vhost-device-gpu crate linked here rust-vmm/vhost-device#668 contains rutabaga_gfx and needs some packages and virglrenderer greater that 1.0.0 which is not available in the used ubuntu image, so install the neccessary packages that are available in ubuntu's repositories and for unavailable packages build and install it manually. Signed-off-by: Dorinda Bassey --- build_container.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build_container.sh b/build_container.sh index 20249b6..f4b3eb9 100755 --- a/build_container.sh +++ b/build_container.sh @@ -18,8 +18,8 @@ DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \ libasound2 libasound2-dev \ libepoxy0 libepoxy-dev \ libdrm2 libdrm-dev \ + libgbm1 libgbm-dev libgles2 \ libglm-dev libstb-dev libc6-dev \ - libvirglrenderer-dev libvirglrenderer1 \ debhelper-compat libdbus-1-dev libglib2.0-dev meson ninja-build dbus # cleanup @@ -56,7 +56,7 @@ rustup target add $ARCH-unknown-linux-musl $ARCH-unknown-none cargo install cargo-llvm-cov -# Install aemu, gfxstream, libgpiod and libpipewire (required by vhost-device crate) +# Install aemu, gfxstream, libgpiod, libpipewire and libvirglrenderer (required by vhost-device crate) pushd /opt git clone https://android.googlesource.com/platform/hardware/google/aemu pushd aemu @@ -91,6 +91,14 @@ meson install -C builddir popd rm -rf pipewire-0.3.71 rm pipewire-0.3.71.tar.gz +git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git +pushd virglrenderer +git checkout virglrenderer-1.0.1 +meson setup build +ninja -C build +ninja -C build install +popd +rm -rf virglrenderer popd # dbus-daemon expects this folder