Instruct others how to compile bsnes on your OS

Anything else related to bsnes goes there.
Locked
wertigon
Rookie
Posts: 46
Joined: Sat Aug 07, 2004 7:20 pm

Instruct others how to compile bsnes on your OS

Post by wertigon »

Allright, the purpose of this thread is to provide how to compile bsnes under various flavors. Add your own below.
wertigon
Rookie
Posts: 46
Joined: Sat Aug 07, 2004 7:20 pm

Post by wertigon »

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

Code: Select all

cd downloads/
Step 4: Create a new directory

Code: Select all

mkdir bsnes
Step 5: Move the bsnes packages to the new directory

Code: Select all

mv bsnes_v037.tar.bz2 bsnes
Step 6: Enter the new directory

Code: Select all

cd bsnes
Step 7: Untar the package

Code: Select all

tar jxfv bsnes_v037.tar.bz2
Step 8: Enter the src directory

Code: Select all

cd src
Step 9: Install the proper packages

Code: Select all

sudo apt-get install build-essential libgtk2.0-dev libsdl1.2-dev libopenal-dev libasound-dev libao-dev libxv-dev
Step 10: Run make

Code: Select all

make platform=x compiler=gcc enable_gzip=true enable_jma=true
Step 11: Run bsnes to make sure it works

Code: Select all

../bsnes
Step 12: Install it

Code: Select all

sudo make install
DataPath
Lurker
Posts: 128
Joined: Wed Jul 28, 2004 1:35 am
Contact:

Post by DataPath »

as of 0.38, you need to

Code: Select all

sudo apt-get install libpulse-dev libxtst-dev
Killa B
♥ Love Freak FlonneZilla ♥
Posts: 111
Joined: Sun Apr 01, 2007 12:59 am
Location: USA
Contact:

Post by Killa B »

Arch Linux

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
With Yaourt:

Code: Select all

yaourt -S bsnes
:) The bsnes package maintainer is named vEX, and he's very good with keeping up with the latest version at all times.
ZH/Franky

Post by ZH/Franky »

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 :wink:
(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.
byuu

Post by byuu »

Killa B wrote:The bsnes package maintainer is named vEX, and he's very good with keeping up with the latest version at all times.
Hi, thank you for stopping by! :D
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.
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?
Sure.

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.
ZH/Franky

Post by ZH/Franky »

Hey byuu, thanks for the tips.
EDIT:
Just tried it now. It works.
ZH/Franky

Post by ZH/Franky »

There is another question that I have:
Where can I find both source code and binaries for older versions of bsnes?
Dullaron
Lurker
Posts: 199
Joined: Mon Mar 10, 2008 11:36 pm

Post by Dullaron »

Updated on March 18, 2009

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
Shin_Gouki
Rookie
Posts: 21
Joined: Mon Jul 18, 2005 2:16 pm
Location: BW, Germany

Post by Shin_Gouki »

Mac OSx?
byuu

Post by byuu »

Shin_Gouki wrote:Mac OSx?
Good luck :P

It should compile fine, but there won't be any video / audio / input drivers :(
Shin_Gouki
Rookie
Posts: 21
Joined: Mon Jul 18, 2005 2:16 pm
Location: BW, Germany

Post by Shin_Gouki »

Whats with the guy who build the 0.038 release?
Where did he get all that from?
IMO QT 4.5 should run very fine with OSX, what else is needed?
Locked