Results 1 to 10 of 185

Thread: HOWTO: Install zsnes with libao support on AMD64

Threaded View

  1. #1
    Join Date
    Jan 2006

    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:
    • What is ZSNES - Official site:
      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:
    • 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:
    echo "deb gutsy main" | sudo tee -a /etc/apt/sources.list 
    wget -O- | sudo apt-key add - 
    sudo apt-get update
    Feisty AMD64/i386 Users:
    echo "deb feisty main" | sudo tee -a /etc/apt/sources.list 
    wget -O- | sudo apt-key add - 
    sudo apt-get update
    Step 2 - Install zsnes
    AMD64 Users:
    sudo apt-get install zsnes32
    i386 Users:
    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:
    zsnes32 -ad oss
    i386 Users:
    zsnes -ad oss

    How to Uninstall:
    AMD64 Users:
    sudo apt-get remove zsnes32
    sudo apt-get autoremove
    i386 Users:
    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:
    sudo apt-get install nasm build-essential libsdl1.2-dev zlib1g-dev libpng12-dev libncurses5-dev libao-dev
    Download zsnes and unpack it:
    cd ~/
    wget -c
    tar xvf zsnes151src.tar.bz2
    cd zsnes_1_51/src/
    Configure and compile:
    ./configure --with-x --enable-libao --enable-release
    i386 users only:
    sudo make install
    AMD64 users only:
    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.
    sudo apt-get install ia32-libs
    To uninstall compiled version:
    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.


Posting Permissions

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