From: FoX <fo...@gm...> - 2006-06-20 09:25:04
|
> I'm slowly getting crazy here.... I'm really sorry to drive you nuts :p > Fixed it again (at least tried to :-) Should work now with and wothout > libgd. Without libgd, there's no image widget. This is how it's supposed > to work. OK, now it compiles great without libgb-dev, on a normal toolchain and with our geexbox custom toolchain. But when I try with libgd-dev installed, it raises me another error : gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -W -g -O2 -c widget_image.c widget_image.c: In function =AB widget_image_render =BB : widget_image.c:156: warning : implicit declaration of function =AB gdImageGetTrueColorPixel =BB widget_image.c:157: warning : implicit declaration of function =AB gdTrueColorGetAlpha =BB widget_image.c:159: warning : implicit declaration of function =AB gdTrueColorGetRed =BB widget_image.c:160: warning : implicit declaration of function =AB gdTrueColorGetGreen =BB widget_image.c:161: warning : implicit declaration of function =AB gdTrueColorGetBlue =BB <snip> drv_Image.o : In function "drv_IMG_flush_PNG" :./drv_Image.c:260: undefined reference to =AB gdImageCreateTrueColor =BB :./drv_Image.c:261: undefined reference to =AB gdTrueColor =BB :./drv_Image.c:268: undefined reference to =AB gdTrueColor =BB widget_image.o : In function "widget_image_render" :./widget_image.c:156: undefined reference to =AB gdImageGetTrueColorPixel = =BB :./widget_image.c:157: undefined reference to =AB gdTrueColorGetAlpha =BB :./widget_image.c:159: undefined reference to =AB gdTrueColorGetRed =BB :./widget_image.c:160: undefined reference to =AB gdTrueColorGetGreen =BB :./widget_image.c:161: undefined reference to =AB gdTrueColorGetBlue =BB I'm on kubuntu dapper drake, I installed libgd-dev with apt-get, and it has also installed libfreetype6-dev, libgd-dev, libgd-noxpm-dev, libgd1-noxpm and libjpeg62-dev. # dpkg -l|grep libgd ii libgd-dev 1.8.4.debian-1 GD Graphics Library (transitional package) ii libgd-noxpm-dev 1.8.4.debian-1 GD Graphics Library (old version, without XP ii libgd1-noxpm 1.8.4.debian-1 GD Graphics Library (old version, without XP ii libgd2-noxpm 2.0.33-2ubuntu5.1 GD Graphics Library version 2 (without XPM s I hope it'll help you. BTW thanks for your fast answers. |