Page 1 of 19 12311 ... LastLast
Results 1 to 10 of 185

Thread: HOWTO: Install zsnes with libao support on AMD64

  1. #1
    Join Date
    Jan 2006
    Beans
    2,031

    Arrow HOWTO: Install zsnes with libao support on AMD64

    This guide will install ZSNES 1.51 with libao support for AMD64/i386 versions of Gutsy & Feisty. Old Guide that this replaces: http://ubuntuforums.org/showthread.p...ighlight=zsnes
    F.A.Q.
    • What is ZSNES - Official site: http://www.zsnes.com/
      ZSNES is a emulator that let's you play games from the Super Nintendo Entertainment System on your computer. You will need to use images of the original SNES cartridges called ROM's, which are in most cases illegal to have.
      DO NOT ASK HOW TO GET ROM'S, it is against the rules of this forum. The emulator itself is not illegal. DO NOT ASK ME FOR ROM'S BY PM OR EMAIL!!
      Some advantages of playing SNES games on your computer vs playing them on the original console:
      • Ability to "Save State", anywhere in a game
      • Patch games "On the fly", to be able to play games that were released only in japan with English Translations (i.e. Star Ocean, Tales of Phantasia etc), or to play custom mod's of existing games (i.e. Legend of Zelda - Parallel Worlds)
      • You can apply filters to make your screen look more like a NTSC television, or even update the graphics to make games look better than the original.
      • No more blowing on carts!
    • Why ZSNES 1.51 with libao? - 1.51 does not support netplay, but it is the latest version of ZSNES to date. Libao was added and greatly improves sound IMO on AMD64 systems, and possible i386 as well (note: you must run zsnes with -ad oss at least once in order to use libao).
    • What's wrong with the 1.51 version in the main gutsy repository? - It's only for i386, and gutsy users have been experiencing a "can not create mcop directory" error. My version AFAIK does not have this problem. See the following threads for more detail:
      http://ubuntuforums.org/showthread.php?t=584105
      http://ubuntuforums.org/showthread.php?t=571666
    • pSX, mupen64, and/or ZSNES segfault and I can't figure out why! - rcsdnj reports that the "Data execute prevention" on x86_64 processors may be the cause of a segmentation fault. I haven't tried this myself, so proceed with caution:
      Quote Originally Posted by rcsdnj View Post
      To stop , I first did it by going to the BIOS and disabled the "XD Technology" option. Since I didn't want to disable it globally, I looked for a way to disable and I found this:

      - install prelink package ( sudo aptitude install prelink - I'm not sure about the package name, I'm not in my Ubuntu machine right now)

      - run the executable you want to disable the XD technology by using:

      execstack -s program_name

      I'm not saying this is the solution for the problem, but it's maybe a good test.


    How to install ZSNES using my repository (Easiest Way):
    Copy the following into Applications > Accessories > Terminal.
    Step 1 - Add the repository to your source list.
    Gutsy AMD64/i386 Users:
    Code:
    echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list 
    wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add - 
    sudo apt-get update
    Feisty AMD64/i386 Users:
    Code:
    echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list 
    wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add - 
    sudo apt-get update
    Step 2 - Install zsnes
    AMD64 Users:
    Code:
    sudo apt-get install zsnes32
    i386 Users:
    Code:
    sudo apt-get install zsnes
    Step 3 - Use libao w/OSS for better sound quality (may fix scratchy sound)
    Launch zsnes from Terminal with this command once, so it will use the OSS driver from now on:
    AMD64 Users:
    Code:
    zsnes32 -ad oss
    i386 Users:
    Code:
    zsnes -ad oss

    How to Uninstall:
    AMD64 Users:
    Code:
    sudo apt-get remove zsnes32
    sudo apt-get autoremove
    i386 Users:
    Code:
    sudo apt-get remove zsnes
    sudo apt-get autoremove



    How to compile ZSNES 1.51 (Advanced Users):
    Note: this is for i386 users. I have not figured out how to compile a 32-bit executable from a 64-bit machine, so if AMD64 users wish to compile, follow the below instructions on a 32-bit machine.
    Install needed packages:
    Code:
    sudo apt-get install nasm build-essential libsdl1.2-dev zlib1g-dev libpng12-dev libncurses5-dev libao-dev
    Download zsnes and unpack it:
    Code:
    cd ~/
    wget -c http://superb-west.dl.sourceforge.net/sourceforge/zsnes/zsnes151src.tar.bz2
    tar xvf zsnes151src.tar.bz2
    cd zsnes_1_51/src/
    Configure and compile:
    Code:
    ./configure --with-x --enable-libao --enable-release
    make
    i386 users only:
    Code:
    sudo make install
    AMD64 users only:
    Code:
    sudo cp ./zsnes ~/Desktop/zsnes_custom
    AMD64 users only: Copy the zsnes_custom on your desktop to your AMD64 machine, and install the following package.
    Code:
    sudo apt-get install ia32-libs
    To uninstall compiled version:
    Code:
    cd ~/zsnes_1_51/src/
    sudo make uninstall
    cd ../../
    sudo rm -Rv ~/zsnes_1_51/
    sudo rm zsnes151src.tar.bz2
    Last edited by dfreer; May 13th, 2008 at 02:54 AM.

  2. #2
    Join Date
    Oct 2007
    Location
    Delta, British Columbia
    Beans
    114
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Install zsnes with libao support on AMD64

    Wow, this thread is awesome! Thanks mate for making this link, as it helped me solve a problem that I have been having for a long time with Snes! How did you go about making something like this? (Your own repository and your own way of getting Snes to work on 64 bit machines?) I just find it really intriguing, that's all! ^-^
    AMD Athlon64 X2 4000+, Asus M2N-E, Asus GeForce 8600GT, Kingston PC2-5300 (1024x2) CL5, BenQ FP93GW

    Linux - because Apples can be eaten and Windows can be broken by Penguins.

  3. #3
    Join Date
    Feb 2007
    Location
    Massachusetts
    Beans
    83
    Distro
    Ubuntu

    Re: HOWTO: Install zsnes with libao support on AMD64

    I got the answer to your issue with configs.

    See: http://board.zsnes.com/phpBB2/viewtopic.php?t=10680

  4. #4
    Join Date
    Jan 2006
    Beans
    2,031

    Re: HOWTO: Install zsnes with libao support on AMD64

    Yeah, zsnes devs don't, shall we say, exactly share the spirit of the ubuntu forum But hey, it's a free emulator and one of the best for snes, so who cares if they are a bit crotchety? At least they responded to the OP.

    Anyways, onto the actual subject matter, I do believe I ran into that --with-zconf-path=PATH option before, I do not recall what my problem was but I evidently never got it working:
    http://ubuntuforums.org/showpost.php...&postcount=102
    It may have been a problem between the keyboard and the chair So I will try again soon, and by soon I mean sometime before Duke Nukem Forever ships. Eh, as long as I don't forget!

    @ShadowMKII - You're welcome, so it works good for you, with no scratchy sound? Hmm, I might put up a page about my history on my server here, as the whole story is rather long. The short answer is, I wanted to learn about linux. The packages, web server, and repository are all just "test subjects", me messing with things here and there learning new stuff.
    I also used to be quite an avid gamer, although now I don't play nearly as much as I'd like to.

  5. #5
    Join Date
    Oct 2007
    Location
    Delta, British Columbia
    Beans
    114
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Install zsnes with libao support on AMD64

    Sounds exactly like me, to tell you the truth! (Except that I have Linux for about a month and know very little in comparison!) ^-^; So far, the sound is quite good at the 32000Hz (I think) sampling rate, though it is somewhat scratchy at times. That is perfectly fine though, seeing as how all emulators have been like that! Honestly, I do not mind at all, seeing as how I am able to play games that are golden even without perfect sound!!
    AMD Athlon64 X2 4000+, Asus M2N-E, Asus GeForce 8600GT, Kingston PC2-5300 (1024x2) CL5, BenQ FP93GW

    Linux - because Apples can be eaten and Windows can be broken by Penguins.

  6. #6
    Join Date
    Jan 2006
    Beans
    2,031

    Re: HOWTO: Install zsnes with libao support on AMD64

    Try running zsnes once from the command line, like so:
    Code:
    zsnes32 -ad oss
    That'll switch from using ALSA to using libao with OSS, which makes sound on my system perfect. Subsequent uses, even from the menu, should all use OSS until you switch it again.

  7. #7
    Join Date
    Oct 2007
    Location
    Delta, British Columbia
    Beans
    114
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Install zsnes with libao support on AMD64

    That definitely did the trick! Thank you for that! ^-^

    Just wondering, but what makes the sound so different between ALSA and OSS?
    AMD Athlon64 X2 4000+, Asus M2N-E, Asus GeForce 8600GT, Kingston PC2-5300 (1024x2) CL5, BenQ FP93GW

    Linux - because Apples can be eaten and Windows can be broken by Penguins.

  8. #8
    Join Date
    Feb 2007
    Location
    Los Angeles, CA, USA
    Beans
    188
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Install zsnes with libao support on AMD64

    beautiful. thank you.

  9. #9
    Join Date
    Jan 2006
    Beans
    2,031

    Re: HOWTO: Install zsnes with libao support on AMD64

    Actually, one of the zsnes dev's nach has a great article on his blog about it (great read btw, wish he posted a bit more), located here:
    http://insanecoding.blogspot.com/200...-in-linux.html
    I believe he was the one who incorporated libao to the linux build as well:
    http://board.zsnes.com/phpBB2/viewto...3899894eb1403b

    @unebaguettesvp
    You're welcome!
    Last edited by dfreer; October 28th, 2007 at 05:21 AM.

  10. #10
    Join Date
    Oct 2007
    Location
    Delta, British Columbia
    Beans
    114
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Install zsnes with libao support on AMD64

    Excellent! Thanks mate!
    AMD Athlon64 X2 4000+, Asus M2N-E, Asus GeForce 8600GT, Kingston PC2-5300 (1024x2) CL5, BenQ FP93GW

    Linux - because Apples can be eaten and Windows can be broken by Penguins.

Page 1 of 19 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •