I was compiling the DirectFB-examples-1.0.1.tar.gz from http://www.directfb.org/index.php?path=Main%2FDownloads&page=1
against DirectFB 1.1.1 and I got this error: bfin-linux-uclibc-gcc [snip] -c -o df_dok.o ../../DirectFB-examples-1.0.1/src/df_dok.c ../../DirectFB-examples-1.0.1/src/df_dok.c: In function ‘common_load_image’: ../../DirectFB-examples-1.0.1/src/df_dok.c:1199: error: implicit declaration of function ‘dfb_pixelformat_name’ ../../DirectFB-examples-1.0.1/src/df_dok.c:1199: warning: format ‘%s’ expects type ‘char *’, but argument 7 has type ‘int’ ../../DirectFB-examples-1.0.1/src/df_dok.c:1199: warning: format ‘%s’ expects type ‘char *’, but argument 7 has type ‘int’ ../../DirectFB-examples-1.0.1/src/df_dok.c: In function ‘main’: ../../DirectFB-examples-1.0.1/src/df_dok.c:1618: warning: format ‘%s’ expects type ‘char *’, but argument 6 has type ‘int’ make[5]: *** [df_dok.o] Error 1 Since it looks like dfb_pixelformat_name() was moved to internal/gfx/convert.h. I needed to do this: Index: DirectFB-examples-1.0.1/src/df_dok.c =================================================================== --- DirectFB-examples-1.0.1/src/df_dok.c (revision 6010) +++ DirectFB-examples-1.0.1/src/df_dok.c (working copy) @@ -43,6 +43,7 @@ #include <string.h> /* for strcmp() */ #include "pngtest3.h" +#include "directfb-internal/gfx/convert.h" /* the super interface */ static IDirectFB *dfb; To get it to run. I'm assuming that the example is outdated, and needs to be updated to not use something that was moved to an internal interface? Or is the fix correct? Thanks -Robin _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
