Sign in to follow this  

apt-get install SDL libs on Linux

This topic is 4661 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm on Ubuntu Linux and I used apt-get to install libsdl1.2-dev and libsdl-mixer1.2-dev and that worked perfectly. But when I try "apt-get install libsdl-image1.2-dev" apt-get can't find the package. The libsdl-ttf2.0-dev package can't be found, either. I googled and those are supposed to be valid packages you can apt-get. Were the packages renamed or something? If any Linux users here have any ideas on how to apt-get the addon libs, I would appreciate any help!

Share this post


Link to post
Share on other sites
Open up Synaptic and search for "SDL". Debian has multiple different SDL images for using the alsa drivers, etc. so it just might be that you are not entering a valid name. Or you can do "apt-cache search SDL". Either way, make sure that the name of the SDL image you are trying to apt-get is valid first. Don't just rely on what you found on google when you can type a single command line and find out for yourself. [smile]


If you find that the names are indeed valid and you still can't install them, post here again and I'll see if I can help you resolve the issue. There shouldn't be one though. I've never had any problems installing SDL on Debian (not sure about Ubuntu though).

Share this post


Link to post
Share on other sites
SDL image is not included in ubuntu, for a reason I do not know.

You're best off downloading the source from SDL's website and compiling it yourself. Edit the config file to link -lpng10 i think it is, or whatever png version ubuntu has, and use the command 'configure --prefix=/usr --enable-png', read the test make sure it worked. then do the normal configure, make, make install.

Edit: oh, and instead of symantic, you can just use 'apt-cache search sdl'

Share this post


Link to post
Share on other sites
Thank you, Roots and Clayasaurus.

I did look through Synaptic and I didn't find SDL-Image or SDL-TTF. I installed libsdl1.2-dev previously so I'm only looking for the add-on packages sdl-image and sdl-ttf. So it looks like only the main SDL development files are available through the Debian apt-get system. And apt-cache search returned no results for the libsdl-image or libsdl-ttf development files.

It looks like you're right, Clay. I just need to compile the add-on sdl libs from the source! I should have just done that to start with, I guess. :)

Thanks again

-Ed-

Share this post


Link to post
Share on other sites
Sign in to follow this