All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Poky <poky@o-hand.com>, openembedded-devel@lists.openembedded.org
Subject: pkg-config confusion
Date: Fri, 24 Sep 2010 06:43:17 -0600	[thread overview]
Message-ID: <4C9C9CE5.80404@mlbassoc.com> (raw)

I'm trying to update the gstreamer plugin recipes to use the
latest released packages.  This is causing some problems though
as with the newest code, the wrong version of ORCC is being used.

I've traced this down to the fact that previous releases just
inferred ORCC=orcc which worked correctly and picked up the
cross-tool compiler (in sysroots/i686-linux/... etc)

However, the new releases have a fancy M4 macro plus some command
line magic for using ORCC.  This falls apart because of these
lines:
       ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`

Looking into this at configure time, I see that there is some confusion

ORCC=/usr/bin/orcc, PKG_CONFIG=/home/local/p69_poky/tmp/sysroots/i686-linux/usr/bin/pkg-config => /home/local/p69_poky/tmp/sysroots/i686-linux/usr/bin/pkg-config
PKG_CONFIG_DISABLE_UNINSTALLED=yes
PKG_CONFIG_SYSROOT_DIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi
PKG_CONFIG_DIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_LIBDIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_PATH=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig:/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/share/pkgconfig

So, it looks like bitbake is trying to run pkg-config using the
native version, but with the installed target databases.  This
in turn has it pick up the target version of ORCC, not the cross
version.

How can I convince it otherwise?

n.b. I think this same problem exists elsewhere as I've seen it
try to use the wrong version of the pygobject compiler which is
handled similarly.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



             reply	other threads:[~2010-09-24 12:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24 12:43 Gary Thomas [this message]
2010-09-24 13:42 ` [PATCH 1/2] gst-plugins-base 0.10.30: depend on gtk+ Michael Smith
2010-09-24 13:42   ` [PATCH 2/2] gst-plugins.inc: fix path to orcc when prefix != /usr Michael Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9C9CE5.80404@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=poky@o-hand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.