ZSNES 1.51b Experimental Linux Binaries

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

ZSNES 1.51b Experimental Linux Binaries

Post by Nach »

These will only work if you have the right libraries installed.
Since these are from Debian Unstable you probably don't, but what the heck.

Makes use of:
SDL
OpenGL
curses
libao
Possibly others.

Code: Select all

ldd zsnes
        linux-gate.so.1 =>  (0xffffe000)
        libz.so.1 => /var/chroot/sid-ia32/usr/lib/libz.so.1 (0xf7f1f000)
        libSDL-1.2.so.0 => /var/chroot/sid-ia32/usr/lib/libSDL-1.2.so.0 (0xf7e6e000)
        libpng12.so.0 => /var/chroot/sid-ia32/usr/lib/libpng12.so.0 (0xf7e4b000)
        libncurses.so.5 => /var/chroot/sid-ia32/lib/libncurses.so.5 (0xf7e1a000)
        libao.so.2 => /var/chroot/sid-ia32/usr/lib/libao.so.2 (0xf7e15000)
        libGL.so.1 => /var/chroot/sid-ia32/usr/lib/libGL.so.1 (0xf7db3000)
        libstdc++.so.6 => /var/chroot/sid-ia32/usr/lib/libstdc++.so.6 (0xf7cc6000)
        libm.so.6 => /var/chroot/sid-ia32/lib/libm.so.6 (0xf7ca1000)
        libgcc_s.so.1 => /var/chroot/sid-ia32/lib/libgcc_s.so.1 (0xf7c94000)
        libc.so.6 => /var/chroot/sid-ia32/lib/libc.so.6 (0xf7b5e000)
        libpthread.so.0 => /var/chroot/sid-ia32/lib/libpthread.so.0 (0xf7b47000)
        libdl.so.2 => /var/chroot/sid-ia32/lib/libdl.so.2 (0xf7b43000)
        libdirectfb-1.0.so.0 => /var/chroot/sid-ia32/usr/lib/libdirectfb-1.0.so.0 (0xf7adf000)
        libfusion-1.0.so.0 => /var/chroot/sid-ia32/usr/lib/libfusion-1.0.so.0 (0xf7ad7000)
        libdirect-1.0.so.0 => /var/chroot/sid-ia32/usr/lib/libdirect-1.0.so.0 (0xf7ac3000)
        libvga.so.1 => /var/chroot/sid-ia32/usr/lib/libvga.so.1 (0xf7a64000)
        libX11.so.6 => /var/chroot/sid-ia32/usr/lib/libX11.so.6 (0xf7978000)
        libXext.so.6 => /var/chroot/sid-ia32/usr/lib/libXext.so.6 (0xf796a000)
        libXxf86vm.so.1 => /var/chroot/sid-ia32/usr/lib/libXxf86vm.so.1 (0xf7965000)
        libXdamage.so.1 => /var/chroot/sid-ia32/usr/lib/libXdamage.so.1 (0xf7961000)
        libXfixes.so.3 => /var/chroot/sid-ia32/usr/lib/libXfixes.so.3 (0xf795c000)
        libdrm.so.2 => /var/chroot/sid-ia32/usr/lib/libdrm.so.2 (0xf7953000)
        /lib/ld-linux.so.2 (0xf7f6a000)
        libx86.so.1 => /var/chroot/sid-ia32/lib/libx86.so.1 (0xf7950000)
        libXau.so.6 => /var/chroot/sid-ia32/usr/lib/libXau.so.6 (0xf794d000)
        libXdmcp.so.6 => /var/chroot/sid-ia32/usr/lib/libXdmcp.so.6 (0xf7947000)
Updated for new scheduling in Linux, affecting libao threads.
Also made source compatible with GCC 4.3

http://zsnes.sf.net/zsnes-1.51b-i586.tar.gz
http://zsnes.sf.net/zsnes-1.51b-amdfam10.tar.gz
http://zsnes.sf.net/zsnes-1.51b-athlon64.tar.gz
http://zsnes.sf.net/zsnes-1.51b-athlon64-sse3.tar.gz
http://zsnes.sf.net/zsnes-1.51b-core2.tar.gz
http://zsnes.sf.net/zsnes-1.51b-pentium4.tar.gz
http://zsnes.sf.net/zsnes-1.51b-pentium-m.tar.gz

http://zsnes.sf.net/zsnes151bsrc.tar.bz2


If you use 64 bit Linux and get a crash on startup, see this thread: http://board.zsnes.com/phpBB3/viewtopic.php?f=2&t=12339
Last edited by Nach on Mon Dec 15, 2008 2:36 am, edited 2 times in total.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
DancemasterGlenn
Veteran
Posts: 637
Joined: Sat Apr 21, 2007 8:05 pm

Post by DancemasterGlenn »

Thanks for this.
I bring the trouble.
OmegaX
Rookie
Posts: 14
Joined: Sat Nov 04, 2006 4:04 am

Post by OmegaX »

Just tested on Arch Linux and so far so good, thanks :D
neo_bahamut1985
-Burninated-
Posts: 871
Joined: Mon Sep 10, 2007 11:33 pm
Location: Unspecified

Post by neo_bahamut1985 »

Hmm...real shame there aren't any 1.51b builds for Windows yet..
俺はテメエの倒す男だ! 宜しく! お前はもう死んでいる...
DancemasterGlenn
Veteran
Posts: 637
Joined: Sat Apr 21, 2007 8:05 pm

Post by DancemasterGlenn »

Maybe because this fixes a problem not exhibited in windows builds because of recent changes to linux audio setup? So impatient...
I bring the trouble.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

neo_bahamut1985 wrote:Hmm...real shame there aren't any 1.51b builds for Windows yet..
Sure there is, it's called v1.51, and you can download it from www.zsnes.com
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
neo_bahamut1985
-Burninated-
Posts: 871
Joined: Mon Sep 10, 2007 11:33 pm
Location: Unspecified

Post by neo_bahamut1985 »

Ah, crap..my bad. Thought it was a beta build after Zsnes 1.51.
俺はテメエの倒す男だ! 宜しく! お前はもう死んでいる...
RedDwarf
Rookie
Posts: 37
Joined: Thu Jan 27, 2005 7:28 pm

Post by RedDwarf »

I though about packaging it for openSUSE and saw this patch in the actual 1.51(a) package:

Code: Select all

--- src/initc.c  
+++ src/initc.c 2007/08/17 14:20:26  
@@ -2621,7 +2621,7 @@  
     }  
   
     sramsavedis = 0;  
-    memcpy(&sndrot, regsbackup, 3019);  
+    //memcpy(&sndrot, regsbackup, 3019);  
   
     if (yesoutofmemory) { asm_call(outofmemfix); }  
     asm_call(GUIDoReset);
...makes any sense or better I remove it?


Nach wrote:Possibly others.
Commands you will not need never again HOWTO :-p

From my 1.51(a) build:
- Needed libs
$ readelf -d /usr/bin/zsnes | grep NEEDED
0x00000001 (NEEDED) Shared library: [libz.so.1]
0x00000001 (NEEDED) Shared library: [libSDL-1.2.so.0]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libpng12.so.0]
0x00000001 (NEEDED) Shared library: [libncurses.so.5]
0x00000001 (NEEDED) Shared library: [libao.so.2]
0x00000001 (NEEDED) Shared library: [libGL.so.1]
0x00000001 (NEEDED) Shared library: [libstdc++.so.6]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
- All libs marked like needed are really needed
$ ldd -u -r /usr/bin/zsnes
Unused direct dependencies:
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

RedDwarf wrote:I though about packaging it for openSUSE and saw this patch in the actual 1.51(a) package:

Code: Select all

--- src/initc.c  
+++ src/initc.c 2007/08/17 14:20:26  
@@ -2621,7 +2621,7 @@  
     }  
   
     sramsavedis = 0;  
-    memcpy(&sndrot, regsbackup, 3019);  
+    //memcpy(&sndrot, regsbackup, 3019);  
   
     if (yesoutofmemory) { asm_call(outofmemfix); }  
     asm_call(GUIDoReset);
...makes any sense or better I remove it?
That breaks start up state on subsequent games or on making movies, I have no idea why someone would do that.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
ScarletWytch

You are...

Post by ScarletWytch »

you are a GOD!!!!

thank you!!!

Cheers!
elyk1212
New Member
Posts: 6
Joined: Fri Aug 01, 2008 8:08 am

Post by elyk1212 »

Thanks for the binaries! The only versions I could find (of 1.51b) that supported aRts.

One small issue though I am having. It does not seem to give up control of the mouse back to X11 when I exit from fullscreen mode:

http://board.zsnes.com/phpBB2/viewtopic ... 896#173896
paulguy
Zealot
Posts: 1076
Joined: Sat Jul 02, 2005 2:01 am
Contact:

Post by paulguy »

Man, why would you use arts for zsnes? Doesn't that cause terrible lag? Arts always lags like a second or 2 for me.
elyk1212
New Member
Posts: 6
Joined: Fri Aug 01, 2008 8:08 am

Post by elyk1212 »

paulguy wrote:Man, why would you use arts for zsnes? Doesn't that cause terrible lag? Arts always lags like a second or 2 for me.
No, it doesn't cause lag for me. Please see my post link for the reason. Basically, There is an issue with automatic ALSA mixing on the (assuming) /dev/dsp oss emulation for me (within Mandriva 2008.0). Zsnes using SDL and others using bare ALSA (with out a sound server) lock the sound device. I have tried implementing software mixing as indicated on Alsa documents (using .asoundrc etc), but no luck yet.

Anyhow, I have found as a work around, if every application uses a aRts it will properly mix (and time slice) access to the sound device(s).
F-3582
Rookie
Posts: 40
Joined: Fri Jan 21, 2005 5:17 pm

Post by F-3582 »

I just tested it with...gasp... Pulseaudio.

Setting Pulse as the default engine produces latencies of a almost a second, while accessing it via SDL (which uses Pulse, as well), makes it work like a charm.
Temüjin

Post by Temüjin »

I registered just to say thank you.
gllt
NO VOWELS >:[
Posts: 753
Joined: Sun Aug 31, 2008 12:59 pm
Location: ALABAMA
Contact:

Post by gllt »

Temüjin wrote:I registered just to say thank you.
Congratulations, because I totally forgot why I registered.
Dr. Kylstein
New Member
Posts: 3
Joined: Sun Dec 14, 2008 12:51 am

Post by Dr. Kylstein »

ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event2. Make sure you have read permissions to it.
Unable to poll /dev/input/event6. Make sure you have read permissions to it.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
Segmentation fault
I tried the core2 and i586 binaries on Ubuntu 8.10 x86-64.

Edit: tried sudo:
ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
ManyMouse: 2 mice detected.
Using ManyMouse for:
Mouse 0: Microsoft Microsoft IntelliMouse� Explorer
Mouse 1: Macintosh mouse button emulation
Segmentation fault
dfreer
Lurker
Posts: 139
Joined: Fri May 11, 2007 5:28 am

Post by dfreer »

Dr. Kylstein wrote: I tried the core2 and i586 binaries on Ubuntu 8.10 x86-64.

Edit: tried sudo:
I like how ubuntu users like to throw sudo in front of every command just hoping it will somehow *work*.

Try this:
http://board.zsnes.com/phpBB2/viewtopic ... =75#137039

Helpful hint: on 64-bit Ubuntu systems, 32-bit libs are generally in /usr/lib32, and 64-bit libs are in /usr/lib/. The files you will want to system link are in /usr/lib32/ao/plugins-2/ I believe.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

A thread to elaborate on what dfreer said: http://board.zsnes.com/phpBB2/viewtopic.php?t=12339
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
alexeena

Post by alexeena »

What is the best linux distribution for learning to use many? First, a bit about my background.. I currently work as a Network Engineer, mainly with Cisco routers/switches and VPN devices. I am throughly familiar with Windows, both as a workstation and server, and have one more test to go to complete my MCSE. However, I have no real experience with Linux, and feel like this is both a hole in my personal knowledge and in my resume. :) I can do basic user stuff both from a command line and in Xwindows, but have no real command of it.
_________________
affiliateelite ~ affiliateelite.com ~ adgooroo ~ adgooroo.com
Last edited by alexeena on Sun Apr 12, 2009 7:06 am, edited 1 time in total.
gllt
NO VOWELS >:[
Posts: 753
Joined: Sun Aug 31, 2008 12:59 pm
Location: ALABAMA
Contact:

Post by gllt »

alexeena wrote:What is the best linux distribution for learning to use many? First, a bit about my background.. I currently work as a Network Engineer, mainly with Cisco routers/switches and VPN devices. I am throughly familiar with Windows, both as a workstation and server, and have one more test to go to complete my MCSE. However, I have no real experience with Linux, and feel like this is both a hole in my personal knowledge and in my resume. :) I can do basic user stuff both from a command line and in Xwindows, but have no real command of it.
Semi-OT, but heres my opinions

Debian (I like Debian Unstable generally, but now that 5 is out, eh. Etch was too old'd for me.)

I used to recommend Arch but since they're dropping i686 the jokes on me, but it was only ever recommended by me because it technically wasn't debian, that being said debian is often recommended I believe because apt-get is kinda simple

rpms are kind of argh to deal with compared to debs but I wont diss fedora or anything just because of that

so Debian Unstable
Slackware (If you want a different view of everything after you've been debian-ized)
Ubuntu (If for some reason you want debian to be even easier but you also want to be ridiculed a lot)
FreeBSD (Technically not Linux, but its a good learning experience)

lots of live ones like xPUD, puppy linux, slitaz, tiny core linux, etc

LFS should be a good learning experience, but you tend to learn more about things that werent intended to be taught with that massacre

I'm about to try Kwort Linux, oh and last but not least I can recommend that you try stuff like grml, thats a good live cd enviornment to play with imo

and try some other oses like Haiku (beos reimplementation), ReactOS (nt kernel reimplementation), Syllable (Linux/Unix based beos similar), Solaris, Nexenta (Solaris Kernel, Ubuntu Userland I think), Parsix (Debian Based), menuet and kolibiri are asm based novelty oses imo

damn small linux is a good first time enviornment to play around with, it was my first
Killa B
♥ Love Freak FlonneZilla ♥
Posts: 111
Joined: Sun Apr 01, 2007 12:59 am
Location: USA
Contact:

Post by Killa B »

gllt wrote:I used to recommend Arch but since they're dropping i686 the jokes on me,
Dude that was an April Fool's joke. http://www.archlinux.org/news/441/
gllt
NO VOWELS >:[
Posts: 753
Joined: Sun Aug 31, 2008 12:59 pm
Location: ALABAMA
Contact:

Post by gllt »

Killa B wrote:
gllt wrote:I used to recommend Arch but since they're dropping i686 the jokes on me,
Dude that was an April Fool's joke. http://www.archlinux.org/news/441/
"the jokes on me,"
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

SliTaz Linux and some other lightweight Linux distro (not DSL) that IIRC JDartliff posted seem pretty good too..

I'd recommend Gentoo if you REALLY wanna learn some Linux (eg: setting up boot configs, config/compile the kernel, etc) but they like to stick little hacks in their portage software that tend to break said software (even ZSNES ended up being a victim of it.) Your best choice here would be Linux From Scratch to do this sort of thing.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
DiGitalX

Post by DiGitalX »

thanks alot the core2 version works under ubuntu itrepid
Post Reply