sorry wrong patch: http://thread.gmane.org/gmane.comp.graphics.directfb.devel/3306
On Thu, Apr 21, 2011 at 7:46 AM, haithem rahmani <haithem.rahm...@gmail.com>wrote: > Hi, > > It's a known issue. > the idirectfbimageprovider_png.c is not compilable with libpng-1.5. > Waiting for DoK or Andi to fix that, you can apply the follwowing patch > posted by Mike Frysinger. > > http://thread.gmane.org/gmane.comp.graphics.directfb.devel/3307 > > HtH > > haithem. > > > On Thu, Apr 21, 2011 at 1:35 AM, Damien Wieman <dami...@embedcard.com>wrote: > >> Hi all, >> >> Sorry if I've done something newbish, as I am new to embedded Linux, but I >> have been headbutting this for a week now and this seems to be blocking me. >> >> I have been cross compiling DirectFB and trying to install it in a >> pre-existing file system on a NXP3250 demo board we are reviewing for a >> future platform. I am getting part way through the make and getting a set >> of errors I have not been able to solve. I am using the following command: >> >> >> $ CC=arm-vfp-linux-gnu-gcc \ >> LDFLAGS=-L/home/user/Documents/Projects/Mini3250/filesystem/staging/usr/lib >> \ >> CPPFLAGS=-I/home/user/Documents/Projects/Mini3250/filesystem/staging/usr/include >> \ >> PKG_CONFIG_PATH=/home/user/Documents/Projects/Mini3250/filesystem/staging/usr/lib/pkgconfig >> \ >> PKG_CONFIG_SYSROOT_DIR=/home/user/Documents/Projects/Mini3250/filesystem/staging >> \ >> ./configure --host=arm-vfp-linux-gnu --prefix=/usr --with-gfxdrivers=none >> --with-inputdrivers=all >> $ make >> >> And eventually get the following error: >> >> libtool: compile: arm-vfp-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. >> -I../../include -I../../include -I../../lib -I../../lib -I../../src >> -DDATADIR=\"/usr/share/directfb-1.4.9\" >> -I/home/user/Documents/Projects/Mini3250/filesystem/staging/usr/include/libpng15 >> -D_REENTRANT >> -I/home/user/Documents/Projects/Mini3250/filesystem/staging/usr/include -O3 >> -ffast-math -pipe -D_GNU_SOURCE -std=gnu99 >> -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:210: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c: In function >> 'IDirectFBImageProvider_PNG_RenderTo': >> idirectfbimageprovider_png.c:295: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:337: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:380: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:389: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:443: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c: In function 'png_info_callback': >> idirectfbimageprovider_png.c:602: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:603: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:604: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:604: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:616: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:628: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:638: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:639: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:640: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:641: error: dereferencing pointer to >> incomplete type >> idirectfbimageprovider_png.c:641: error: dereferencing pointer to >> incomplete type >> >> More info: >> I've already installed the following libaries with the following commands, >> as I understand it at leas the png libaries had dependices as well and it >> seemed to isntall OK >> ----------------Free Type 2------------------------ >> - freetype-2.4.2 >> >> $ CC=arm-vfp-linux-gnu-gcc \ >> ./configure --host=arm-vfp-linux-gnu >> $ make >> $ make DESTDIR=/home/user/Documents/Projects/Mini3250/filesystem/mini3250/ >> install >> >> >> ----------------------jpeg-8c------------------------------ >> >> $ CC=arm-vfp-linux-gnu-gcc ./configure --host=arm-vfp-linux-gnu >> $ make >> $ make DESTDIR=/home/user/Documents/Projects/Mini3250/filesystem/mini3250/ >> install >> >> >> ------------zlib-1.2.5----------------------------- >> $ export CC=arm-vfp-linux-gnu-gcc >> $ ./configure >> $ make >> $ make DESTDIR=../mini3250 install >> >> >> ----------------------------------------------libpng-1.5.2---------------------------------------------- >> >> $ export CC=arm-vfp-linux-gnu-gcc >> $ export >> LDFLAGS=-L/home/user/Documents/Projects/Mini3250/filesystem/mini3250/usr/local/lib >> $ export >> CPPFLAGS=-I/home/user/Documents/Projects/Mini3250/filesystem/mini3250/usr/local/include >> $ ./configure --host=arm-vfp-linux-gnu >> $ make >> $ make DESTDIR=/home/user/Documents/Projects/Mini3250/filesystem/mini3250/ >> install >> >> Thanks! >> >> Damien Wieman >> _______________________________________________ >> directfb-users mailing list >> directfb-users@directfb.org >> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users >> > > > > -- > * > "If you ask a question - you will be a fool for 5 minutes, otherwise > ignorant for rest of your life" > * > > -- * "If you ask a question - you will be a fool for 5 minutes, otherwise ignorant for rest of your life" *
_______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users