From: schnitzel m. <sch...@gm...> - 2005-04-04 10:21:12
|
On Apr 1, 2005 5:20 PM, Yves <yme...@pe...> wrote: > Hi, > > Somebody already did this. I hope he would answer with the exact way to do... > Do you have gdlib-config somewhere with ph4-gd ? > If yes, ./configure --with-gdlib_config=/path/to/that/location > > If not, > ./configure CFLAGS=-I/path/to/gd/include LDFLAGS=-L/path/to/gd/lib -lgd > make CFLAGS=-I/path/to/gd/include LDFLAGS=-L/path/to/gd/lib -lgd > > This is not exact and I'm not sure it works. Maybe you will have to add > CPPFLAGS=-I/path/to/gd/include. Maybe you will have to do LDADD like LDFLAGS ? > > Could you send us how you did it if it works for you ? And better, if you can, write > this to the wiki : http://wiki.perfparse.org/tiki-view_faq.php?faqId=1 > Thanks in advance, > > Yves > Thanks for this. Unfortunately it doesn't work :( First I looked for the gd library: # locate include | grep gd /usr/include/gd.h /usr/include/gdc.h /usr/include/gdchart.h /usr/include/gdcpie.h /usr/include/gdfontg.h /usr/include/gdfontl.h /usr/include/gdfontmb.h /usr/include/gdfonts.h /usr/include/gdfontt.h /usr/include/gd_io.h /usr/include/glib-2.0/glib/gdataset.h /usr/include/glib-2.0/glib/gdate.h /usr/include/glib-2.0/glib/gdir.h /usr/include/linux/ipmi_msgdefs.h So /usr/include looks likely for the path. Then I ran # ./configure CFLAGS=-I/usr/include LDFLAGS=-L/usr/include -lgd configure: error: unrecognized option: -lgd So then I ran # ./configure CFLAGS=-I/usr/include LDFLAGS=-L/usr/include && make which complained about perfchart_png-perfchart.o(.text+0x22a): In function `main': : undefined reference to `gdImageRectangle' again. Here are the GD packages I have installed: # dpkg -l|grep GD ii libgd-dev 1.8.4-36.1 GD Graphics Library (transitional package) ii libgd-noxpm-de 1.8.4-36.1 GD Graphics Library (old version, without XP ii libgd1 1.8.4-36.1 GD Graphics Library (transitional package) ii libgd1-noxpm 1.8.4-36.1 GD Graphics Library (old version, without XP ii libgd2 2.0.33-1.1 GD Graphics Library version 2 ii libgd2-xpm 2.0.33-1.1 GD Graphics Library version 2 ii libgdchart-gd2 0.11.4-6 Generate graphs using the GD library ii libgdchart-gd2 0.11.4-6 Generate graphs using the GD library (develo ii php4-gd 4.3.10-9 GD module for php4 Hope you can help me on this one. ss |