Instruct others how to compile bsnes on your OS
Instruct others how to compile bsnes on your OS
Allright, the purpose of this thread is to provide how to compile bsnes under various flavors. Add your own below.
Ubuntu 8.10 (Intrepid Ibex)
Step 1: Download the sources from Byuu's website
Step 2: Open up a terminal
Step 3: Navigate to the folder you saved bsnes to
Step 4: Create a new directory
Step 5: Move the bsnes packages to the new directory
Step 6: Enter the new directory
Step 7: Untar the package
Step 8: Enter the src directory
Step 9: Install the proper packages
Step 10: Run make
Step 11: Run bsnes to make sure it works
Step 12: Install it
Step 1: Download the sources from Byuu's website
Step 2: Open up a terminal
Step 3: Navigate to the folder you saved bsnes to
Code: Select all
cd downloads/
Code: Select all
mkdir bsnes
Code: Select all
mv bsnes_v037.tar.bz2 bsnes
Code: Select all
cd bsnes
Code: Select all
tar jxfv bsnes_v037.tar.bz2
Code: Select all
cd src
Code: Select all
sudo apt-get install build-essential libgtk2.0-dev libsdl1.2-dev libopenal-dev libasound-dev libao-dev libxv-dev
Code: Select all
make platform=x compiler=gcc enable_gzip=true enable_jma=true
Code: Select all
../bsnes
Code: Select all
sudo make install
as of 0.38, you need to
Code: Select all
sudo apt-get install libpulse-dev libxtst-dev
-
- ♥ Love Freak FlonneZilla ♥
- Posts: 111
- Joined: Sun Apr 01, 2007 12:59 am
- Location: USA
- Contact:
Arch Linux
Normal:
With Yaourt:
The bsnes package maintainer is named vEX, and he's very good with keeping up with the latest version at all times.
Normal:
Code: Select all
wget http://aur.archlinux.org/packages/bsnes/bsnes.tar.gz
tar -xzf bsnes.tar.gz
cd bsnes/
makepkg
# The wildcards compensate for different architectures and version numbers
sudo pacman -U bsnes-*.pkg.tar.gz
Code: Select all
yaourt -S bsnes

I would actually like to be able to build a copy of bsnes on Windows, so could someone here post some tips for that too? I understand that this thread is geared towards Linux/BSD (both of which I use, btw), I know how to compile on those two, but Windows I'm not so sure, so a tutorial would be nice.
(It'd be nice to be able to compile to build a copy of bsnes that is optimized for my system).
I understand that you can use Visual C++ or MinGW to compile; whichever produces faster code is ideal, but it would be nice to have a tutorial for both.
PS byuu:
Can't wait to see how the QT interface works out
(EDITED: spelt QT as GT by mistake, so I fixed it)
(It'd be nice to be able to compile to build a copy of bsnes that is optimized for my system).
I understand that you can use Visual C++ or MinGW to compile; whichever produces faster code is ideal, but it would be nice to have a tutorial for both.
PS byuu:
Can't wait to see how the QT interface works out

(EDITED: spelt QT as GT by mistake, so I fixed it)
Last edited by ZH/Franky on Sun Feb 08, 2009 1:03 am, edited 2 times in total.
Hi, thank you for stopping by! :DKilla B wrote:The bsnes package maintainer is named vEX, and he's very good with keeping up with the latest version at all times.
Your instructions are greatly appreciated.
Yes, [vEX] is a great guy. As is belegdol et al. Speaking of which, if anyone wants their distro package linked on the main bsnes download page, please let me know and I'll add it ASAP.
Sure.Larry the Panda wrote:I would actually like to be able to build a copy of bsnes on Windows, so could someone here post some tips for that too?
1) Download and install the latest TDM-GCC:
http://www.tdragon.net/recentgcc/
2) Download and install the latest DirectX SDK:
http://www.microsoft.com/downloads/deta ... B1CCA4865A
3) Copy the DirectX headers (not libraries) to MinGW/include, overwriting the existing files.
4) run bsnes/src/cc.bat.
If you want to build the new Qt interface, do the above with:
3a) Download and install the latest Qt:
ftp://ftp.trolltech.com/qt/source/qt-wi ... -mingw.exe
(You will need 4.5, as yet unreleased, to build a distributable LGPL version.)
3b) Compile the latest Qt:
This is very involved, sadly. You can find instructions elsewhere for building with GCC4.
3c) Modify bsnes/src/ui/Makefile and set qtdir to the root folder of your Qt installation.
Updated on March 18, 2009
bsnes without upx compress. - http://coonstation.googlepages.com/bsne ... pxcompress.
bsnes without upx compress. - http://coonstation.googlepages.com/bsne ... pxcompress.
Last edited by Dullaron on Wed Mar 18, 2009 11:34 am, edited 2 times in total.
Window Vista Home Premium 32-bit / Intel Core 2 Quad Q6600 2.40Ghz / 3.00 GB RAM / Nvidia GeForce 8500 GT
-
- Rookie
- Posts: 21
- Joined: Mon Jul 18, 2005 2:16 pm
- Location: BW, Germany