Date: Thu, 4 Jun 2009 15:35:07 -0700 (PDT) From: Demonjack <demonjack42@yahoo.com> To: freebsd-perl@freebsd.org Subject: Re: GD::Image Can't locate object newFromPng Message-ID: <23879062.post@talk.nabble.com> In-Reply-To: <23878993.post@talk.nabble.com> References: <23876448.post@talk.nabble.com> <20090604200521.GA84861@heechee.tobez.org> <23877108.post@talk.nabble.com> <20090604203037.GB84861@heechee.tobez.org> <23878993.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Just checked that lib location and libpng.so is linked to libpng12.so.0 So that's probably right? :confused: thx Demon Demonjack wrote: > > This is the output from the ldd command. > > /usr/local/lib/perl5/site_perl/5.8.9/mach/auto/GD/GD.so: > libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 > (0x281a0000) > libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x28300000) > libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x281c9000) > libm.so.5 => /lib/libm.so.5 (0x28372000) > libgd.so.2 => /usr/local/lib/libgd.so.2 (0x28387000) > libc.so.7 => /lib/libc.so.7 (0x28080000) > libz.so.4 => /lib/libz.so.4 (0x281ec000) > libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x283d9000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x283f9000) > > it lists libpng12.so.0 but not libpng.so? Is that right??? > > thx > Demon > > > > > Anton Berezin-2 wrote: >> >> On Thu, Jun 04, 2009 at 01:25:09PM -0700, Demonjack wrote: >>> >>> Here's a piece of code that will generate the problem on my system. I >>> think >>> the problem is the the GD module doesn't have the PNG support in it, but >>> it >>> said it compiled with it so, I'm not sure how to determine if indeed it >>> did >>> or not? >> >> # ldd /usr/local/lib/perl5/site_perl/*/mach/auto/GD/GD.so >> >> should list "libpng.so". >> >> Other than that, I have no clue, the script certainly looks valid. >> >>> #!/usr/bin/perl >>> # >>> # >>> use Cflow qw(:flowvars find); # for reading Cflowd data files >>> use Socket; # for socket functions >>> use POSIX; # for strftime >>> use RRDs; # RRDTOOL stuff >>> use Time::Local; # need the timelocal function >>> use Storable; >>> use Net::Patricia; >>> use GD; >>> use strict; >>> use warnings; >>> >>> my $imgFile = "image-16790-0001.png"; >>> >>> my $newimage = new GD::Image(100,100); >>> >>> open (PNG, $imgFile) || die; >>> >>> my $myImage = newFromPng GD::Image(\*PNG); >>> >>> close PNG; >>> >>> >>> _________________________________________ >>> thx >>> Demon >>> >>> >>> Anton Berezin-2 wrote: >>> > >>> > On Thu, Jun 04, 2009 at 12:41:24PM -0700, Demonjack wrote: >>> >> >>> >> FreeBSD 7.0 >>> >> Perl 5.8.9 >>> >> >>> >> I installed... >>> >> >>> >> libpng-1.2.36 >>> >> gd-2.0.35 >>> >> GD-2.41 >>> >> >>> >> I made sure all compiled with PNG support. However, whenever I try >>> and >>> >> run >>> >> the following line of code. >>> >> >>> >> my $myImage = newFromPng GD::Image(\*PNG); or alternatively.... >>> >> my $myImage = GD::Image->newFromPng($imgFile, 1) >>> >> >>> >> I get the following error. >>> >> >>> >> Can't located object method "newFromPng" via package "GD::Image" at >>> blah >>> >> blah blah. >>> >> >>> >> I'm sure it's something I've missed but I can't find it. At this >>> point >>> >> I've >>> >> looked at it so much I can't see the forest for the trees....... >>> >> >>> >> Any help would be appreciated. I'm going to go take a nap. >>> > >>> > Works fine here. Can you post a complete script that exhibits the >>> > problem? >>> > >>> > Cheers, >>> > \Anton. >>> > -- >>> > There is no beauty in entropy. -- Eliezer Yudkowsky >>> > _______________________________________________ >>> > freebsd-perl@freebsd.org mailing list >>> > http://lists.freebsd.org/mailman/listinfo/freebsd-perl >>> > To unsubscribe, send any mail to >>> "freebsd-perl-unsubscribe@freebsd.org" >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/GD%3A%3AImage-Can%27t-locate-object-newFromPng-tp23876448p23877108.html >>> Sent from the freebsd-perl mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> freebsd-perl@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-perl >>> To unsubscribe, send any mail to "freebsd-perl-unsubscribe@freebsd.org" >> >> -- >> There is no beauty in entropy. -- Eliezer Yudkowsky >> _______________________________________________ >> freebsd-perl@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-perl >> To unsubscribe, send any mail to "freebsd-perl-unsubscribe@freebsd.org" >> >> > > -- View this message in context: http://www.nabble.com/GD%3A%3AImage-Can%27t-locate-object-newFromPng-tp23876448p23879062.html Sent from the freebsd-perl mailing list archive at Nabble.com.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23879062.post>