ZSNES is a GPL licensed emulator of the Super Famicom and Super Nintendo Entertainment System (SNES) video game systems. Large part of ZSNES is written in assembly. Fortunately it works under GNU/Linux. Debian has a zsnes package, but unfortunately only for i386. Binary package is not available for AMD64. So? Lets build one!
Single look at BTS reveal patch for building on AMD64 (bug #402104). There is another bug that prevent any builds (bug #459033) and it is related to RTTI. All those problem (and other minor issues) are fixed in package I have prepared.
Here comes installation instruction.
$ dget http://www.burghardt.pl/debian/zsnes_1.510-1.2.dsc
$ dpkg-source -x zsnes_1.510-1.2.dsc
Go to zsnes-1.510 directory:
$ cd zsnes-1.510
# apt-get build-dep zsnes
# dpkg -i zsnes_1.510-1.2_amd64.deb
Now we are ready to run it. Beware software (“indirect”) rendering in OpenGL. It is a common problem with mixed 32/64-bit systems. Set environment variable LIBGL_DEBUG to verbose and run zsnes.
If you see error message like:
libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: wrong ELF class: ELFCLASS64)
Try to set LIBGL_DRIVERS_PATH:
$ export LIBGL_DRIVERS_PATH=/emul/ia32-linux/usr/lib/dri
Error should disappear and ZSNES should use OpenGL hardware rendering. Enjoy best SNES emulator on best PC architecture!