Hi all , i am in trouble with building DirectFB , someone tell me what version of libpng needed to compile Direct FB ?!
i have the latest libtruetype , zlib, libjpeg on opensuse x86 11.3 i compiled and installed libpng 1.5.1 into /usr/lib and i got this error when building directfb with following command ./configure --enable-vnc=no --with-gfxdrivers=i810,i830 --with-inputdrivers=linuxinput,keyboard,ps2mouse ... make[2]: Entering directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0/tools' gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../include -I../include -I../lib -I../src -DDATADIR=\"/usr/local/share/directfb-1.2.0\" -D_REENTRANT -I/usr/local/include/freetype2 -I/usr/local/include -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT directfb-csource.o -MD -MP -MF .deps/directfb-csource.Tpo -c -o directfb-csource.o directfb-csource.c directfb-csource.c: In function 'load_image': directfb-csource.c:302:10: error: dereferencing pointer to incomplete type directfb-csource.c:370:28: error: dereferencing pointer to incomplete type directfb-csource.c:374:37: error: dereferencing pointer to incomplete type directfb-csource.c:374:37: error: dereferencing pointer to incomplete type directfb-csource.c:377:49: error: dereferencing pointer to incomplete type directfb-csource.c:378:49: error: dereferencing pointer to incomplete type directfb-csource.c:379:49: error: dereferencing pointer to incomplete type make[2]: *** [directfb-csource.o] Error 1 make[2]: Leaving directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0' make: *** [all] Error 2 also i recompiled directFB with libpng 1.4.5 and i received following errors : make[3]: Entering directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0/interfaces/IDirectFBImageProvider' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -DDATADIR=\"/usr/local/share/directfb-1.2.0\" -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT idirectfbimageprovider_png.lo -MD -MP -MF .deps/idirectfbimageprovider_png.Tpo -c -o idirectfbimageprovider_png.lo idirectfbimageprovider_png.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -DDATADIR=\"/usr/local/share/directfb-1.2.0\" -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT idirectfbimageprovider_png.lo -MD -MP -MF .deps/idirectfbimageprovider_png.Tpo -c idirectfbimageprovider_png.c -fPIC -DPIC -o .libs/idirectfbimageprovider_png.o idirectfbimageprovider_png.c: In function ‘Construct’: idirectfbimageprovider_png.c:207:6: warning: ‘jmpbuf’ is deprecated (declared at /usr/include/png.h:1108) idirectfbimageprovider_png.c: In function ‘IDirectFBImageProvider_PNG_RenderTo’: idirectfbimageprovider_png.c:334:6: warning: ‘jmpbuf’ is deprecated (declared at /usr/include/png.h:1108) idirectfbimageprovider_png.c:360:21: warning: ‘bit_depth’ is deprecated (declared at /usr/include/png.h:661) idirectfbimageprovider_png.c:403:31: warning: ‘bit_depth’ is deprecated (declared at /usr/include/png.h:661) idirectfbimageprovider_png.c:412:26: warning: ‘bit_depth’ is deprecated (declared at /usr/include/png.h:661) idirectfbimageprovider_png.c:466:36: warning: ‘bit_depth’ is deprecated (declared at /usr/include/png.h:661) idirectfbimageprovider_png.c: In function ‘png_info_callback’: idirectfbimageprovider_png.c:638:16: warning: ‘palette’ is deprecated (declared at /usr/include/png.h:655) idirectfbimageprovider_png.c:639:54: error: ‘png_info’ has no member named ‘trans’ idirectfbimageprovider_png.c:640:16: warning: ‘num_palette’ is deprecated (declared at /usr/include/png.h:657) idirectfbimageprovider_png.c:640:16: warning: ‘num_palette’ is deprecated (declared at /usr/include/png.h:657) idirectfbimageprovider_png.c:652:16: warning: ‘num_trans’ is deprecated (declared at /usr/include/png.h:659) idirectfbimageprovider_png.c:664:53: error: ‘png_info’ has no member named ‘trans_values’ idirectfbimageprovider_png.c:674:16: warning: ‘palette’ is deprecated (declared at /usr/include/png.h:655) idirectfbimageprovider_png.c:675:54: error: ‘png_info’ has no member named ‘trans’ idirectfbimageprovider_png.c:676:16: warning: ‘num_trans’ is deprecated (declared at /usr/include/png.h:659) idirectfbimageprovider_png.c:677:16: warning: ‘num_palette’ is deprecated (declared at /usr/include/png.h:657) idirectfbimageprovider_png.c:677:16: warning: ‘num_palette’ is deprecated (declared at /usr/include/png.h:657) make[3]: *** [idirectfbimageprovider_png.lo] Error 1 make[3]: Leaving directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0/interfaces/IDirectFBImageProvider' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0/interfaces' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Public/Sources/DirectFB/DirectFB-1.2.0' make: *** [all] Error 2 , please answer me what is the problem with pngsupport ?! _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users