Skip to contentSkip to conversation

Undefined 'pc_sysrootdir' in libxenomai_posix.pc ?

Xenomai-core varname 2 participants 4 messages Sep 12, 2011

lore
Share & tools
lore

varname

author
#0 lore raw

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.

#1 lore raw
Quoted 10 lines · varname

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}

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 15 lines · Gilles Chanteperdrix
Quoted 10 lines · varname

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.

Quoted 8 lines

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

Signature · 1 line
					    Gilles.
author
#3 lore raw
Quoted 20 lines · Gilles Chanteperdrix
Quoted 19 lines · Gilles Chanteperdrix
Quoted 10 lines · varname

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:

Quoted 7 lines
Quoted 4 lines

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.