SNES9X super nes emulator - ac-minetest/COMPILING_FOR_RPI4 GitHub Wiki

SNES9X emulator with sound

2 ways to build, A gives more features

A) BUILD USING MESON AND GTK+3:

1.install gtk+3 AND meson build system:

sudo apt-get install libgtk-3-dev meson

2.cd gtk:

meson build --prefix=/usr --buildtype=release --strip

3.cd build:

ninja

4.-→ binary snes9x-gtk

B) MAKE BUILD ( less options, how to enable scaling?…​)

  1. get sources: https://github.com/snes9xgit/snes9x

  2. go to /unix folder and run

    ./configure --enable-sound
  3. run make (around 6 min)

  4. binary will be in same folder, copy it somewhere and run

  5. To get sound working [1]:

    Install alsa-oss:
    	sudo apt install alsa-oss
    and then run game using:
    	aoss ./snes9x OPTIONS.. ROM...

ERRORS with B) : 1.sound not working:

Snes9x 1.60 for unix
ERROR: Failed to open sound device /dev/dsp for writing.
       (Try loading snd-pcm-oss module?)

NOTES: [1] aoss is just a script:

#!/bin/sh

# A simple script to facilitate the use of the OSS compatibility library.
# Usage:
#	aoss <command> <command options and arguments>

if [ -d /proc/asound ]; then
  prefix=/usr
  libdir=${prefix}/lib/arm-linux-gnueabihf
  LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
else
  echo "Warning: /proc/asound not found. Running without ALSA wrapper."
  exec "$@"
fi
exit 1
----------------
⚠️ **GitHub.com Fallback** ⚠️