All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: varname <varname@domain.hid>
Cc: Xenomai core <Xenomai-core@domain.hid>
Subject: Re: [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?
Date: Mon, 12 Sep 2011 11:13:37 +0200	[thread overview]
Message-ID: <4E6DCD41.6000209@domain.hid> (raw)
In-Reply-To: <4E6DCC00.50305@domain.hid>

On 09/12/2011 11:08 AM, Gilles Chanteperdrix wrote:
> On 09/12/2011 10:27 AM, varname wrote:
>> Trying to use pkg-config with 2.6.0-rc2 results in the following error 
>> message:
>>
>>    Variable 'pc_sysrootdir' not defined in 
>> '/home/test/usr/xenomai-2.6.0-rc2/lib/pkgconfig/libxenomai_posix.pc'
>>
>> Same behaviour in rc1.
>>
>> Removing ${pc_sysrootdir} seems to work, but I'm not sure that is the 
>> correct fix for this.
> 
> No, the correct use of pkg-config is to pass the PKG_CONFIG_SYSROOT_DIR
> environment variable.
> 
> if the staging variable contains the directory which was used as DESTDIR
> when installing xenomai, you should run pkg-config with the following
> environment variables set:
> 
> PKG_CONFIG_LIBDIR=${staging}/usr/lib/pkgconfig:${staging}/usr/share/pkgconfig
> 
> PKG_CONFIG_SYSROOT_DIR=${staging}
> 

See:
http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/cross-compiling.html

-- 
					    Gilles.


  reply	other threads:[~2011-09-12  9:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-12  8:27 [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ? varname
2011-09-12  9:08 ` Gilles Chanteperdrix
2011-09-12  9:13   ` Gilles Chanteperdrix [this message]
2011-09-12  9:41     ` varname

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=4E6DCD41.6000209@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Xenomai-core@domain.hid \
    --cc=varname@domain.hid \
    /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.