Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Jul 2014, 09:49
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
SDL, OpenGL and Mesa?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
Yart

Joined: 04 Nov 2008
Posts: 6

PostPosted: 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. Smile Just need the rest of the stuff now.
Back to top
View user's profile Send private message 
106498

Joined: 18 Nov 2007
Posts: 250
Location: NZ

PostPosted: 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
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: 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
View user's profile Send private message Visit poster's website 
Yart

Joined: 04 Nov 2008
Posts: 6

PostPosted: 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! Smile

P.S.: ZSNES 1.5x doesn't come with netplay. They removed it.
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: 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 Smile

Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: 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
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: 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
GLh.pet
Description 
pet

 Download 
Filename  GLh.pet 
Filesize  15.17 KB 
Downloaded  490 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4337
Location: Southeast Georgia, USA

PostPosted: 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
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
106498

Joined: 18 Nov 2007
Posts: 250
Location: NZ

PostPosted: 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
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4337
Location: Southeast Georgia, USA

PostPosted: 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
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4337
Location: Southeast Georgia, USA

PostPosted: 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
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
106498

Joined: 18 Nov 2007
Posts: 250
Location: NZ

PostPosted: 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
Code:
supertux --sdl

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
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4337
Location: Southeast Georgia, USA

PostPosted: 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
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
RJARRRPCGP

Joined: 09 Dec 2008
Posts: 98
Location: USA (Springfield, Vermont)

PostPosted: 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
View user's profile Send private message 
RJARRRPCGP

Joined: 09 Dec 2008
Posts: 98
Location: USA (Springfield, Vermont)

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0906s ][ Queries: 13 (0.0102s) ][ GZIP on ]