LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing SDL (Xubuntu)? (https://www.linuxquestions.org/questions/linux-newbie-8/installing-sdl-xubuntu-823685/)

Maxaxle 08-02-2010 09:47 PM

Installing SDL (Xubuntu)?
 
How do I install SDL (and other libraries) onto my dual-boot (XP/Xubuntu) computer? With only what came on the Xubuntu disk, I am able to play Oolite at what seems to be 1000 FPS, and Torcs at about 70 FPS.

knudfl 08-03-2010 03:42 AM

Welcome to LQ.

The install commands : 1) sudo apt-get update

2) sudo apt-get install \
libsdl1.2debian libsdl-image1.2 libsdl-gfx1.2-4 libsdl-mixer1.2 \
libsdl-net1.2 libsdl-perl libsdl-sound1.2 libsdl-ttf1.2
( Not all of those may be required, but : most are small files.)

Alternative install method :
"Synaptic" is the GUI Package Manager : Start with hitting the 'Refresh' button.
( Will update the package list, like 'sudo apt-get update'. )
And then enter libsdl to ' Search '.

Good luck.
..

GetafixJr 08-03-2010 11:04 AM

Quote:

Originally Posted by Maxaxle (Post 4053299)
...I am able to play Oolite at what seems to be 1000 FPS, and Torcs at about 70 FPS.

Just for the record, for Oolite (at least for the latest 1.74.2 release) only
libsdl1.2debian and
libsdl-mixer1.2
are needed, as far as it concerns SDL dependencies.

Furthermore, I don't think that installing SDL will increase the applications' framerate.

Maxaxle 08-03-2010 11:19 AM

I just tried the Terminal lines, but it comes up with:
Quote:

alex@alex-desktop:~/Desktop$ sudo apt-get install \ libsdl1.2debian libsdl-image1.2 libsdl-perl libsdl-sound1.2 libsdl-ttf1.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libsdl1.2debian
alex@alex-desktop:~/Desktop$ sudo apt-get install \ libsdl-image1.2 libsdl-perl libsdl-sound1.2 libsdl-ttf1.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libsdl-image1.2
alex@alex-desktop:~/Desktop$ ^C
alex@alex-desktop:~/Desktop$
Or am I supposed to open a terminal in the downloaded SDL folder?

knudfl 08-04-2010 01:12 AM

Well, you can do : 1) sudo apt-get update
2) sudo apt-get install libsdl-mixer1.2

.. as suggested by @GetafixJr. The libsdl1.2* will follow too.

Or use : apt-cache search libsdl
.. to get the package names.

Which version of Ubuntu is it ? 10.10 ?
..

P.S. : If you still get the message : "" E: Couldn't find package .... ""
after the "package list refresh" = 'sudo apt-get update
.. then you can try changing the mirror in 'Software Sources' :
System > Administration > Software Sources.
Synaptic: System > Administration > Synaptic >> Settings >> Repositories. ...
..

MTK358 08-04-2010 07:46 AM

Quote:

Originally Posted by Maxaxle (Post 4054235)
Or am I supposed to open a terminal in the downloaded SDL folder?

What downloaded SDL folder?

You aren't supposed to download anything off the SDL website.

Maxaxle 08-06-2010 09:34 PM

Quote:

Originally Posted by knudfl (Post 4055051)
Well, you can do : 1) sudo apt-get update
2) sudo apt-get install libsdl-mixer1.2

.. as suggested by @GetafixJr. The libsdl1.2* will follow too.

Or use : apt-cache search libsdl
.. to get the package names.

Which version of Ubuntu is it ? 10.10 ?
..

P.S. : If you still get the message : "" E: Couldn't find package .... ""
after the "package list refresh" = 'sudo apt-get update
.. then you can try changing the mirror in 'Software Sources' :
System > Administration > Software Sources.
Synaptic: System > Administration > Synaptic >> Settings >> Repositories. ...
..

Tried all of the commands, and successfully updated some stuff (I wasn't paying attention to what it was, but I remember that it was relatively important stuff).
I can't believe I didn't see Synaptic :doh:. Thanks!
Quote:

Originally Posted by MTK358 (Post 4055453)
What downloaded SDL folder?

You aren't supposed to download anything off the SDL website.

Uhm...carp. Thanks for telling me.


All times are GMT -5. The time now is 08:44 PM.