掌機 - Gaviar (小志掌機) - Build DingooEmu



參考資訊:
https://github.com/AloysHF/DingooEmu
https://github.com/aquazzzzz/dingooemu-web

$ cd
$ wget https://github.com/steward-fu/website/releases/download/gaviar/DingooEmu_sdl.tar.gz
$ tar xvf DingooEmu_sdl.tar.gz
$ cd DingooEmu
$ export SYSROOT=/opt/gaviar/riscv64-Gaviar-linux-gnu/sysroot
$ export PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
$ export PKG_CONFIG_PATH="$SYSROOT/usr/lib/pkgconfig:$SYSROOT/usr/share/pkgconfig"
$ export PKG_CONFIG_ALLOW_CROSS=1

$ mkdir -p .cargo
$ cat > .cargo/config.toml <<'EOF'
[target.riscv64gc-unknown-linux-gnu]
linker = "/opt/gaviar/bin/riscv64-Gaviar-linux-gnu-gcc"
EOF

$ cargo build --target riscv64gc-unknown-linux-gnu --release -p dingooemu --no-default-features --features sdl12-frontend

執行

# SDL_NOMOUSE=1 SDL_VIDEODRIVER=fbcon ./dingoo-emu 7days.app -s 1