Since SDL ( http://www.libsdl.org/ ) has been ported to Qtopia
(which is what the Sharp Zaurus Linux-based PDA uses), I decided
I’d try to get Stella ( http://stella.atari.org/ ), the Atari 2600
video game system emulator for Unix, running under SDL (which will mean
in our hands via the Zaurus :^) )
Anyway, I successfully created an SDL target for Stella (based on
Bradford (Stella’s author)'s great X11 code). It’s a little limited
It only handles graphics and input - not sound
(sound works under Linux/Unix - just handled by Stella’s “SndUnix” code)
It ignores requests to resize the window
It doesn’t do fullscreen
It currently forces 16bpp mode
Most of these issues are because I was lazy (it WAS about 3-4am last night)
and was mostly interested in building it for the Zaurus PDA.
Unfortunately, although it works great on the desktop, and should work
very well on the Zaurus (it can do 240x320, rotated-90-degrees-sideways),
I was unable to cross-compile it because the Embedix compiler toolchain
lacks “libstdc++” - references to "#include " cause it to barf.
In the interest of having people look over it for me (someone in the
#zaurus IRC channel on irc.openprojects.net is right now), I’ve placed
my changes online:
It’s just two files - my “mainSDL.cxx” (which should be dropped in
Stella 1.1’s “src/ui/” directory, in a new “sdl/” subdir.), and
my hacked version of “src/build/makefile”, which includes the
"sdl", “zaurus” and “mainSDL.o” targets.
Feel free to poke around! Bradley - please consider integrating the SDL
port to the main Stella tree. SDL’s a great cross-platform library,
and will help let Stella run under Windows, Unix, Linux, Amiga, MacOS,
BeOS and more, all with pretty much one codebase! :^)
If anyone figures out how to get this baby to cross-compile for ARM
(ie, the Zaurus or Qtopia-based, Linux-based iPAQ), PLEASE let me know!
Thanks and enjoy!