Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created June 2, 2022 20:16
Show Gist options
  • Save konsumer/c95d7d5bc39b71d5d2b6d8539cf767f7 to your computer and use it in GitHub Desktop.
Save konsumer/c95d7d5bc39b71d5d2b6d8539cf767f7 to your computer and use it in GitHub Desktop.

Building raylib app in docker (on another computer) for ArkOS RG351V

I am using a mac M1 (arm64), so I didn't need binfmt-support/qemu-user-static installed.

docker run --platform="linux/arm64/v8" -it --rm -v $(pwd):/workdir -w /workdir ubuntu:eoan bash

cat << EOF > /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu eoan main universe
deb http://old-releases.ubuntu.com/ubuntu eoan-updates main universe
deb http://old-releases.ubuntu.com/ubuntu eoan-security main universe
EOF

apt update
apt install -y gnupg

echo "deb http://deb.odroid.in/go2 bionic main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5360FB9DAB19BAC9
apt update
apt upgrade -y

apt -y install git nano build-essential cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libgles2-mesa-dev libgbm-dev

git clone https://github.com/raysan5/raylib.git
cd raylib/src/
make PLATFORM=PLATFORM_DRM
cd ../examples
make PLATFORM=PLATFORM_DRM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment