Follow

Has anyone got any experience with SDL2 on macppc? It dumps core with "illegal instruction" on my iMac G3 for a simple test

It runs! Compiling with --enable-assembly=no was a surprisingly easy fix. Now I need to see if I can do this with the ports infrastructure instead of a source tarball...

Show thread

It was as trivial as cloning the ports tree and setting CONFIGURE_ARGS += --disable-assembly. Now, to get on with actually writing the program I wanted to write 😂

Show thread

@will Sounds like Altivec, which G4 and up support, IIRC not many things do runtime detection, so packages break on G3 because of it. I'm not sure what the ports policy is these days, but I wouldn't be surprised if having the best performance on the G4 was what was considered.

@brynet seems like a sensible policy. There are some more fine-tuned options I could change rather than disabling it all - when I can be bothered to wait for another compilation I'll find out! :')

@brynet @will The ports policy is actually to disable AltiVec if runtime detection fails.

That's why the ffmpeg AltiVec code , that is totally working, is sadly not enabled :(

Since i've not a G3, i can't tinker with fine tuning. If you give up on the idea, just tell me, i'll fix the port.

@julianaito @brynet it was really easy to just add the same disable flags to the port. I haven't tried fine-tuning it yet (conferences coming up grrr) but I'm sure I'll try at some point :')

@will @brynet

Ok :)

@thfr i think we should go with no assembly on macppc meanwhile, i'm preparing a diff and will try some consumers.

@brynet @thfr

This change should be enough : https://bin.charlenew.xyz/sdl2.diff

@will
I would advise you to save your package somewhere in case it isn't.

I'm going to try some consumers now ^^

@brynet @thfr @will

I will be able to test myself; i forgot that AltiVec can be disabled just by compiling a new kernel :flan_coffee:

@julianaito @brynet @thfr damn, that's smart! Love to see it.

(Sidenote, what font is that? Looks lovely)

@will @brynet @thfr

Once again, i learned that thanks to gkoehler@. He's really good, and i'm happy to have him around :)

It's Fantasque Sans (https://github.com/belluzj/fantasque-sans).

Sign in to participate in the conversation
empty.cafe

Darkdrop Coffee: Musky! Explosive! Almost certainly not actually brewed from bat guano! That's just Mr Wines' little joke.