| Author |
Message |
Yart
Joined: 04 Nov 2008 Posts: 6
|
Posted: Mon 24 Nov 2008, 12:22 Post subject:
SDL, OpenGL and Mesa? |
|
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.
|
|
Back to top
|
|
 |
106498
Joined: 18 Nov 2007 Posts: 248 Location: NZ
|
Posted: Mon 24 Nov 2008, 16:10 Post subject:
|
|
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.
_________________ An expert is just a beginner with experience.
Shamelessly representing TdeM!
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Mon 24 Nov 2008, 18:13 Post subject:
|
|
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/distributions/puppylinux/pet_packages-4/xorg_xorg_full_dri_DEV-7.3.pet
For some reason that doesn't appear to have been included in the devx_xxx.sfs file.
_________________ 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

|
|
Back to top
|
|
 |
Yart
Joined: 04 Nov 2008 Posts: 6
|
Posted: Tue 25 Nov 2008, 13:54 Post subject:
|
|
Alright. I got the xorg_xorg_dri.pet but I get an error compiling ZSNES still that says GL/gl.h is missing.
| Code: | 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.
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Tue 25 Nov 2008, 14:19 Post subject:
|
|
Have you tried ?
http://www.murga-linux.com/puppy/viewtopic.php?p=249335
http://www.murga-linux.com/puppy/viewtopic.php?t=22589
http://www.murga-linux.com/puppy/viewtopic.php?t=14223
http://www.murga-linux.com/puppy/viewtopic.php?t=5193&start=15&sid=cb66c0e71769c7ed913192002ad081f1
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 25 Nov 2008, 14:20 Post subject:
|
|
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: | 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.
_________________ 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

|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Tue 25 Nov 2008, 14:46 Post subject:
|
|
| 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: | 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
| Description |
|

Download |
| Filename |
GLh.pet |
| Filesize |
15.17 KB |
| Downloaded |
451 Time(s) |
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3937 Location: Southeast Georgia, USA
|
Posted: Wed 03 Dec 2008, 00:59 Post subject:
|
|
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).
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
106498
Joined: 18 Nov 2007 Posts: 248 Location: NZ
|
Posted: Wed 03 Dec 2008, 18:30 Post subject:
|
|
| 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!
_________________ An expert is just a beginner with experience.
Shamelessly representing TdeM!
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3937 Location: Southeast Georgia, USA
|
Posted: Wed 03 Dec 2008, 23:42 Post subject:
|
|
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!
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3937 Location: Southeast Georgia, USA
|
Posted: Thu 04 Dec 2008, 19:17 Post subject:
|
|
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.
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
106498
Joined: 18 Nov 2007 Posts: 248 Location: NZ
|
Posted: Sat 06 Dec 2008, 01:02 Post subject:
|
|
Well if opengl doesn't work, and your trying to keep things small anyway, try opening rxvt and typing
Hopefully it will work and you won't have to worry about opengl alltogether!
_________________ An expert is just a beginner with experience.
Shamelessly representing TdeM!
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3937 Location: Southeast Georgia, USA
|
Posted: Mon 08 Dec 2008, 19:33 Post subject:
|
|
I get:
Datadir: /usr/bin/../share/supertux
Warning: No joysticks are available.
Error: Couldn't load musicfile
/usr/bin/../share/supertux/music/SALCON.MOD
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
RJARRRPCGP
Joined: 09 Dec 2008 Posts: 93 Location: USA (Springfield, Vermont)
|
Posted: Tue 09 Dec 2008, 02:14 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
RJARRRPCGP
Joined: 09 Dec 2008 Posts: 93 Location: USA (Springfield, Vermont)
|
Posted: Tue 09 Dec 2008, 02:16 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
|