On Thu, 3 Feb 2011 01:03:24 +0800
Nicholas Rothschild <
rothsdad@gmail.com> wrote:
> Hi, I'm a archlinux user. I want to use lua-gd on it. After compile,
> there's no error, but just cannot use the gd.so.
>
> Here my compile log:
>
> gcc -o gd.so `gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
> `gdlib-config --cflags` `pkg-config lua --cflags` -O3 -Wall -shared
> `gdlib-config --ldflags` `gdlib-config --libs` `pkg-config lua
> --libs` -lgd luagd.c lua test_features.lua
> lua: error loading module 'gd' from file './gd.so':
> ./gd.so: undefined symbol: gdImageGifAnimEndPtr
> stack traceback:
> [C]: ?
> [C]: in function 'require'
> test_features.lua:5: in main chunk
> [C]: ?
> make: *** [gd.so] error 1
>
> Here's my output of "gdlib-config --features":
> GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM
> GD_OPENPOLYGON