I downloaded ZSNES via apt a little while ago after being dissatisfied with the Linux port of SNES9x (mostly due to the inability to map your own keyboard settings). When I ran ZSNES, it was so ridiculously slow compared to it's Windows version and especially so considering it's written in assembly. I figured it might just be the debian compiling of it or something, so I downloaded the source code to try to compile it myself. The install.txt file that comes with it says I need and need to do the following:
Code:
Linux/SDL/POSIX port:
I assume the standard development tools are installed (gcc, make, ...)
You'll also need :
- SDL (Simple DirectMedia Layer) : check www.libsdl.org to grab SDL 1.2.0 or
later. If you are using rpm packages, don't
forget the -devel package.
- NASM v0.98.39 : http://nasm.sf.net/
- zlib : http://www.info-zip.org/pub/infozip/zlib/
it is probably already installed on your
system, maybe you are just missing the
development headers. Check in the
packages available with your distribution
or go to the page above
- libpng : http://www.libpng.org/
You might also need libpng, ZSNES will compile without
PNG support but I have found doing so to make ZSNES
unstable for some weird reason. If you don't have
libpng, either get it and install it or pass the
--without-png option to the 'configure' script.
Then to build the executable, go to the src directory and type:
sh ./autogen.sh && gmake && gmake install
Note: you require root to install zsnes to the the default (/usr/local/*)
directory
Also Note: libpng (optional) needs to be recent, or zsnes will not use it
I have all these and I did the instructions, but no dice it stops on configuring. Here's the output:
Code:
Generating build information using aclocal and autoconf...
./autogen.sh: line 6: sdl-config: command not found
aclocal: couldn't open directory `/share/aclocal': No such file or directory
configure.in:27: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:61: error: possibly undefined macro: AM_PATH_SDL
configure.in:62: error: possibly undefined macro: AM_PATH_ZLIB
configure.in:65: error: possibly undefined macro: AM_PATH_LIBPNG
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2919: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'
./configure: line 2919: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'
I'm not quite sure what it's saying is wrong. Any ideas?