Thanks for the help. I tried to install Gtk2::Ex::Graph::* modules.
Couldn't succeed.

There was an error while building GD.pm:

gcc -c -I/usr/include -I/usr/include/gd -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe
-march=i386 -mcpu=i686 -DVERSION=\"2.35\" -DXS_VERSION=\"2.35\" -fPIC
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT
-DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c


`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
GD.xs: In function 'newDynamicCtx':
GD.xs:444: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'gd_cloneDim':
GD.xs:464: error: 'gdImage' has no member named 'alpha'
GD.xs:464: error: 'gdImage' has no member named 'alpha'
GD.xs:470: error: 'gdImage' has no member named 'thick'
GD.xs:470: error: 'gdImage' has no member named 'thick'
GD.xs: In function 'XS_GD__Image_newFromPngData':
GD.xs:640: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'XS_GD__Image_newFromJpegData':
GD.xs:696: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'XS_GD__Image_newFromWBMPData':
GD.xs:723: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'XS_GD__Image__newFromGif':
GD.xs:855: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Image_newFromGifData':
GD.xs:878: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'XS_GD__Image_STORABLE_thaw':
GD.xs:922: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Image_copyRotate90':
GD.xs:1246: error: invalid lvalue in assignment
GD.xs:1246: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyRotate180':
GD.xs:1267: error: invalid lvalue in assignment
GD.xs:1267: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyRotate270':
GD.xs:1288: error: invalid lvalue in assignment
GD.xs:1288: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyFlipHorizontal':
GD.xs:1309: error: invalid lvalue in assignment
GD.xs:1309: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyFlipVertical':
GD.xs:1330: error: invalid lvalue in assignment
GD.xs:1330: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyTranspose':
GD.xs:1351: error: invalid lvalue in assignment
GD.xs:1351: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_copyReverseTranspose':
GD.xs:1372: error: invalid lvalue in assignment
GD.xs:1372: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_rotate180':
GD.xs:1392: error: invalid lvalue in assignment
GD.xs:1392: error: invalid lvalue in assignment
GD.xs:1393: error: invalid lvalue in assignment
GD.xs:1393: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_flipHorizontal':
GD.xs:1431: error: invalid lvalue in assignment
GD.xs:1431: error: invalid lvalue in assignment
GD.xs:1432: error: invalid lvalue in assignment
GD.xs:1432: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_flipVertical':
GD.xs:1449: error: invalid lvalue in assignment
GD.xs:1449: error: invalid lvalue in assignment
GD.xs:1450: error: invalid lvalue in assignment
GD.xs:1450: error: invalid lvalue in assignment
GD.xs: In function 'XS_GD__Image_stringFT':
GD.xs:2163: error: 'gdFTStringExtra' undeclared (first use in this function)
GD.xs:2163: error: (Each undeclared identifier is reported only once
GD.xs:2163: error: for each function it appears in.)
GD.xs:2163: error: expected ';' before 'strex'
GD.xs:2182: error: 'strex' undeclared (first use in this function)
GD.xs:2186: error: 'gdFTEX_LINESPACE' undeclared (first use in this
function)
GD.xs:2190: error: 'gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:2192: error: 'gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:2194: error: 'gdFTEX_Shift_JIS' undeclared (first use in this
function)
GD.xs:2196: error: 'gdFTEX_Big5' undeclared (first use in this function)
GD.xs:2217: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Font_DESTROY':
GD.xs:2437: warning: comparison between pointer and integer
GD.xs:2438: warning: comparison between pointer and integer
GD.xs:2439: warning: comparison between pointer and integer
GD.xs:2440: warning: comparison between pointer and integer
GD.xs:2441: warning: comparison between pointer and integer
GD.xs: In function 'XS_GD__Font_Small':
GD.xs:2453: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Font_Large':
GD.xs:2464: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Font_Giant':
GD.xs:2475: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Font_MediumBold':
GD.xs:2486: warning: assignment makes pointer from integer without a cast
GD.xs: In function 'XS_GD__Font_Tiny':
GD.xs:2497: warning: assignment makes pointer from integer without a cast

Looking at the first error,

GD.xs:444: error: 'gdIOCtx' has no member named 'gd_free'

Indeed, this structure is not having 'gd_free' member!

/usr/include/gd_io.h

  4 #include <stdio.h>
  5
  6 typedef struct gdIOCtx {
  7     int (*getC)(struct gdIOCtx*);
  8     int (*getBuf)(struct gdIOCtx*, void*, int);
  9
 10         void     (*putC)(struct gdIOCtx*, int);
 11     int (*putBuf)(struct gdIOCtx*, const void*, int);
 12
 13     int (*seek)(struct gdIOCtx*, const int);
 14     long    (*tell)(struct gdIOCtx*);
 15
 16     void    (*free)(struct gdIOCtx*);
 17
 18 } gdIOCtx;

What have I missed? Is there a version mismatch between gd_io.h and GD.pm?

Thanks for your time...

On Tue, Mar 25, 2008 at 11:14 PM, Chas. Owens <[EMAIL PROTECTED]> wrote:

> On Tue, Mar 25, 2008 at 1:31 PM, Gowtham M <[EMAIL PROTECTED]>
> wrote:
> > Hello experts,
> >
> >  This question is related to GUI development with perl. I am
> >  willing write a perl script which I can use to visualize some
> >  data.
> >
> >  Basically, I have two tables.
> >
> >  Table1 ====> (x1, y1), (x2, y2) ....... (xn, yn)
> >  Table2 ====> (a1,b1), (a2,b2), ......... (am,bm)
> >
> >  I am looking for a Widget in perl, which  can plot a
> >  set of data points and which is able to zoom in/out of the plot.
> >
> >  I would prefer to use Gtk2, because its look and feel closely
> >  resembles the native windowing system's look and feel.
> >
> >  So, does Gtk2 support such a widget?
> >  If not, which other toolkits support such a widget?
> >
> >  I have tried gnuplot, but unfortunately, zooming is not supported :(
> >
> >  Thanks for your help
> >
> >
> >  --
> >  Gowtham M
> >
>
> Take a look at Gtk2::Ex::Graph::GD*.  You may also want to search for
> Gtk2::Ex on CPAN (Gtk2::Ex is where you will find all of the widgets
> that are not part of the default Gtk2 widget set).
>
> * http://search.cpan.org/dist/Gtk2-Ex-Graph-GD/lib/Gtk2/Ex/Graph/GD.pm
>
> --
> Chas. Owens
> wonkden.net
> The most important skill a programmer can have is the ability to read.
>



-- 
Gowtham M

Reply via email to