Raspberry supernintendo emulation, working recipe

After messing around with libretro-snes9x and not getting video through hdmi at all, I tried to compile retroarch and pocketsnes from scratch, ending with a working configuration.

Get retroarch:

$ git clone https://github.com/Themaister/RetroArch.git

Compile:

$ ./configure
$ make

If you get errors like these ones:

CC gfx/vg.c
gfx/vg.c: In function ‘vg_init’:
gfx/vg.c:102:4: error: too many arguments to function ‘vg->driver->update_window_title’
gfx/vg.c: In function ‘vg_frame’:
gfx/vg.c:390:4: error: too many arguments to function ‘vg->driver->update_window_title’

Just edit gfx/vg.c and change update_window_title(true/false) with update_window_title() at those lines mentioned above.

after that:

$ sudo make install

Compiled retroarch is at /usr/local/bin/retroarch

Get pocketsnes:

$ git clone https://github.com/ToadKing/pocketsnes-libretro.git

Compile:

$ make

This Makefile does not have an “install” target, so you have to copy library by hand:

$ sudo cp libretro.so /usr/lib/retroarch-pocketsnes.so

Configure RCB so this binaries are called, for instance:
config.xml

...

/usr/local/bin/retroarch
"%ROM%" -f -c ~/.config/retroarch/retroarch-snes.cfg
...

retroarch-snes.cfg

video_driver = "gl"
libretro_path = "/usr/lib/libretro-pocketsnes.so"
video_fullscreen = true
audio_enable = true
audio_out_rate = 48000
audio_driver = sdl
...

I’ll try with different drivers, but this configuration does work. Sound is not very good, but I’m affraid that, unless I overclock my RPi I will not get much better results. And I want my little berry to last very long…

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s