lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This is the output of 'ldd gd.so':
linux-gate.so.1 =>  (0xb77fd000)
libc.so.6 => /lib/libc.so.6 (0xb7683000)
/lib/ld-linux.so.2 (0xb77fe000)


2011/2/3 Rob Hoelz <rob@hoelz.ro>
Hello Nicholas,

Could you run 'ldd gd.so' and post the output?

Thanks,
Rob Hoelz

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