SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 :-)
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...
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.
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.
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.
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 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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.