LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   help with SDL (Simple DirectMedia Layer) (https://www.linuxquestions.org/questions/linux-games-33/help-with-sdl-simple-directmedia-layer-115949/)

poeta_boy 11-14-2003 09:34 AM

help with SDL (Simple DirectMedia Layer)
 
Hey can you help me to install SDL (Simple DirectMedia Layer) , I need it to compile Znes :)

Thanks!

teval 11-14-2003 09:34 PM

Go to the libsdl.org website

http://www.libsdl.org/download-1.2.php

Download whatever package you want.. rpm or tar.gz
If you got the rpm just install it normally.
If you got the tar.gz

tar -xvzf <packagename>

Go into the newly created directory, and

./configure && make
su root
make install
ldconfig
exit

Have fun :)

LavaDevil94 11-14-2003 10:09 PM

dont forget the other important commonly used sdl packages:
SDL_image http://libsdl.org/projects/SDL_image
SDL_mixer http://libsdl.org/projects/SDL_mixer
SDL_net http://libsdl.org/projects/SDL_net
and SDL_ttf http://libsdl.org/projects/SDL_ttf

poeta_boy 11-17-2003 07:15 AM

Hello:
I did that and here's what I've got:

checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: SDL >= 1.2.0 is required

Any idea? I downloaded rmp and installed all. I didn't get any choices, just double click and it said : it's all installed!

teval 11-17-2003 11:58 AM

Install normal SDL first.
http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/release/SDL-1.2.6-1.i386.rpm
I had lots of problems with rpm too. That's the main reason that made me trash RH and put Gentoo.
SDL never worked right with rpm for me. I had to compile it from source, and even that was hit and miss.

poeta_boy 11-17-2003 08:38 PM

Hey

It's sad, at least for me. These are just the kind of things that make me stick at WIN XP. I've tried to install like 10 programs (between screensavers, Karamba and some games) and everything just keeps asking for libraries, libraries and more libraries.

ok I download library one. To compile it, I need library two. I got library to and I need library three. I have three and now it says it's installed successfully but Oh surprise!!! I can't have my Linux to work the way I want. I'm not quitting, but now I'm only using it for my own learning. Work, develop and explore, for normal daily things I'll have to stick with the "other" one.

I'm quite a newbie. Do you suggest move on to Gentoo?

teval 11-17-2003 08:51 PM

If you're willing to follow the instruction guide to the letter, yup :)
It's very specific, clear, and simple to use. Just need to make sure you do exactely what it asks you. In the same order :). You'll learn a lot, and installing sdl goes like this:

emerge libsdl

Done :)

www.gentoo.org

Just post back here if you have problems with the install or anything like that. :)

poeta_boy 11-17-2003 08:56 PM

forgot to ask.... is it like slackware just command oriented? can I also use KDE?

teval 11-18-2003 05:06 PM

Not sure how the slackware one is. This one has a graphical interface too, but I prefer the console version. Faster to just type for me :)
Yup, KDE Gnome Flux every window and desktop manger I know of :)


All times are GMT -5. The time now is 11:56 AM.