Brian,
When I check /usr/include/zconf.h. It asks -DZ_PREFIX.
DirectFB will create Makefile after ./configure. Where
should I turn on -Z_PREFIX?
---henry
--- Brian Austin <[EMAIL PROTECTED]> wrote:
> One of the deals I come across in cross'in with
> ARM's is the .pc files
> need to have the correct libdir= path set right for
> zlib.
>
> It doesnt seem actually like a PNG issue, more like
> a ZLIB issue.
>
> here is what my cross config for DFB looks like.
>
>
> PATH="$(DIRECTFB_DIR)/tools:$$PATH" \
> CFLAGS="$(TARGET_CFLAGS)" \
> LDFLAGS="$(TARGET_LDFLAGS)" \
> LIBS="-lts" \
> FREETYPE_CONFIG="$(HOST_DIR)/bin/freetype-config"
> \
> LIBPNG_CONFIG="$(HOST_DIR)/bin/libpng12-config" \
> PKG_CONFIG_SYSROOT="$(HOST_DIR)" \
> PKG_CONFIG_PATH="$(HOST_DIR)/bin:$$PATH" \
> PKG_CONFIG="$(HOST_DIR)/bin/pkg-config" \
> ac_cv_header_linux_wm97xx_h=no \
> ac_cv_header_linux_sisfb_h=no \
> sh autogen.sh \
> --target=arm-linux \
> --host=arm-linux \
> --build=$(GNU_HOST_NAME) \
> --prefix=/ \
> --exec-prefix=/ \
> --bindir=/bin \
> --sbindir=/sbin \
> --libdir=/lib \
> --libexecdir=/lib \
> --sysconfdir=/etc \
> --datadir=/usr/share \
> --localstatedir=/var \
> --includedir=/include \
> --mandir=/usr/man \
> --infodir=/usr/info \
> --enable-unique \
> --enable-jpeg \
> --enable-png \
> --enable-linux-input \
> --enable-zlib \
> --enable-fbdev \
> --with-gfxdrivers=edb93xx \
>
> --with-inputdrivers=linuxinput,lirc,keyboard,tslib\
> --with-tools \
> --enable-freetype \
> --enable-sysfs \
> --disable-sdl \
> --disable-video4linux \
> --disable-video4linux2 \
> --disable-mmx \
> --disable-sse \
> --enable-shared=yes \
> --enable-static=yes \
> --without-tools \
> --enable-multi \
>
> blah blah blah.
>
> The key is making sure it picks up where the cross'd
> libs are residing.
>
>
> On Tue, 2007-10-30 at 14:02 -0700, hong zhang wrote:
> > Ville, Brian,
> >
> > After upgrade to zlib-1.2.3 and libpng-1.2.19. Run
> > 1. ./configure --enable-shared --host=$CFGHOST
> > --build=%{_build} \
> > --prefix=%{_prefix} --enable-multi\
> > --disable-x11 --enable-fbdev
> > --enable-video4linux2 --disable-sdl
> >
> > 2. make
> >
> > Stiil get same error. Do those errors mean that
> libpng
> > does not have it?
> >
> > --henry
> >
> > --- Brian Austin <[EMAIL PROTECTED]> wrote:
> >
> > > You'll need zlib as well
> > >
> > >
> > > On Tue, 2007-10-30 at 11:25 -0700, hong zhang
> wrote:
> > > > List,
> > > >
> > > > I am building DirectFB 1.1.0 for my freescale
> ARM
> > > > based board. It complains on libpng12.so. What
> > > version
> > > > of libpng is DirectFB-1.1.0 looking for?
> > > >
> > > > Here is errors,
> > > > gcc
> > > >
> > >
> >
>
-I/home/hzhang/Desktop/ltibads19/rootfs//usr/include/freetype2
> > > >
> > >
> -I/home/hzhang/Desktop/ltibads19/rootfs//usr/include
> > > > -O3 -ffast-math -pipe -D_GNU_SOURCE
> > > > -Werror-implicit-function-declaration -o
> > > > directfb-csource directfb-csource.o -lpng12
> -ldl
> > > > -lpthread
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `deflate'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `inflate'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `inflateInit_'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `crc32'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `pow'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `deflateInit2_'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `inflateReset'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `deflateReset'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `inflateEnd'
> > > >
> > >
> >
>
/home/hzhang/Desktop/ltibads19/rootfs/usr/lib//libpng12.so:
> > > > undefined reference to `deflateEnd'
> > > > collect2: ld returned 1 exit status
> > > > make[2]: *** [directfb-csource] Error 1
> > > >
> > > >
> > > > Thanks for help.
> > > >
> > > > ----henry
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> _______________________________________________
> > > > directfb-dev mailing list
> > > > [email protected]
> > > >
> > >
> >
>
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> > > >
> > >
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
>
>
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev