You are not logged in.

#1 2011-09-23 01:49:05

unixfreak
Member
From: United Kingdom
Registered: 2011-09-12
Posts: 9

SDL::App not provided by perl-sdl

Hi there, how can i find which package supplies the perl module SDL::App ?

I would have assumed it would be: perl-sdl

But upon running a simple test:

#!/usr/bin/perl

use strict;
use warnings;

use SDL::App;

The program returns:

Can't locate SDL/App.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at eng.pl line 6.
BEGIN failed--compilation aborted at eng.pl line 6.

Next up i tried the only other perl/sdl related package from the AUR, sdl_perl-old
Assuming the syntax/module has changed... but get the same problem.

I started writing small perl/sdl/opengl graphics programs a while ago on arch and SDL::App used to work (allowing me to draw a screen). But it seems no packages want to do this anymore. [confused]

Any ideas?


"Any sufficiently advanced technology is indistinguishable from magic."

Offline

#2 2011-09-23 07:21:44

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: SDL::App not provided by perl-sdl

$ locate App.pm
/usr/lib/perl5/vendor_perl/SDLx/App.pm
$ pacman -Qo /usr/lib/perl5/vendor_perl/SDLx/App.pm
/usr/lib/perl5/vendor_perl/SDLx/App.pm is owned by perl-sdl 2.531-3

I'm not a perl expert but it looks like you need to use

use SDLx::App;

now.

Offline

#3 2011-09-26 00:00:42

unixfreak
Member
From: United Kingdom
Registered: 2011-09-12
Posts: 9

Re: SDL::App not provided by perl-sdl

Thats rather odd, but seems you are right

I noticed this page earlier it mentions SDL::App
http://sdl.perl.org/SDL-Deprecated.html

It still uses the same syntax as SDL::App, so its not a problem.

Thankyou!

Last edited by unixfreak (2011-09-26 00:02:48)


"Any sufficiently advanced technology is indistinguishable from magic."

Offline

Board footer

Powered by FluxBB