tce-load -lwi compiletc git sdl2-dev libepoxy-dev cmake alsa-dev libX11-dev Xlibs squashfs-tools autoconf coreutils bintuils git clone --recursive https://github.com/snes9xgit/snes9x cd snes9x export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" cd unix ./configure make -j8 strip -s ./snes9x mkdir -p /tmp/snes9x-cli_tmp/usr/local/bin mv ./snes9x /tmp/snes9x-cli_tmp/usr/local/bin/snes9x-cli mksquashfs /tmp/snes9x-cli_tmp/ ../../snes9x-cli.tcz