zsnes on OLPC XO
Shawn Moore has posted instructions for installing zsnes on the XO from his blog. I noticed a few typos and here is how I did it. This is a good way to get over any fears of compiling software from source code!
- get “root”
$ su
- install the library source files and compiler
# yum install gcc gcc-c++ make nasm zlib-devel SDL-devel
- leave root mode
# exit
- get the source for zsnes itself:
$ wget http://superb-west.dl.sourceforge.net/sourceforge/zsnes/zsnes151src.tar.bz2
- extract the archived source:
$tar jxvf zsnes151src.tar.bz2
- enter the extracted folder to src…
$ cd zsnes_1_51/src
- configure the compiler
$ ./configure –disable-debugger –disable-opengl
- compile zsnes
$ make
- it’ll take a few minutes to compile then try running it!
$ ./zsnes
enjoy!
If you want to install the program in your system for all users to run, read on…
- get root and make install (this goes quickly)
$ su
# make install
- the program file ends up within /usr/local/bin so lets append the path to our shell. Drop out of root..
# exit
$ nano /home/olpc/.bash_profile
- add :/usr/local/bin to the end of the line that starts with PATH= so it looks like
PATH=$PATH:$HOME/bin:/usr/local/bin
- ctrl-x to exit nano and save
# exit
your current session does not know about the path (the terminal only checks /etc/profile only on startup) so we’ll add it manually for this session
$ PATH=$PATH:/usr/local/bin
$ export PATH
- more information about how the path works can be found HERE (codecoffee.com) zsnes should now be easily run from a users regular prompt:
$ zsnes
it’s up to you to acquire or make roms for this to run. NOTE: using commercial closed roms is not free like GNU, in case you didn’t already know!
EDIT: removed the quotes from the wget step and changed the path configuration to just the olpc user DOH!
February 3rd, 2008 at 3:17 pm
hi, great work, but i had a problem – have you updated your SDL?
when running the ./configure -disable-debugger -disable-opengl step, i get through most of the checking steps (i assume), until i run into:
checking for SDL – version >= 1.2.0… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or lik. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want totedit the sdl-config script: /usr/bin/sdl-config
any thoughts? thanks for any help!
March 20th, 2008 at 6:26 pm
same problem here.. any luck?
March 22nd, 2008 at 11:28 am
Ok, I restored the OLPC to factory settings and the install work.. now how do I get ROMs running on it?
March 22nd, 2008 at 11:08 pm
once znes starts up you can load a rom with the gui menu…
March 23rd, 2008 at 10:35 am
Thanks guys. Running swell.