GDChart
Mike Steed
msteed at fiber.net
Fri Aug 11 22:50:19 EDT 2000
Hung Jung Lu wrote:
>
> Hi,
>
> Does anyone have experience with GDChart (Python interface to GD)?
>
> http://www.fred.net/brv/chart/
>
> I tried to install it on Linux, the make process seems fine, but I get the
> following error in Python:
>
> >>>import gdchart
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> ImportError: ./gdchart.so: undefined symbol: gdImagePng
>
> Any help is appreciated.
I became aware of this problem several days ago, but being the slacker
that I am, I have not yet put an updated archive on the web.
Here's the fix. In gd-1.8.1/Makefile, change line 18 from:
CFLAGS=-O
to:
CFLAGS=-O -DHAVE_JPEG
And change line 25 from:
LIBS=-lm -lgd -lpng -lz
to:
LIBS=-lm -lgd -lpng -lz -ljpeg
Then if you rebuild libgd and the Python interface, it should all work.
Sorry for the hassle.
> regards,
>
> Hung Jung
--
M.
More information about the Python-list
mailing list