* [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?
@ 2011-09-12 8:27 varname
2011-09-12 9:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: varname @ 2011-09-12 8:27 UTC (permalink / raw)
To: Xenomai core
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?
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
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2011-09-12 9:08 UTC (permalink / raw)
To: varname; +Cc: Xenomai core
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}
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?
2011-09-12 9:08 ` Gilles Chanteperdrix
@ 2011-09-12 9:13 ` Gilles Chanteperdrix
2011-09-12 9:41 ` varname
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2011-09-12 9:13 UTC (permalink / raw)
To: varname; +Cc: Xenomai core
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai-core] Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?
2011-09-12 9:13 ` Gilles Chanteperdrix
@ 2011-09-12 9:41 ` varname
0 siblings, 0 replies; 4+ messages in thread
From: varname @ 2011-09-12 9:41 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai core
On 12 September 2011 11:13, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> 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
Right, that explains it. Sorry for the noise.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-12 9:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-09-12 9:41 ` varname
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.