D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Very simple (Cross Platform) graphics ...

 

On Fri, 30 Dec 2011, Gordon Henderson wrote:

On Fri, 30 Dec 2011, Gordon Henderson wrote:

SDL?

Ah. Hmm.. Looks intersting... Thanks.

Download the C demo program. Compile it. OK. Run it. Bang. Killed X, Lost 9 virtual screens worth of work including the BBC News Quiz Panto. Not amused. Now, even Jeremy Hardy sounds good.

Well, while SDL looks really good and almost exactly what I want, I can get no further. All programs I've compiled to use SDL cause xserver-xorg to segfault which is somewhat inconvenient.

But Debian supplied programs that use SDL (e.g. vlc) obviously don't cause it to crash, so I'm doing something wrong, but I really can't work out what.

And another quick test - the test programs I'm playing with compile and run under Debian Lenny on my old Acer Laptop OK. (ati graphics) My workstation is Debian Squeeze with intel graphics.

Even copying a statically compiled binary up to the Squeeze box causes it to crash. Googling suggests lots of crashes too, but Debian must do something to stop their own software from crashing.

Ah well. Back to the drawing board.

So... figuring that as I've had to reboot/power cycle my workstation several times this eveining and a few more won't hurt, I decided to try another program that uses SDL - tuxpaint... It crashes the XServer too. So some crash it, and some don't. More googling suggests there is possibly an issue with the intel graphics on Atom motherboards... But obviously not all, as my Acer Aspire One has intel graphics too and it's fine, but running Lenny... (I have 2 Acer laptops in-case you're confused - one an AAO with Atom + intel GFX and one a 5050 with AMD CPU and ATI gfx)

My workstation is Atom with intel GFX, but it's obviously sufficiently different from the AAO to make a difference...

So... I got the SDL 1.2 sources off their site and compiled it... Linked it with my test program - another crash.

Then in a final act of desparation, I got the latest 1.3 snapshot, compiled that and linked it with my test and bingo. It works.

So... SDL it is.

And a new motherboard with anything other than Intel graphics...

And now I can make my 30 years old program run again!

Cheers,

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq