LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-08-2006, 10:58 PM   #1
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
Question Frozen-bubble: SDL-Perl does not compile


Cannot get SDL-perl 1.12 to compile so by default I cannot compile Frozen-bubble. I actually had this problem when running Slackware-current and figured that it wouldn't be a problem when Slackware 11 went final. But here I am again stuck in the same spot. At the time I was using -current, the packages from linuxpackages.net also gave me errors.

So I compile SDL_mixer and SDL_image and they install just fine. When I go to compile and install SDL-perl, here is the result:
Code:
bill@yogi:SDL-sdlpl-1.12$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for SDL::sdlpl
bill@yogi:SDL-sdlpl-1.12$ make && su -c checkinstall
cp lib/SDL/Music.pm blib/lib/SDL/Music.pm
cp lib/SDL/Surface.pm blib/lib/SDL/Surface.pm
cp lib/SDL/Rect.pm blib/lib/SDL/Rect.pm
cp sdlpl.pm blib/lib/SDL/sdlpl.pm
AutoSplitting blib/lib/SDL/sdlpl.pm (blib/lib/auto/SDL/sdlpl)
cp lib/SDL/Palette.pm blib/lib/SDL/Palette.pm
cp lib/SDL/Cursor.pm blib/lib/SDL/Cursor.pm
cp lib/SDL/Event.pm blib/lib/SDL/Event.pm
cp lib/SDL/Cdrom.pm blib/lib/SDL/Cdrom.pm
cp lib/SDL/Mixer.pm blib/lib/SDL/Mixer.pm
cp lib/SDL/Sound.pm blib/lib/SDL/Sound.pm
cp lib/SDL/OpenGL/App.pm blib/lib/SDL/OpenGL/App.pm
cp lib/SDL/App.pm blib/lib/SDL/App.pm
cp lib/SDL/Font.pm blib/lib/SDL/Font.pm
cc -c  -I/usr/local/include -I/usr/local/include/SDL -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mtune=i686   -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux/CORE"   font.c
font.c:1:17: SDL.h: No such file or directory
font.c:4: error: syntax error before '*' token
font.c:4: warning: data definition has no type or storage class
font.c:8: error: syntax error before "GetPixel"
font.c:8: error: syntax error before '*' token
font.c: In function `GetPixel':
font.c:11: error: `Uint8' undeclared (first use in this function)
font.c:11: error: (Each undeclared identifier is reported only once
font.c:11: error: for each function it appears in.)
font.c:11: error: `bits' undeclared (first use in this function)
font.c:12: error: `Uint32' undeclared (first use in this function)
font.c:12: error: syntax error before "Bpp"
font.c:15: error: `Bpp' undeclared (first use in this function)
font.c:15: error: `Surface' undeclared (first use in this function)
font.c:17: error: syntax error before ')' token
font.c:17: error: `Y' undeclared (first use in this function)
font.c:17: error: `X' undeclared (first use in this function)
font.c:22: error: syntax error before ')' token
font.c:25: error: `Uint16' undeclared (first use in this function)
font.c:25: error: syntax error before ')' token
font.c:28: error: syntax error before "r"
font.c:29: error: `r' undeclared (first use in this function)
font.c:30: error: `g' undeclared (first use in this function)
font.c:31: error: `b' undeclared (first use in this function)
font.c:36: error: syntax error before ')' token
font.c: At top level:
font.c:43: error: syntax error before '*' token
font.c: In function `InitFont':
font.c:47: error: `FontToUse' undeclared (first use in this function)
font.c:48: error: `NULL' undeclared (first use in this function)
font.c:52: error: request for member `w' in something not a structure or union
font.c:53: error: request for member `format' in something not a structure or union
font.c:56: error: request for member `format' in something not a structure or union
font.c: At top level:
font.c:67: error: syntax error before '*' token
font.c: In function `PutString':
font.c:71: error: `SDL_Rect' undeclared (first use in this function)
font.c:71: error: syntax error before "srcrect"
font.c:73: error: `text' undeclared (first use in this function)
font.c:75: error: `x' undeclared (first use in this function)
font.c:80: error: `srcrect' undeclared (first use in this function)
font.c:80: error: `dstrect' undeclared (first use in this function)
font.c:81: error: request for member `h' in something not a structure or union
font.c:85: error: `y' undeclared (first use in this function)
font.c:86: error: `Surface' undeclared (first use in this function)
font.c: At top level:
font.c:111: error: syntax error before '*' token
font.c: In function `SFont_Input':
font.c:113: error: `SDL_Event' undeclared (first use in this function)
font.c:113: error: syntax error before "event"
font.c:115: error: `SDL_Surface' undeclared (first use in this function)
font.c:115: error: `Back' undeclared (first use in this function)
font.c:116: error: `SDL_Rect' undeclared (first use in this function)
font.c:116: error: syntax error before "rect"
font.c:118: error: `Dest' undeclared (first use in this function)
font.c:119: error: `PixelWidth' undeclared (first use in this function)
font.c:120: error: request for member `h' in something not a structure or union
font.c:125: error: `rect' undeclared (first use in this function)
font.c:125: error: `x' undeclared (first use in this function)
font.c:126: error: `y' undeclared (first use in this function)
font.c:128: error: request for member `h' in something not a structure or union
font.c:129: error: `NULL' undeclared (first use in this function)
font.c:130: error: `text' undeclared (first use in this function)
font.c:131: error: request for member `h' in something not a structure or union
font.c:134: error: `SDLK_RETURN' undeclared (first use in this function)
font.c:134: error: `event' undeclared (first use in this function)
font.c:135: error: `SDL_KEYDOWN' undeclared (first use in this function)
font.c:143: error: request for member `h' in something not a structure or union
font.c:146:2: warning: no newline at end of file
make: *** [font.o] Error 1
bill@yogi:SDL-sdlpl-1.12$
I tried explodepkg-ing the 10.2 packages from linuxpackages.net and I can't see if anything different or abnormal was done to get it to work.

So what the hell? Everything I read on this says that I really only need SDL_perl < 2 for Slackware but I can't get the damn thing to work. That is why I compiled and installed mixer and image and the regular SDL is included normally. I've followed instructions and I've scoured the internet for anything I could find so I turn here for help with this persistent failure of mine.

Frozen-bubble is one of two programs that I just cannot compile in Slackware. The other is Pengu and I haven't tried that one yet. I figured they weren't installing because I was running -current at the time and something was broken.

Any thoughts or possibly even knowledge of good SlackBuild?... I can't find any of those either. I appreciate any help offered.

Thanks in advance.
 
Old 10-08-2006, 11:48 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
You should be building the SDL module, not SDL::sdlpl which is way too old.

I have a package here: http://www.slackware.com/~alien/slac...1.3-i486-1.tgz

Eric

Last edited by Alien Bob; 10-08-2006 at 11:52 PM.
 
Old 10-09-2006, 01:56 AM   #3
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Original Poster
Rep: Reputation: 31
Hmmm...

I'm pretty sure that frozen bubble is incompatible with newer (2+) versions of SDL-perl. Is there something I'm missing? I trust your judgement more than mine, though Eric. Hopefully this one will work. I'll have to try it tomorrow, though as it is becoming too late for sysadmin.

Thanks!
 
Old 10-09-2006, 07:13 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
Yeah you're right about the v2 I think.
Well, a 1.19.2 version is here: http://www.slackware.com/~alien/slac...perl-sdl_perl/

Eric
 
Old 10-09-2006, 10:05 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
I hope to have a Frozen Bubble package with support for SDL_perl 2.x and 1.19.x by tonight.
Actually I have built the package already, but I need a graphical desktop to test it :-)

Eric
 
Old 10-09-2006, 02:09 PM   #6
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Original Poster
Rep: Reputation: 31
Cool Alien Bob is the man...

Awesome, Eric. Thanks! I'll check back later on and see what's cooking.

I absolutely love to compile my own packages and have that satisfaction but sometimes things are completely out of my league. I would never think that frozen-bubble of all things would fall into that category, though. Any chance of maybe looking at Pengu in some spare time? It's one of those things where I can compile wine, wireshark, and other intensely long compiles and have them work; but something so uselessly decadent as frozen-bubble and a clone of Lemmings would give me so much trouble. Makes me wonder how I wake up every morning...

Just out of curiosity, where the hell did you find SDL_perl 1.19? I searched forever and was lucky to find the version I did...
 
Old 10-09-2006, 04:29 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
I have the Frozen Bubble working with SDL_perl 1.19.2 which was fairly easy. But I wanted it to work with SDL_Perl 2.x as well, and the package I compiled for that version does not work (I will remove it from my repository). I have a working SlackBuild now (I think) unfortunately a "rm" command to remove tempfiles had a dangling "*" so... I lost the SlackBuild.
But I have a somewhat earlier (not yet working) on backup (I backup regularly as a habit) and I'll re-compose the SlackBuild and compile a package. The 1.19.2 and 2.1.3 versions will both be available in http://www.slackware.com/~alien/slac...perl-sdl_perl/ soon. And then the frozen-bubble package too.

I cannot make promises about pengu :-) I want libgphoto2/gphoto2/digikam packages out first.

Eric
 
Old 10-09-2006, 05:07 PM   #8
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Alien Bob
I cannot make promises about pengu :-) I want libgphoto2/gphoto2/digikam packages out first.
I forgot about that combo entirely. I think I have my head too deep in frozen-bubble. I wasn't able to compile libgphoto2, either... I think I'm losing my touch. I agree with you though, I would much rather have the lib/gphoto2/digikam combo before pengu.

I do appreciate your work, Eric... this is fantastic. Thanks for all your help... I'm sure a few other people appreciate it as well.
 
Old 10-09-2006, 06:49 PM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
I uploaded packages, but unfortunately I can not get frozen-bubble to run errorfree with the patches that should make it compatible with SDL_Perl 2.x.
I left the patches in the build directory for those who want to have some fun, but for now it is SDL_perl 1.19.2 that you need for frozen-bubble.

Eric
 
Old 10-10-2006, 12:35 AM   #10
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Original Poster
Rep: Reputation: 31
Many thanks Eric. It's nice to see that this damn thing works in Slackware. I simply don't think I have the touch for the big time yet. Out of curiosity was there anything special you did to make them compile and work together or am I just a dummkopf? I'm still massively confused. At least I can play frozen-bubble now.

Always appreciate your work; you're always my first stop if I run into problems like I did and need a good Slackware package (and good scripts, too). I'll keep looking for those camera packages....... and maybe pengu in the future.

Thanks again!
 
Old 10-10-2006, 08:01 AM   #11
MariuszK
LQ Newbie
 
Registered: Jan 2006
Location: Brooklyn, NY
Distribution: Slackware 12.0
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by zetabill
I do appreciate your work, Eric... this is fantastic. Thanks for all your help... I'm sure a few other people appreciate it as well.
Of course zetabill! You're not alone
Big Thanks Eric!!

Mariusz
 
Old 10-10-2006, 09:21 AM   #12
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Just thought I should mention that SDL_mixer and SDL_Image are already included in Slackware SDL package.
 
Old 10-10-2006, 10:15 AM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
Yes. So? We're talking about a Perl module here.

Eric
 
Old 10-31-2006, 09:09 AM   #14
del-boy
LQ Newbie
 
Registered: Oct 2006
Location: Novi Sad, Serbia
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Thanks a lot guys... Last night I tried to compile frozen-bubbles for couple of houres and I couldn't make it work, but with perl-sdl_perl-1.19.2 iy worked imidiatly!

Thanks again...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
frozen bubble Segmentation Fault (SDL Parachute Deployed) lrt2003 Linux - Games 7 04-18-2004 05:48 PM
Perl problems with Frozen Bubble Nazxul Linux - Software 1 04-04-2004 08:46 AM
SDL-perl for frozen bubble kelryu Linux - Newbie 2 02-18-2004 05:52 PM
frozen-bubble can't locate SDL... teona Linux - Newbie 3 12-30-2003 12:54 AM
SDL and frozen-bubble Glock Shooter Slackware 6 11-27-2003 10:24 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration