Re: Problem with SDL::Perl
Adam what distro are you on? On Tue, 2011-06-14 at 13:54 -0700, Adam Fairbrother wrote: > $LD_LIBRARY_PATH was unset. I set it manually to the SDL Libs folder, and the > error no longer happens. My test picture dosn't show up, but I think that's > an issue I can hack through myself. > > Thanks you for all the help with this. > > #-- > Adam Fairbrother > Help Desk Technician > afairbrot...@sd73.bc.ca > School District #73 > > - "Kartik Thakore" wrote: > > > Hmm that is all fine. Can I see your LD_LIBRARY_PATH? > > > > echo $LD_LIBRARY_PATH > > > > Are you still getting the problem btw cause the tests run fine. > > > > On Tue, 2011-06-14 at 09:47 -0700, Adam Fairbrother wrote: > > > My bad, I guess I glossed by the sdl-devel@perl.org list when I was > > looking through. > > > > > > Here is a link to a file that contains the stdout from "fforce > > install Alien::SDL SDL" inside the cpan shell. If it's not the > > information you were looking for let me know and I can provide the > > correct info. > > > > > > http://dl.dropbox.com/u/949632/build.text > > > > > > #-- > > > Adam Fairbrother > > > Help Desk Technician > > > afairbrot...@sd73.bc.ca > > > School District #73 > > > > > > - "Kartik Thakore" wrote: > > > > > > > > Hi, > > > > H Adam, > > > > > > > > > > It's been a week since I asked about this and No one has > > responded, > > > > Did I ask incorrectly or in the wrong mailing list? > > > > > > > > > Apologies for that I normally don't see this mailing list. > > > > sdl-devel@perl.org is a better list for these things. > > > > > Any help that could be provided would be appreciated. > > > > > > > > Absolutely, it seems that your Alien::SDL install had a bit of a > > > > hiccup. Can you paste your > > > > build text? > > > > > > > > $ cpan > > > > => fforce install Alien::SDL SDL > > > > > > > > > > > > > Thanks, > > > > > > > > > > #-- > > > > > Adam Fairbrother > > > > > Help Desk Technician > > > > > afairbrot...@sd73.bc.ca > > > > > School District #73 > > > > > > > > > - "Adam Fairbrother" wrote: > > > > > > > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on > > a > > > > debian > > > > > > Lenny setup. > > > > > > > > > > > > I have SDL::Perl installed from CPAN. > > > > > > Alien::SDL installed from cpan with the option to build all > > > > > > dependencies and library's. > > > > > > > > > > > > When I was testing to get things working, my short test > > script > > > > would > > > > > > throw an error. The script and the error are below. > > > > > > > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my > > guess > > > > is > > > > > > that SDL isn't correctly configured to pick up that library > > > > folder. I > > > > > > don't want to mess up the system SDL install incase something > > > > goes > > > > > > wrong, and I can't install libjpeg.so.8 from packages on > > Lenny, > > > > as > > > > > > there is no package for it. > > > > > > > > > > > > How do I have SDL recognize the library's provided by > > SDL::Alien, > > > > or > > > > > > what am I doing wrong? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > Here is my script: > > > > > > > > > > > > #!/usr/bin/perl > > > > > > use 5.010; > > > > > > use strict; > > > > > > use warnings; > > > > > > use SDLx::App; > > > > > > use SDLx::Sprite; > > > > > > > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > > > > $sprite->draw($app); > > > > > > > > > > > >Here is the Error > > > > > > > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > > > > libjpeg.so.8: cannot open shared object file: No such file or > > > > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line > > 188 > > > > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called > > at > > > > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > > > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > > > > called > > > > > > at ./slideshow.pl line 14 > > > > > > > > > > > > > > > > > > #-- > > > > > > Adam Fairbrother > > > > > > Help Desk Technician > > > > > > afairbrot...@sd73.bc.ca > > > > > > School District #73 > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > > > > For additional commands, e-mail: beginners-h...@perl.org > > > > > http://learn.perl.org/ > > > > -- > > > > Kartik Thakore > > > > -- > > Kartik Thakore -- Kartik Thakore
Re: AW: Problem with SDL::Perl
Oh yeah you are right. Why is that happening? On Tue, 2011-06-14 at 22:56 +0200, Tobias Leich wrote: > Its not looking good imo. > > See, its just installing libjpeg.la, not libjpeg.so.8 ... > > -Ursprüngliche Nachricht- > Von: Kartik Thakore [mailto:thakore.kar...@gmail.com] > Gesendet: Dienstag, 14. Juni 2011 22:19 > An: Adam Fairbrother > Cc: beginn...@perl.org; sdl-devel > Betreff: Re: Problem with SDL::Perl > > Hmm that is all fine. Can I see your LD_LIBRARY_PATH? > > echo $LD_LIBRARY_PATH > > Are you still getting the problem btw cause the tests run fine. > > On Tue, 2011-06-14 at 09:47 -0700, Adam Fairbrother wrote: > > My bad, I guess I glossed by the sdl-devel@perl.org list when I was looking > > through. > > > > Here is a link to a file that contains the stdout from "fforce install > > Alien::SDL SDL" inside the cpan shell. If it's not the information you > > were looking for let me know and I can provide the correct info. > > > > http://dl.dropbox.com/u/949632/build.text > > > > #-- > > Adam Fairbrother > > Help Desk Technician > > afairbrot...@sd73.bc.ca > > School District #73 > > > > - "Kartik Thakore" wrote: > > > > > > Hi, > > > H Adam, > > > > > > > > It's been a week since I asked about this and No one has responded, > > > Did I ask incorrectly or in the wrong mailing list? > > > > > > > Apologies for that I normally don't see this mailing list. > > > sdl-devel@perl.org is a better list for these things. > > > > Any help that could be provided would be appreciated. > > > > > > Absolutely, it seems that your Alien::SDL install had a bit of a > > > hiccup. Can you paste your > > > build text? > > > > > > $ cpan > > > => fforce install Alien::SDL SDL > > > > > > > > > > Thanks, > > > > > > > > #-- > > > > Adam Fairbrother > > > > Help Desk Technician > > > > afairbrot...@sd73.bc.ca > > > > School District #73 > > > > > > > - "Adam Fairbrother" wrote: > > > > > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on a > > > debian > > > > > Lenny setup. > > > > > > > > > > I have SDL::Perl installed from CPAN. > > > > > Alien::SDL installed from cpan with the option to build all > > > > > dependencies and library's. > > > > > > > > > > When I was testing to get things working, my short test script > > > would > > > > > throw an error. The script and the error are below. > > > > > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess > > > is > > > > > that SDL isn't correctly configured to pick up that library > > > folder. I > > > > > don't want to mess up the system SDL install incase something > > > goes > > > > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, > > > as > > > > > there is no package for it. > > > > > > > > > > How do I have SDL recognize the library's provided by SDL::Alien, > > > or > > > > > what am I doing wrong? > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > Here is my script: > > > > > > > > > > #!/usr/bin/perl > > > > > use 5.010; > > > > > use strict; > > > > > use warnings; > > > > > use SDLx::App; > > > > > use SDLx::Sprite; > > > > > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > > > $sprite->draw($app); > > > > > > > > > >Here is the Error > > > > > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > > > libjpeg.so.8: cannot open shared object file: No such file or > > > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > > > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > > > called > > > > > at ./slideshow.pl line 14 > > > > > > > > > > > > > > > #-- > > > > > Adam Fairbrother > > > > > Help Desk Technician > > > > > afairbrot...@sd73.bc.ca > > > > > School District #73 > > > > > > > > -- > > > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > > > For additional commands, e-mail: beginners-h...@perl.org > > > > http://learn.perl.org/ > > > -- > > > Kartik Thakore > -- Kartik Thakore
AW: Problem with SDL::Perl
Its not looking good imo. See, its just installing libjpeg.la, not libjpeg.so.8 ... -Ursprüngliche Nachricht- Von: Kartik Thakore [mailto:thakore.kar...@gmail.com] Gesendet: Dienstag, 14. Juni 2011 22:19 An: Adam Fairbrother Cc: beginn...@perl.org; sdl-devel Betreff: Re: Problem with SDL::Perl Hmm that is all fine. Can I see your LD_LIBRARY_PATH? echo $LD_LIBRARY_PATH Are you still getting the problem btw cause the tests run fine. On Tue, 2011-06-14 at 09:47 -0700, Adam Fairbrother wrote: > My bad, I guess I glossed by the sdl-devel@perl.org list when I was looking > through. > > Here is a link to a file that contains the stdout from "fforce install > Alien::SDL SDL" inside the cpan shell. If it's not the information you were > looking for let me know and I can provide the correct info. > > http://dl.dropbox.com/u/949632/build.text > > #-- > Adam Fairbrother > Help Desk Technician > afairbrot...@sd73.bc.ca > School District #73 > > - "Kartik Thakore" wrote: > > > > Hi, > > H Adam, > > > > > > It's been a week since I asked about this and No one has responded, > > Did I ask incorrectly or in the wrong mailing list? > > > > > Apologies for that I normally don't see this mailing list. > > sdl-devel@perl.org is a better list for these things. > > > Any help that could be provided would be appreciated. > > > > Absolutely, it seems that your Alien::SDL install had a bit of a > > hiccup. Can you paste your > > build text? > > > > $ cpan > > => fforce install Alien::SDL SDL > > > > > > > Thanks, > > > > > > #-- > > > Adam Fairbrother > > > Help Desk Technician > > > afairbrot...@sd73.bc.ca > > > School District #73 > > > > > - "Adam Fairbrother" wrote: > > > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on a > > debian > > > > Lenny setup. > > > > > > > > I have SDL::Perl installed from CPAN. > > > > Alien::SDL installed from cpan with the option to build all > > > > dependencies and library's. > > > > > > > > When I was testing to get things working, my short test script > > would > > > > throw an error. The script and the error are below. > > > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess > > is > > > > that SDL isn't correctly configured to pick up that library > > folder. I > > > > don't want to mess up the system SDL install incase something > > goes > > > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, > > as > > > > there is no package for it. > > > > > > > > How do I have SDL recognize the library's provided by SDL::Alien, > > or > > > > what am I doing wrong? > > > > > > > > Thanks, > > > > > > > > > > > > Here is my script: > > > > > > > > #!/usr/bin/perl > > > > use 5.010; > > > > use strict; > > > > use warnings; > > > > use SDLx::App; > > > > use SDLx::Sprite; > > > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > > $sprite->draw($app); > > > > > > > >Here is the Error > > > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > > libjpeg.so.8: cannot open shared object file: No such file or > > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > > called > > > > at ./slideshow.pl line 14 > > > > > > > > > > > > #-- > > > > Adam Fairbrother > > > > Help Desk Technician > > > > afairbrot...@sd73.bc.ca > > > > School District #73 > > > > > > -- > > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > > For additional commands, e-mail: beginners-h...@perl.org > > > http://learn.perl.org/ > > -- > > Kartik Thakore -- Kartik Thakore
Re: Problem with SDL::Perl
$LD_LIBRARY_PATH was unset. I set it manually to the SDL Libs folder, and the error no longer happens. My test picture dosn't show up, but I think that's an issue I can hack through myself. Thanks you for all the help with this. #-- Adam Fairbrother Help Desk Technician afairbrot...@sd73.bc.ca School District #73 - "Kartik Thakore" wrote: > Hmm that is all fine. Can I see your LD_LIBRARY_PATH? > > echo $LD_LIBRARY_PATH > > Are you still getting the problem btw cause the tests run fine. > > On Tue, 2011-06-14 at 09:47 -0700, Adam Fairbrother wrote: > > My bad, I guess I glossed by the sdl-devel@perl.org list when I was > looking through. > > > > Here is a link to a file that contains the stdout from "fforce > install Alien::SDL SDL" inside the cpan shell. If it's not the > information you were looking for let me know and I can provide the > correct info. > > > > http://dl.dropbox.com/u/949632/build.text > > > > #-- > > Adam Fairbrother > > Help Desk Technician > > afairbrot...@sd73.bc.ca > > School District #73 > > > > - "Kartik Thakore" wrote: > > > > > > Hi, > > > H Adam, > > > > > > > > It's been a week since I asked about this and No one has > responded, > > > Did I ask incorrectly or in the wrong mailing list? > > > > > > > Apologies for that I normally don't see this mailing list. > > > sdl-devel@perl.org is a better list for these things. > > > > Any help that could be provided would be appreciated. > > > > > > Absolutely, it seems that your Alien::SDL install had a bit of a > > > hiccup. Can you paste your > > > build text? > > > > > > $ cpan > > > => fforce install Alien::SDL SDL > > > > > > > > > > Thanks, > > > > > > > > #-- > > > > Adam Fairbrother > > > > Help Desk Technician > > > > afairbrot...@sd73.bc.ca > > > > School District #73 > > > > > > > - "Adam Fairbrother" wrote: > > > > > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on > a > > > debian > > > > > Lenny setup. > > > > > > > > > > I have SDL::Perl installed from CPAN. > > > > > Alien::SDL installed from cpan with the option to build all > > > > > dependencies and library's. > > > > > > > > > > When I was testing to get things working, my short test > script > > > would > > > > > throw an error. The script and the error are below. > > > > > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my > guess > > > is > > > > > that SDL isn't correctly configured to pick up that library > > > folder. I > > > > > don't want to mess up the system SDL install incase something > > > goes > > > > > wrong, and I can't install libjpeg.so.8 from packages on > Lenny, > > > as > > > > > there is no package for it. > > > > > > > > > > How do I have SDL recognize the library's provided by > SDL::Alien, > > > or > > > > > what am I doing wrong? > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > Here is my script: > > > > > > > > > > #!/usr/bin/perl > > > > > use 5.010; > > > > > use strict; > > > > > use warnings; > > > > > use SDLx::App; > > > > > use SDLx::Sprite; > > > > > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > > > $sprite->draw($app); > > > > > > > > > >Here is the Error > > > > > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > > > libjpeg.so.8: cannot open shared object file: No such file or > > > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line > 188 > > > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called > at > > > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > > > called > > > > > at ./slideshow.pl line 14 > > > > > > > > > > > > > > > #-- > > > > > Adam Fairbrother > > > > > Help Desk Technician > > > > > afairbrot...@sd73.bc.ca > > > > > School District #73 > > > > > > > > -- > > > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > > > For additional commands, e-mail: beginners-h...@perl.org > > > > http://learn.perl.org/ > > > -- > > > Kartik Thakore > > -- > Kartik Thakore
Re: Problem with SDL::Perl
Hmm that is all fine. Can I see your LD_LIBRARY_PATH? echo $LD_LIBRARY_PATH Are you still getting the problem btw cause the tests run fine. On Tue, 2011-06-14 at 09:47 -0700, Adam Fairbrother wrote: > My bad, I guess I glossed by the sdl-devel@perl.org list when I was looking > through. > > Here is a link to a file that contains the stdout from "fforce install > Alien::SDL SDL" inside the cpan shell. If it's not the information you were > looking for let me know and I can provide the correct info. > > http://dl.dropbox.com/u/949632/build.text > > #-- > Adam Fairbrother > Help Desk Technician > afairbrot...@sd73.bc.ca > School District #73 > > - "Kartik Thakore" wrote: > > > > Hi, > > H Adam, > > > > > > It's been a week since I asked about this and No one has responded, > > Did I ask incorrectly or in the wrong mailing list? > > > > > Apologies for that I normally don't see this mailing list. > > sdl-devel@perl.org is a better list for these things. > > > Any help that could be provided would be appreciated. > > > > Absolutely, it seems that your Alien::SDL install had a bit of a > > hiccup. Can you paste your > > build text? > > > > $ cpan > > => fforce install Alien::SDL SDL > > > > > > > Thanks, > > > > > > #-- > > > Adam Fairbrother > > > Help Desk Technician > > > afairbrot...@sd73.bc.ca > > > School District #73 > > > > > - "Adam Fairbrother" wrote: > > > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on a > > debian > > > > Lenny setup. > > > > > > > > I have SDL::Perl installed from CPAN. > > > > Alien::SDL installed from cpan with the option to build all > > > > dependencies and library's. > > > > > > > > When I was testing to get things working, my short test script > > would > > > > throw an error. The script and the error are below. > > > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess > > is > > > > that SDL isn't correctly configured to pick up that library > > folder. I > > > > don't want to mess up the system SDL install incase something > > goes > > > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, > > as > > > > there is no package for it. > > > > > > > > How do I have SDL recognize the library's provided by SDL::Alien, > > or > > > > what am I doing wrong? > > > > > > > > Thanks, > > > > > > > > > > > > Here is my script: > > > > > > > > #!/usr/bin/perl > > > > use 5.010; > > > > use strict; > > > > use warnings; > > > > use SDLx::App; > > > > use SDLx::Sprite; > > > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > > $sprite->draw($app); > > > > > > > >Here is the Error > > > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > > libjpeg.so.8: cannot open shared object file: No such file or > > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > > called > > > > at ./slideshow.pl line 14 > > > > > > > > > > > > #-- > > > > Adam Fairbrother > > > > Help Desk Technician > > > > afairbrot...@sd73.bc.ca > > > > School District #73 > > > > > > -- > > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > > For additional commands, e-mail: beginners-h...@perl.org > > > http://learn.perl.org/ > > -- > > Kartik Thakore -- Kartik Thakore
Re: Problem with SDL::Perl
My bad, I guess I glossed by the sdl-devel@perl.org list when I was looking through. Here is a link to a file that contains the stdout from "fforce install Alien::SDL SDL" inside the cpan shell. If it's not the information you were looking for let me know and I can provide the correct info. http://dl.dropbox.com/u/949632/build.text #-- Adam Fairbrother Help Desk Technician afairbrot...@sd73.bc.ca School District #73 - "Kartik Thakore" wrote: > > Hi, > H Adam, > > > > It's been a week since I asked about this and No one has responded, > Did I ask incorrectly or in the wrong mailing list? > > > Apologies for that I normally don't see this mailing list. > sdl-devel@perl.org is a better list for these things. > > Any help that could be provided would be appreciated. > > Absolutely, it seems that your Alien::SDL install had a bit of a > hiccup. Can you paste your > build text? > > $ cpan > => fforce install Alien::SDL SDL > > > > Thanks, > > > > #-- > > Adam Fairbrother > > Help Desk Technician > > afairbrot...@sd73.bc.ca > > School District #73 > > > - "Adam Fairbrother" wrote: > > > > Hi I'm having a bit of trouble getting a SDL::Perl running on a > debian > > > Lenny setup. > > > > > > I have SDL::Perl installed from CPAN. > > > Alien::SDL installed from cpan with the option to build all > > > dependencies and library's. > > > > > > When I was testing to get things working, my short test script > would > > > throw an error. The script and the error are below. > > > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess > is > > > that SDL isn't correctly configured to pick up that library > folder. I > > > don't want to mess up the system SDL install incase something > goes > > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, > as > > > there is no package for it. > > > > > > How do I have SDL recognize the library's provided by SDL::Alien, > or > > > what am I doing wrong? > > > > > > Thanks, > > > > > > > > > Here is my script: > > > > > > #!/usr/bin/perl > > > use 5.010; > > > use strict; > > > use warnings; > > > use SDLx::App; > > > use SDLx::Sprite; > > > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > > $sprite->draw($app); > > > > > >Here is the Error > > > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > > libjpeg.so.8: cannot open shared object file: No such file or > > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') > called > > > at ./slideshow.pl line 14 > > > > > > > > > #-- > > > Adam Fairbrother > > > Help Desk Technician > > > afairbrot...@sd73.bc.ca > > > School District #73 > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > -- > Kartik Thakore
RE: Problem with SDL::Perl
Who the fuck are you ? -Message d'origine- De : Kartik Thakore [mailto:thakore.kar...@gmail.com] Envoyé : mardi 14 juin 2011 16:53 À : afairbrot...@sd73.bc.ca Cc : beginn...@perl.org; sdl-devel Objet : Re: Problem with SDL::Perl > Hi, H Adam, > > It's been a week since I asked about this and No one has responded, Did I > ask incorrectly or in the wrong mailing list? > Apologies for that I normally don't see this mailing list. sdl-devel@perl.org is a better list for these things. > Any help that could be provided would be appreciated. Absolutely, it seems that your Alien::SDL install had a bit of a hiccup. Can you paste your build text? $ cpan => fforce install Alien::SDL SDL > Thanks, > > #-- > Adam Fairbrother > Help Desk Technician > afairbrot...@sd73.bc.ca > School District #73 > - "Adam Fairbrother" wrote: > > Hi I'm having a bit of trouble getting a SDL::Perl running on a debian > > Lenny setup. > > > > I have SDL::Perl installed from CPAN. > > Alien::SDL installed from cpan with the option to build all > > dependencies and library's. > > > > When I was testing to get things working, my short test script would > > throw an error. The script and the error are below. > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess is > > that SDL isn't correctly configured to pick up that library folder. I > > don't want to mess up the system SDL install incase something goes > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, as > > there is no package for it. > > > > How do I have SDL recognize the library's provided by SDL::Alien, or > > what am I doing wrong? > > > > Thanks, > > > > > > Here is my script: > > > > #!/usr/bin/perl > > use 5.010; > > use strict; > > use warnings; > > use SDLx::App; > > use SDLx::Sprite; > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > $sprite->draw($app); > > > >Here is the Error > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > libjpeg.so.8: cannot open shared object file: No such file or > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') called > > at ./slideshow.pl line 14 > > > > > > #-- > > Adam Fairbrother > > Help Desk Technician > > afairbrot...@sd73.bc.ca > > School District #73 > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ -- Kartik Thakore
Re: Problem with SDL::Perl
> Hi, H Adam, > > It's been a week since I asked about this and No one has responded, Did I > ask incorrectly or in the wrong mailing list? > Apologies for that I normally don't see this mailing list. sdl-devel@perl.org is a better list for these things. > Any help that could be provided would be appreciated. Absolutely, it seems that your Alien::SDL install had a bit of a hiccup. Can you paste your build text? $ cpan => fforce install Alien::SDL SDL > Thanks, > > #-- > Adam Fairbrother > Help Desk Technician > afairbrot...@sd73.bc.ca > School District #73 > - "Adam Fairbrother" wrote: > > Hi I'm having a bit of trouble getting a SDL::Perl running on a debian > > Lenny setup. > > > > I have SDL::Perl installed from CPAN. > > Alien::SDL installed from cpan with the option to build all > > dependencies and library's. > > > > When I was testing to get things working, my short test script would > > throw an error. The script and the error are below. > > > > I have libjpeg.so.8 built in the Alien SDL directory, but my guess is > > that SDL isn't correctly configured to pick up that library folder. I > > don't want to mess up the system SDL install incase something goes > > wrong, and I can't install libjpeg.so.8 from packages on Lenny, as > > there is no package for it. > > > > How do I have SDL recognize the library's provided by SDL::Alien, or > > what am I doing wrong? > > > > Thanks, > > > > > > Here is my script: > > > > #!/usr/bin/perl > > use 5.010; > > use strict; > > use warnings; > > use SDLx::App; > > use SDLx::Sprite; > > > > my $app = SDLx::App->new(height=>1024,width=>768); > > > > my $sprite = SDLx::Sprite->new(image=>'pic.jpg'); > > $sprite->draw($app); > > > >Here is the Error > > > > error loading image pic.jpg: Failed loading libjpeg.so.8: > > libjpeg.so.8: cannot open shared object file: No such file or > > directory at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 > >SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at > > /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 > >SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') called > > at ./slideshow.pl line 14 > > > > > > #-- > > Adam Fairbrother > > Help Desk Technician > > afairbrot...@sd73.bc.ca > > School District #73 > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ -- Kartik Thakore
Some problem with SDL-perl
Hi. I just started programming using perl and found out the sdl-perl project. Here is my creation [code] *#!/usr/bin/perl* *use* Thread; *use* SDL::App; *use* SDL::Event; *use* SDL::Rect; *use* SDL::Color; *use* SDL::Surface; *use* SDL::Tool::Font; $FPSTimer = 1000; $frame = 0; $thr = new Thread \&event; *my* $app = SDL::App->new( -height => 640, *-w*idth => 480, *-d*epth => 16, *-t*itle => *"*Moteur 2D en PERL par frozon*"*, ); *my* $screen = SDL::Rect->new(-height => 100, *-w*idth => 100, *-x* => 0, -*y *=> 0,); *my* $color = SDL::Color->new(*-r* => 0x00,*-g* => 0x00,*-b* => 0xff,); $app->fill($screen, $color); $app->update($screen); *my* $f = SDL::Tool::Font->new( *-t*tfont=>*"*arial.ttf*"*, ); *while*(1){ $FrameStart = SDL::GetTicks(); $frame = $frame + 1; *#action ici.* $ticks = SDL::GetTicks(); $delay = (($ticks-$FrameStart)+10); SDL::Delay($delay); *if*(SDL::GetTicks > $FPSTimer) { $FPSTimer = $FPSTimer + 1000; $titre = *"*Moteur 2D en PERL par Frozon (FPS: $frame)*"*; $fps = *"*FPS: $frame*"*; SDL::WMSetCaption(*"*$titre*"*, NULL); $f->print($screen, 0, 0, *"*Key Pressed*"*); *#SDL::Tool::Font::print($screen, 10, 10, $fps);* $frame = 0; } } *sub *event { *my* $event = new SDL::Event; *while* ($event->wait()) { *my* $type = $event->type(); exit *if* $type == SDL_QUIT; } } [/code] The problem is that when i run the program it works until it try to use $f->print... I have looked around using google and found that you already speak about that. Some one can help me a little about that please. I waiting forward to your answer.