SDL, OpenGL and Mesa?

Booting, installing, newbie
Post Reply
Message
Author
Yart
Posts: 6
Joined: Tue 04 Nov 2008, 20:46

SDL, OpenGL and Mesa?

#1 Post by Yart »

Hey there!

I've recently decided that I wanted to make Puppy Linux 4 my primary OS of choice (I'm loving it more than any distrobution of Linux out there that I've tried so far) but I also happen to be somewhat of a gamer.

I tried compiling ZSNES 1.42 (the latest version lacks Netplay) and Stella myself from source (after getting the developping .sfs) but Puppy is lacking SDL and OpenGL. I also believe I need Mesa for one particular engine for Doom.

Does anyone know where I can acquire these libraries, and how to install them? I'm still learning Linux and am not too well versed in it.

While we're on the note of graphic libraries, I find XMAME goes slower on Puppyp by far than say, Zenwalk, that may come with something I'm missing. Anyone know what I need for XMAME for it to run at it's fullest? :/ I'm itchin' for some DoDonPachi but the framerate's too slow.

Thanks!


EDIT: I compiled SDL from source. Done like dinner. :) Just need the rest of the stuff now.

106498
Posts: 250
Joined: Mon 19 Nov 2007, 02:07
Location: NZ
Contact:

#2 Post by 106498 »

I think that if you install xorg_xorg_dri.pet using the package manager this adds opengl. Try finding a slackware package for zsnes. The only one I could find was zsnes1.51.
[color=green]An expert is just a beginner with experience.[/color]
Shamelessly representing [url=http://www.tdem.co.nz]TdeM[/url]!

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#3 Post by Pizzasgood »

Yeah, the xorg_xorg_dri package includes OpenGL support and a subset of DRI drivers (you can install the xorg_xorg_full_dri package on top of that if you need the rest, but it's big).

For compiling things, you may find that it complains about missing X related headers. If that happens, try installing this:
ftp://ibiblio.org/pub/linux/distributio ... EV-7.3.pet
For some reason that doesn't appear to have been included in the devx_xxx.sfs file.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

Yart
Posts: 6
Joined: Tue 04 Nov 2008, 20:46

#4 Post by Yart »

Alright. I got the xorg_xorg_dri.pet but I get an error compiling ZSNES still that says GL/gl.h is missing.

Code: Select all

In file included from chips/dsp1emu.c:27:
chips/../gblhdr.h:85:20: error: GL/gl.h: No such file or directory
make: *** [chips/dsp1emu.o] Error 1
No clue what causes that, but I tried building while ignoring all errors (with make -i) and that was the only one it had. Almost there.

I also tried after installing xorg_xorg_full_dri.pet and the xorg_xorg_dri_DEV.pet but still got the same result.

Am I just missing one file? Is it ZSNES' fault?

For everything else though it seems to work, so thanks! :)

P.S.: ZSNES 1.5x doesn't come with netplay. They removed it.


User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#6 Post by Pizzasgood »

Does /usr/X11R7/include/GL/gl.h exist? If so, you have the file and you just need to tweak things so that the compiler sees it. Try running ./configure --help to see if it lets you specify more include directories. If it does, have it include /usr/X11R7/include and /usr/X11R7/include/GL.

Alternatively, you could try adding the includes to your $CFLAGS variable before running the ./configure script:

Code: Select all

export CFLAGS="$CFLAGS -I/usr/X11R7/include -I/usr/X11R7/include/GL"
./configure
make
make install
I haven't tried that, but I think it should work.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#7 Post by ttuuxxx »

Pizzasgood wrote:Does /usr/X11R7/include/GL/gl.h exist? If so, you have the file and you just need to tweak things so that the compiler sees it. Try running ./configure --help to see if it lets you specify more include directories. If it does, have it include /usr/X11R7/include and /usr/X11R7/include/GL.

Alternatively, you could try adding the includes to your $CFLAGS variable before running the ./configure script:

Code: Select all

export CFLAGS="$CFLAGS -I/usr/X11R7/include -I/usr/X11R7/include/GL"
./configure
make
make install
I haven't tried that, but I think it should work.
Here's a pet package with it GL.h
Attachments
GLh.pet
(15.17 KiB) Downloaded 670 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#8 Post by edoc »

For my old Panasonic Toughbook CF-27 I tried "xorg_xorg_dri-7.3-1" which I believe is the basic "xorg_xorg" and SuperTux was not satisfied - it demanded a working openGL so I am about to try to load "xorg_xorg_full_dri-7.3" on top of it in hopes of getting all of the openGL I need.

It is "Checking Dependencies" right now and has been so for several minutes - my CF-27 may be unable to handle the larger package.

OK, well, this latest PET has broken xorg on my CF-27. I am now in a xorgwizard loop where it tells me to run xorgwizard then xwin - orgwizard runs then drops to # and when I try wwin it tells me to run xorgwizard.

Guess I will have to boot from CD "puppy pfix=ram" -- but then how do I fix the mess? Use Package Manager to uninstall xorg_xorg_full_dri-7.3?

Sure wish there was a far more efficient way to get the minimum needed dependencies for SuperTux loaded onto this limited-resources laptop without the massive extraneous overhead of Barrage (for SDL) and now this PET (for openGL).
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

106498
Posts: 250
Joined: Mon 19 Nov 2007, 02:07
Location: NZ
Contact:

#9 Post by 106498 »

edoc wrote:Sure wish there was a far more efficient way to get the minimum needed dependencies for SuperTux loaded onto this limited-resources laptop without the massive extraneous overhead of Barrage (for SDL) and now this PET (for openGL).
Barrage? There are certainly more efficient ways of getting SDL.(Although Barrage can be quite fun!) Try getting this package http://tdem.net63.net/linux/files/libSDL_full.pet . Only 335 kb!
[color=green]An expert is just a beginner with experience.[/color]
Shamelessly representing [url=http://www.tdem.co.nz]TdeM[/url]!

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#10 Post by edoc »

Thanks!

I have downloaded that and will give it a try tomorrow - after I purge my old CF-27 of a whole lot of debris!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#11 Post by edoc »

Loaded GLh.pet and libSDL_full.pet then SuperTux.

Same as before, SuperTux loads but "openGL not supported".

NOTE1: It appears that loading libSDL.pet before GLh.pet does not work, SuperTux would not open - I had to reload libSDL_full.pet then reload SuperTux after GLh.pet Is that predictable behavior?

NOTE2: I have my-documents symlinked to workaround the size limitation of pup_save.2fs - it is still on the same sda1 partition - the CF-27 only has a 3.32GB HDD.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

106498
Posts: 250
Joined: Mon 19 Nov 2007, 02:07
Location: NZ
Contact:

#12 Post by 106498 »

Well if opengl doesn't work, and your trying to keep things small anyway, try opening rxvt and typing

Code: Select all

supertux --sdl
Hopefully it will work and you won't have to worry about opengl alltogether!
[color=green]An expert is just a beginner with experience.[/color]
Shamelessly representing [url=http://www.tdem.co.nz]TdeM[/url]!

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#13 Post by edoc »

I get:

Datadir: /usr/bin/../share/supertux
Warning: No joysticks are available.

Error: Couldn't load musicfile
/usr/bin/../share/supertux/music/SALCON.MOD
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

RJARRRPCGP
Posts: 97
Joined: Tue 09 Dec 2008, 06:10
Location: USA (Springfield, Vermont)

#14 Post by RJARRRPCGP »

edoc wrote:
SuperTux loads but "openGL not supported".
I don't have that problem here with my GeForce 7600 GS, after installing the .pet for the 177.82 Nvidia driver.

RJARRRPCGP
Posts: 97
Joined: Tue 09 Dec 2008, 06:10
Location: USA (Springfield, Vermont)

#15 Post by RJARRRPCGP »

edoc wrote: I am now in a xorgwizard loop where it tells me to run xorgwizard then xwin - orgwizard runs then drops to # and when I try wwin it tells me to run xorgwizard.
I only had that problem because I gotten a .pet for the wrong Nvidia driver version or a corrupted .pet.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#16 Post by edoc »

I was not aware that this was hardware-specific.

So what I need to do is to identify the sound and video hardware in the laptop and then try to find a .PET that has been optimized for that hardware?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply