How to compile the Fuse ZX Spectrum Emulator on the Raspberry Pi (SDL)
- UPDATED 13th May, 2015 – Updated for the Raspberry Pi 2.
- UPDATED 27th April, 2015 – Old WoS links are dead. Links updated!
Getting Fuse running on the Raspberry Pi is relatively simple – just follow the steps below.
I am running Raspbian, but these instructions should work on other Debian based distributions. This guide will compile Fuse to run with SDL. You do not need to start X Windows to run Fuse in SDL mode.
I suggest you connect to your Raspberry Pi over SSH. You can use a terminal application like PuTTY under Windows, ssh on *nix or terminal on OS X. This will save you typing in all the commands below. It’s a lot easier to copy and paste!
Connect to your Pi, and install the following packages.
$ sudo apt-get install libaudiofile-dev libsdl1.2-dev
Create a folder inside /home/pi called src. You will download the FUSE and libspectrum files to this folder, extract the source code, and compile it. You need to rename the file downloaded from SourceForge.
$ cd /home/pi $ mkdir src $ cd src $ wget https://qa.debian.org/watch/sf.php/fuse-emulator/libspectrum-1.0.0.tar.gz $ wget http://downloads.sourceforge.net/project/fuse-emulator/fuse/188.8.131.52a/fuse-184.108.40.206a.tar.gz?r=http%3A%2F%2Ffuse-emulator.sourceforge.net%2F&ts=1345580383&use_mirror=dfn $ mv fuse-220.127.116.11a.tar.gz\?r\=http\:%2F%2Ffuse-emulator.sourceforge.net%2F fuse-18.104.22.168a.tar.gz
Now, extract, compile and install libspectrum. This takes about 5 minutes on the original model B, and about 3 on the Pi 2.
$ tar xvfz libspectrum-1.0.0.tar.gz $ cd libspectrum-1.0.0 $ ./configure $ make $ sudo make install
Configure ld.so.conf so it can see the libspectrum libraries.
$ sudo nano /etc/ld.so.conf.d/libspectrum.conf Put the following line into nano, save and exit. /usr/local/lib $ sudo ldconfig
Now extract, compile and install FUSE. This can take up to 30 minuets on the original Pi, so be patient! Much quicker on the Pi 2.
$ cd .. $ tar xvfz fuse-22.214.171.124a.tar.gz $ cd fuse-126.96.36.199a $ ./configure --with-sdl $ make $ sudo make install
Thats it – FUSE should have compiled successfully. Run the command fuse to start the emulator. Copy over your TZX, TAP, DSK files etc over SFTP using a client like Filezilla.
Feel free to paste a comment below to let me know how you get on, or to let me know if there are any mistakes in my instructions.