View unanswered posts | View active topics It is currently Wed Apr 26, 2017 2:54 pm



This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
ZSNES crash on startup with libao on Linux x86-64 
Author Message
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3900
Location: Solar powered park bench
Reply with quote
Post ZSNES crash on startup with libao on Linux x86-64
Distros seem to ship broken libao packages for 32 bit compatibility on x86-64.

However to fix them yourself is quite easy.

libao checks for its drivers in: /usr/lib/ao/plugins-2/
A 32 bit libao will check there, and not finding anything it can use, since they're all 64 bit, it will crash.

32 bit libao will install its 32 bit drivers in /usr/lib32/ao/plugins-2/ or some other location on your machine. I for example have them in /var/chroot/sid-ia32/usr/lib/ao/plugins-2/.
You should be able to find them by typing "locate ao/plugins-2" into a terminal.

Once you find them, you have to copy the drivers you're going to use into /usr/lib/ao/plugins-2/, or create a link to them there. Be careful to give the copies/links new names, so you don't overwrite the 64 bit ones.

Here's an example of how to create a symbolic link:
Code:
ln -s /var/chroot/sid-ia32/usr/lib/ao/plugins-2/liboss.a /usr/lib/ao/plugins-2/liboss-32.a

And another:
Code:
ln -s /usr/lib32/ao/plugins-2/libalsa09.so /usr/lib/ao/plugins-2/libalsa09-32.so

Notice I appended -32 to each example so it shouldn't conflict with the name of a 64 bit driver.

Once you link/copy all the drivers you need to /usr/lib/ao/plugins-2/, libao shouldn't crash when ZSNES starts up, and you'll be able to use ZSNES.

If in doubt, symlink all your 32 bit drivers to /usr/lib/ao/plugins-2/.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Mon Dec 15, 2008 2:31 am
Profile WWW
"Your thread will be crushed."
User avatar

Joined: Wed Jul 28, 2004 1:49 am
Posts: 1230
Location: Not in Winnipeg
Reply with quote
Post Re: ZSNES crash on startup with libao on Linux x86-64
Nach wrote:
Code:
ln -s /usr/lib32/ao/plugins-2/libalsa09.so /usr/lib/ao/plugins-2/libalsa09-32.so



If you are using Ubuntu, that is the symbolic link you need.

_________________
<pagefault> i'd break up with my wife if she said FF8 was awesome


Sun Jun 13, 2010 7:22 pm
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.