Skip to content

Commit

Permalink
Build and install packages required by 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 the system library packages for
rutabaga_gfx crate which is not available in the used ubuntu
image, so install the neccessary packages that are available in
ubuntu's repositories while for unavailable packages:
build and install it manually.

Signed-off-by: Dorinda Bassey <[email protected]>
  • Loading branch information
Dorinda Bassey authored and stefano-garzarella committed Aug 1, 2024
1 parent 2dc3b8c commit 2e2e495
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \
libssl-dev tzdata cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev \
libdw-dev binutils-dev libiberty-dev make \
cpio bc flex bison wget xz-utils fakeroot \
cmake cmake-data \
build-essential libjsoncpp25 librhash0 make \
autoconf autoconf-archive automake libtool \
libclang-dev iproute2 \
libasound2 libasound2-dev \
libepoxy0 libepoxy-dev \
libdrm2 libdrm-dev \
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 @@ -51,8 +56,25 @@ rustup target add $ARCH-unknown-linux-musl $ARCH-unknown-none

cargo install cargo-llvm-cov

# Install libgpiod and libpipewire (required by vhost-device crate)
# Install aemu, gfxstream, libgpiod and libpipewire (required by vhost-device crate)
pushd /opt
git clone https://android.googlesource.com/platform/hardware/google/aemu
pushd aemu
git checkout v0.1.2-aemu-release
cmake -DAEMU_COMMON_GEN_PKGCONFIG=ON \
-DAEMU_COMMON_BUILD_CONFIG=gfxstream \
-DENABLE_VKCEREAL_TESTS=OFF -B build
cmake --build build -j
cmake --install build
popd
rm -rf aemu
git clone https://android.googlesource.com/platform/hardware/google/gfxstream
pushd gfxstream
git checkout v0.1.2-gfxstream-release
meson setup host-build/
meson install -C host-build/
popd
rm -rf gfxstream
git clone --depth 1 --branch v2.0 https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
pushd libgpiod
./autogen.sh --prefix=/usr && make && make install
Expand Down

0 comments on commit 2e2e495

Please sign in to comment.