Wednesday, December 11, 2013

Hey! Ho! Let's Go! Compiling Desmume 0.9.10 on Fedora 19 / 20

Hell-o again, Jeremy here. Today we are gonna try our hand at compiling the fabulous Nintendo DS/DSi emulator, Desmume. The target platform is Fedora Linux x86/x86-64 19 / 20 and version 0.9.10 (actually SVN) of Desmume. 

For this little jaunt we'll need to download the SVN source as the vanilla 0.9.10 source release would not compile under Fedora (at least not for me). It's easy to do, just follow the below commands. In addition you'll need your basic build environment such as c++ compilers, make and what not. 

Start off by installing Desmume's dependencies (one command):
sudo yum install svn SDL* gtk2-devel glade-devel soundtouch-devel mesa-libOSMesa-devel agg-devel gtkglext-devel lua-devel intltool
Next off we'll want to download the source from Desmume's SVN repository (one command):
svn co desmume
 Now lets cd into the Desmume directory, which contains the source code (one command):
cd desmume
OK, still with me? This is the part where the magic happens... the compile! (3 commands):
CXXFLAGS='-O2 -march=native -mfpmath=sse' ./configure --prefix=/usr
Once the make finishes you'll want to install your baby into it's final resting place. (one command):
sudo make install
 And there you have it. A fresh steaming pile of Nintendo DS emulator. Load up a game ROM (one you legally own, of course) and give it a shot!