SDL system support

Over the last 18 months or so, I’ve written an emulation of the Acorn
Archimedes and RiscPC, downloadable from www.red-squirrel.org. It currently
runs under Windows using DirectX and should easily be portable to linux/mac
etc using SDL.

One of the trickier bits of machine emulation is actually getting at the
real hardware on a PC/mac. Win32 makes this extraordinarly difficult for
quite valid reasons. Linux I hope may be better in this respect, I don’t
know. Anyhow, one of the things I’d like to try is to use a very cut down
version of linux, with the absolute minimum amount of kernel/OS to support
my emulation so I can boot the emulator from a zip/cdrom say without booting
into another OS first.

Is there a list of the minimum linux packages/drivers/whatever that are
needed for SDL or do I just junk things until it stops working?

Cheers,
Graeme

Graeme Barnes wrote:

Is there a list of the minimum linux packages/drivers/whatever that are
needed for SDL or do I just junk things until it stops working?

Well, part of the problem is that you can configure SDL to use
only what you want it to use. Or to use something differently, e.g.
don’t use X11 but nanoX or something else. And each of the resulting
libs will need different libs/drivers/whatever.

There may be general answers for a few configurations, let’s see if
the NG/ML can give some answers. Another way is to check what the
so-object itself reveals from the ELF-embedded information. objdump
is your friend here, e.g.

guidod at pc3:/usr/local/lib > objdump -p libSDL-1.2.so.0.0.0 | grep NEEDED
NEEDED libm.so.6
NEEDED libesd.so.0
NEEDED libaudiofile.so.0
NEEDED libX11.so.6
NEEDED libXext.so.6
NEEDED libXxf86vm.so.1
NEEDED libXxf86dga.so.1
NEEDED libdl.so.2
NEEDED libc.so.6

and
root at pc3:/usr/local/lib > rpm -q -f /lib/libm.so.6
shlibs-2.1.3-141

well, … milea… ma. v…y

– guido http://guidod.4t.com
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(±) s+a- y++ 5++X-

Well, part of the problem is that you can configure SDL to use
only what you want it to use. Or to use something differently, e.g.
don’t use X11 but nanoX or something else. And each of the resulting
libs will need different libs/drivers/whatever.

Yes, you can configure a ‘minimal’ version of SDL that uses the framebuffer
console and /dev/dsp directly so it only depends on libc and libpthread.

Check out: configure --help

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

On Thu Jun 28, 2001 at 03:10:23PM -0700, the boisterous
Graeme Barnes
wrote to me:

know. Anyhow, one of the things I’d like to try is to use a very cut down
version of linux, with the absolute minimum amount of kernel/OS to support
my emulation so I can boot the emulator from a zip/cdrom say without booting
into another OS first.

Try LinuxFromScratch (http://www.linuxfromscratch.org) and look for the bootcd
hint.

so long
Thomas–
___ Obviously we do not want to leave zombies around.
/\ - W. Richard Stevens
( ^ >
/ \ Thomas Krennwallner
(
/) Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B