LinuxPPC success?

[njh at crayfish test]$ ./graywin
Segmentation fault

Grrr. Can you give me a login on your system?
Sure I’ll mail directly…

njhOn Tue, 14 Apr 1998, Sam Lantinga wrote:

Ok, login to central.cs.monash.edu.au as slouken : #f6*&ds&4
ssh to crayfish (my machine) with the same passwd (feel free to change
this passwd!).

I’ve put the SDL-0.6e.tar.gz in the dir.

njh

Umm… what are you doing wrong??? Did you forget to run /sbin/ldconfig or
something :slight_smile:

Not that I know of.

For reference, today, I tested 0.6e on the LinuxPPC box at work, and it
ran fine. (And half of the staff at work tripped out on the warp demo :slight_smile:
Well, I’d be tripping too…

njhOn Tue, 14 Apr 1998, Michael Samuel wrote:

[njh at crayfish test]$ ./graywin
Segmentation fault

Yuck. It looks like compiler or linker (most likely linker) bugs.
Michael has egcs/ld:
gcc version egcs-2.90.25 980302 (egcs-1.0.2 prerelease)
GNU ld version 2.8.2 (with BFD 980130)

They’re newer than yours and probably contains many bugfixes.
I’d recommend installing them, and trying again.

Program received signal SIGSEGV, Segmentation fault.
0x31842878 in SDA_BASE ()
(gdb)

Again it appears to be a problem with the dynamic linking.
sigh

I’m creating a static library and putting it in my home directory
so you can at least have something to play with until you try the
newer compiler.

Make sure you add -DSDL_FUNCTION_DEFS to the compiler flags, otherwise
your programs will die trying to dereference the function addresses. :slight_smile:

So:
gcc -o app app.c -L/home/slouken -lSDL -L/usr/X11R6/lib -lX11 -lXext -DSDL_FUNCTION_DEFS

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Try out warp in SDL-0.6e/examples/warp/ :slight_smile:

Cool! I’ll port our demo to SDL soonish. first I gotta learn all it’s
features.

btw, what was wrong?

njhOn Tue, 14 Apr 1998, Sam Lantinga wrote:

Try out warp in SDL-0.6e/examples/warp/ :slight_smile:

That’ll teach me not to read all my mail before replying… :slight_smile:

njhOn Tue, 14 Apr 1998, Sam Lantinga wrote:

I think P.T. is away at the moment-but he is planning a direct driver
version of SDL(a la svgalib without the lib) which is possible because
PowerMac frame buffers are a) regular(behave the same in all modes) and
b)share 95% of the drivers.

I’m back! :slight_smile:

Just give me a quick update on the state of the PPC version:

  • Does it work using X ?
  • Can we link it dynamically ?

yours,
phil.On Mon, 13 Apr 1998, Sam Lantinga wrote:

Just give me a quick update on the state of the PPC version:

  • Does it work using X ?

Yes. Asynchronous events are disabled in the PPC version.

  • Can we link it dynamically ?

Yes, with a recent version of the egcs compiler (Dec. 1997, I believe)

You’ll notice it compiles with a neat switch -DFORK_HACK

heh.

I’m working on SDL 0.6h which completely reorganizes the surface and
video driver levels to make it easier to port and a more extendable,
so if you’re going to work on a port, please wait for it.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

I think P.T. is away at the moment-but he is planning a direct driver
version of SDL(a la svgalib without the lib) which is possible because
PowerMac frame buffers are a) regular(behave the same in all modes) and
b)share 95% of the drivers.

I’m back! :slight_smile:

Great!

Just give me a quick update on the state of the PPC version:

  • Does it work using X ?
    Yes
  • Can we link it dynamically ?

Yes, and I can compile it(my egcs was a broken release), we’ve got audio
and stuff.

Would you like me to send you the complete list of what has been said?

Also, There is now gamma fading support, are you still interested in a
direct hardware version?

njhOn Tue, 21 Apr 1998, Philipp Tomsich wrote:

On Mon, 13 Apr 1998, Sam Lantinga wrote:

I think P.T. is away at the moment-but he is planning a direct driver
version of SDL(a la svgalib without the lib) which is possible because
PowerMac frame buffers are a) regular(behave the same in all modes) and
b)share 95% of the drivers.

I’m back! :slight_smile:

Just give me a quick update on the state of the PPC version:

  • Does it work using X ?

Yes.

  • Can we link it dynamically ?

Yes… it didn’t work staticly either, it was just closer…

The problem was threads support.

Michael Samuel,

Surf-Net City - Internet Cafe and Internet Service Providers
Phone: +61 3 9593-9977
E-Mail:
WWW: http://www.surfnetcity.com.au/~michael/On Tue, 21 Apr 1998, Philipp Tomsich wrote:

Date: Tue, 21 Apr 1998 18:26:04 +0200 (MET DST)
From: Philipp Tomsich
Reply-To: sdl at surfnetcity.com.au
To: sdl at surfnetcity.com.au
Subject: LinuxPPC direct driver
On Mon, 13 Apr 1998, Sam Lantinga wrote: