Page 1 of 1

SDL-1.2.8 Runtime Library

Posted: Sun 15 May 2005, 22:10
by Pizzasgood
Today I felt like testing a program I've been working on in Windows in Puppy just to see how it would run. It uses SDL, so I added SDL to Puppy. Puppy liked it so much that I decided to learn how to make a dotpup and upload it. Now anyone can run SDL programs in Puppy. Oh, and it registers with pupget and everything :)

Remember, though. This is only the runtime library. You need the development librarys to actually compile SDL apps.

EDIT: I fixed it :)

What is SDL?

Posted: Mon 16 May 2005, 01:18
by Lobster
:oops:

What is SDL?

Posted: Mon 16 May 2005, 01:36
by Pizzasgood
SDL: Simple DirectMedia Layer
Think DirectX for Linux. Except it is multiplatform (supports Windows, Linux, BSD, etc.), so the program that I was writing on Windows worked with almost no modification on Linux .

It makes doing graphics (and I guess it can do sound too) in C++ much easier. The runtime library will let any programs that use SDL (like the game I'm making) run.

It's actually made for C, not C++, so if I got the development libraries I bet I could use it with tcc. I'll have to try that someday.

Anyway, the average Puppy user isn't going to need this, but it can come in handy if you want to add games to your distro. I just figured as long as I had added it to my Puppy I might as well learn how to make dotpups and put it up just in case anyone else wants it.

Posted: Mon 16 May 2005, 04:40
by Lobster
Thanks for the explanation :!:

May your pizza ever have anchovies (traditional Lobsterian Blessing)

:)

Posted: Mon 16 May 2005, 10:17
by BarryK
Pizzagood,
That's fantastic!
I had to immediately see the first DotPup that registers with PupGet!
I looked in /root/.packages/ at alienpackages.txt and sdlxxx.files
and yep, they are there.

I then fired up the PupGet package manager, and there it is, listed as installed!

Great stuff, one thing to fix though.
Perhaps I could put an automatic check for this into the PupGet script....
When an entry is made to alienpackages.txt, it must have a " \"
(space then back-slash) on the end of the line.
Otherwise, if another line gets added, the PupGet script would be broken.

Now, your DotPup is free from being purged at version upgrades by the voracious rc.update script.
And can now be uninstalled with a few mouse clicks!
Great, I'm mighty pleased :D

Posted: Mon 16 May 2005, 20:43
by Pizzasgood
Whoops! I didn't see that part. :oops:

Oh, well. I fixed it. I also just realized the forum lets you update an attachment, so it's at the same spot up at the top for easy access :D