ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] Re: add -DZ_PREFIX


From: Stuart Hughes
Subject: [Ltib] Re: add -DZ_PREFIX
Date: Mon, 05 Nov 2007 08:55:28 +0000

Hi Henry,

This is only needed as a host, not a target package.  You just need to
make sure you have: /opt/freescale/ltib/usr/bin/pkg-config

Regards, Stuart

On Fri, 2007-11-02 at 16:24 -0700, hong zhang wrote:
> Stuart,
> 
> I failed to build ltib -p pkgconfig.spec on 20071008
> release. It complains "cannot run test for cross
> compile". Does pkg-config 2.2 contain the patch and do
> better job?
> 
> ---henry
> 
> --- Stuart Hughes <address@hidden> wrote:
> 
> > Hi Henry, 
> > 
> > There is information on pkg-config here:
> > http://pkg-config.freedesktop.org/wiki/
> > but basically when set up right, when a package
> > build needs interface
> > headers/libraries from another package it can run
> > pkg-config queries to
> > find out where and what headers/libraries it needs
> > to use in it
> > compile/link command lines.
> > 
> > Normally this doesn't work properly when cross
> > compiling, but I've added
> > a patch in LTIB so that it does (see pkgconfig.spec
> > :
> > pkg-config-0.21-prefix_mungling.patch).  This in
> > conjunction with the
> > spoofing system means that pkg-config works without
> > having to do
> > anything special while building within LTIB.  This
> > has been tested when
> > I did the original work to get the gstreamer set of
> > packages to build
> > properly.
> > 
> > The only caveat is that you'll need a recent LTIB to
> > get hold of this,
> > it's not yet available in the Savannah CVS copy (but
> > I will be merging
> > out soon).
> > 
> > Regards, Stuart
> > 
> > On Wed, 2007-10-31 at 10:59 -0700, hong zhang wrote:
> > > Stuart,
> > > 
> > > I think Z_PREFIX is not needed any more for
> > compiling
> > > DirectFB. Trouble is I really not quite understand
> > > pkg_conifg for. Do you know where is information
> > about
> > > it so that I can learn it?
> > > 
> > > ---henry
> > > 
> > > --- Stuart Hughes <address@hidden> wrote:
> > > 
> > > > Hi Henry,
> > > > 
> > > > Are you using the LTIB from an iso image, if so
> > what
> > > > version? or are you
> > > > using the version from bitshrine/savannah?  The
> > > > reason I ask is that I
> > > > pending merge out to bitshrine/savannah that
> > makes
> > > > pkg_config work
> > > > properly in a cross compiled environment and
> > > > possibly that will help you
> > > > (you won't need to specify the pkg_config files
> > on
> > > > configure line).  If
> > > > you have a recent Freescale ISO it will already
> > have
> > > > these updates.
> > > > 
> > > > I didn't understand your question about Z_PREFIX
> > ?
> > > > 
> > > > Regards, Stuart
> > > > 
> > > > On Wed, 2007-10-31 at 09:45 -0700, hong zhang
> > wrote:
> > > > > Stuart,
> > > > > 
> > > > > After adding
> > > > >
> > LIBPNG_CONFIG="$(HOST_DIR)/bin/libpng12-config" \
> > > > >  and DirectFB build successfully with
> > > > > --with-gfxdrivers=none. But still have error
> > > > without
> > > > > --with-gfxdrivers=none.
> > > > > 
> > > > > Why do you think Z_PREFIX will be turned on
> > > > default?
> > > > > 
> > > > > ---henry
> > > > > 
> > > > > --- Stuart Hughes <address@hidden>
> > wrote:
> > > > > 
> > > > > > Hi Henry,
> > > > > > 
> > > > > > LTIB will find the headers in rootfs in
> > > > preference
> > > > > > to the toolchain.
> > > > > > 
> > > > > > To add this flag, it would probably work by
> > > > changing
> > > > > > the spec file to:
> > > > > > 
> > > > > > CFLAGS="-DZ_PREFIX" \
> > > > > > ./configure --enable-shared --host=$CFGHOST
> > > > > > --build=%{_build} \
> > > > > > ....
> > > > > > 
> > > > > > What does this flag do, and do you know why
> > the
> > > > > > things it turns on in
> > > > > > zconf.h are not enabled by default?
> > > > > > 
> > > > > > Regards, Stuart
> > > > > > 
> > > > > > On Tue, 2007-10-30 at 15:27 -0700, hong
> > zhang
> > > > wrote:
> > > > > > > Stuart,
> > > > > > > 
> > > > > > > I want to add -DZ_PREFIX to turn on inside
> > > > > > zconf.h.
> > > > > > > Where should I add  -DZ_PREFIX  in
> > > > DirectFB.spec?
> > > > > > > 
> > > > > > > When I upgrade zlib and I found library
> > header
> > > > > > files
> > > > > > > in toolchain is not upgraded and rootfs is
> > > > > > upgraded.
> > > > > > > 
> > > > > > > Thanks.
> > > > > > > 
> > > > > > > ---henry
> > > > > > > 
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Tired of spam?  Yahoo! Mail has the best
> > spam
> > > > > > protection around 
> > > > > > > http://mail.yahoo.com 
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best spam
> > > > protection around 
> > > > > http://mail.yahoo.com 
> > > > 
> > > > 
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > > http://mail.yahoo.com 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]