Skip to content

Commit

Permalink
Build and install additional packages for rutabaga_gfx
Browse files Browse the repository at this point in the history
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 <dbassey@redhat.com>
  • Loading branch information
Dorinda Bassey committed Aug 8, 2024
1 parent 2e2e495 commit d163bac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d163bac

Please sign in to comment.