How to install snes9x from the GitHub repository?
How I might install snes9x on Ubuntu from the GitHub repository?
There's no apt-get install command I can do. There seem to be two possible Linux compatible version of the program (GTK or X11)
Do we have to clone the repository and compile from the source? Is there a *.deb file already?
2 Answers
Binaries
There are several methods to obtain snes9x in binary form:
Пet FlatPak version of Snes9x (the easiest way):
sudo apt-get install flatpak flatpak remote-add --if-not-exists flathub flatpak install flathub com.snes9x.Snes9xGet snes9x from site listed on Downloads page by visiting link to snes9x_1.60-1_amd64.deb
Download snes9x latest binary from Cirrus-CI:
sudo apt install libportaudio2 libminizip1 cd ~/Downloads wget tar -xf snes9x-gtk-432fc08498b33190a41ae659c3c5fccbeb5b8b3e.txz cd snes9x ./snes9x-gtkGet RetroArch with snes9x plugin from official repository by
sudo add-apt-repository multiverse sudo apt-get install retroarch libretro-snes9xor from libretro PPA:
sudo add-apt-repository ppa:libretro/testing sudo apt-get install retroarch libretro-snes9x
Source
If you really know the reason to install from source you can follow below method (based on AUR PKGBUILD and snes9x Compiling wiki page):
sudo apt-get install build-essential git meson cmake \
libgtk2.0-dev libgtk-3-dev libsdl2-dev glslang-dev portaudio19-dev libminizip-dev
cd ~/Downloads/
git clone
cd snes9x/
git submodule update --init shaders/SPIRV-Cross
cd gtk
meson build --prefix=/usr/local --buildtype=release --strip
cd build
ninja
sudo ninja install 1 I had some troubles despite N0rbert very helpful answer, I list the steps that got it right (ubuntu 18.04), right after cloning from source:
git submodule update --init
sudo apt-get install libsdl2-dev libgtkmm-3.0-dev libasound-dev minizip
pip3 install meson
echo "export PATH=\"`python3 -m site --user-base`/bin:$PATH\"" >> ~/.bashrc
source ~/.bashrc
cd gtk && meson build --prefix=/usr/local --buildtype=release --strip
cd build
ninja
sudo ninja installTwo reasons:
- The version of meson installed through sudo-apt get is too low
- other submodules to update --init