I've recently had to switch to linux and dont want to miss ZSNES, so I tried to get it running.
I'm using the latest version of ubuntu (8.10, 64bit) and downloaded all the libs to get ready to compile but get the following error when trying to 'make':
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
In file included from tools/strutil.cpp:22:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34: error: ‘strncasecmp’ was not declared in this scope
make: *** [tools/strutil.o] Error 1
You can't use zsnes on a 64-bit system, because a lot of the code is in x86 assembler. Maybe you could give bsnes a try? Maybe you could also get snes9x working, too. You'll have to use the command line for the linux version of snes9x, but there is a fork of snes9x that uses GTK (i.e. it has a GUI).
I've read throught he whole thread but it didnt get me any close on fixing my problem. Like I said before these are my first steps using linux :/
I've tried these precompiled 1.5.1 experimental linux binaries but when trying to start ZSNES i get a segmentation fault.
I tried ./configure again and looked through it, there doesnt seem to be anything wrong, except for maybe:
----
checking for initscr in -lpdcurses... no
checking if you want libao support... no
----
b0wter wrote:I've read throught he whole thread but it didnt get me any close on fixing my problem. Like I said before these are my first steps using linux :/
I've tried these precompiled 1.5.1 experimental linux binaries but when trying to start ZSNES i get a segmentation fault.
It's probably a distro provided libs issue for all I know.
I tried ./configure again and looked through it, there doesnt seem to be anything wrong, except for maybe:
----
checking for initscr in -lpdcurses... no
checking if you want libao support... no
----
is that anything to worry about?
You only need one curses lib installed so if you see the other curses lib saying yes, then you're fine. libao support is optional.
If you wish, you can run it without the chroot, just install the 32-bit libs somewhere the system can find them (/usr/lib32) and it will run just fine.
OP: Run ldd on the binary you have downloaded, and if it uses libao create symbolic links from the shared objects in /usr/lib32/ao/plugins-2/* to /usr/lib/ao/plugins-2/, renaming as needed.
I have the exact same problem.
I've used Zsnes for like 8 years but always on windows and i've recently installed Linux OpenSuse 11 (32bit).
I'm new to linux (that means that I don't have any idea of anything )....and when I try to compile zsnes I get the following after the configurations, when I type "make" :
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DNO_PNG -DNCURSES -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
In file included from tools/strutil.cpp:22:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34: error: ‘strncasecmp’ was not declared in this scope
make: *** [tools/strutil.o] Error 1
I'm using the same OS as the OP, and when I try make from either the official or SVN source, I get the following error:
make
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -DNO_DEBUGGER -DNDEBUG -march=i386 -O2 -fomit-frame-pointer -s -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp
tools/fileutil.cpp:1: error: CPU you selected does not support x86-64 instruction set
tools/fileutil.cpp:1: error: CPU you selected does not support x86-64 instruction set
make: *** [tools/fileutil.o] Error 1