Skip to content

Compilation guide (OS X)

Themaister edited this page Sep 1, 2011 · 12 revisions

Compilation on OS X is mostly MacPorts based. Dependencies can be build from MacPorts.

Dependencies

MacPorts installed
pkgconfig
libsdl 1.2 (1.3 devel will not work)
git-core - To pull the sources :D

Optional dependencies

libxml2 - XML shaders and cheat support
freetype - TTF font rendering

Building libsnes

By default XCode ships with GCC 4.2.1 as latest available compiler. This cannot build bSNES libsnes directly, so if you haven't installed GCC 4.5 or better with MacPorts, you have to use the libsnes C++98 repo, instructions here will assume you will use the C++98 port:

git clone git://github.com/Themaister/libsnes.git
cd libsnes
make profile=performance prefix=/opt/local # You can use compatibility or accuracy if desired.
sudo make install prefix=/opt/local

Building SSNES

Standard Unix fare now that the dependencies are in place:

git clone git://github.com/Themaister/SSNES.git
cd SSNES
./configure --prefix=/opt/local # Script will autodetect features. Refer to --help if you want to override anything.
make
sudo make install

Building GUI

If you want to build the GUI, GCC 4.5 or more recent is required, so I hope you have a powerful CPU! :D You'll also need to install qt4-mac from MacPorts. Qt could also be downloaded directly from their home pages and installed that way.

git clone git://github.com/Themaister/SSNES-Phoenix.git
cd SSNES-Phoenix
make

You should now have an SSNES-Phoenix.app which should work. Enjoy! :)

Clone this wiki locally