Bug 11464 - pkg-config is not configuring while cross compiling
Summary: pkg-config is not configuring while cross compiling
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: ARM Linux (All)
: high normal
Assignee: Tollef Fog Heen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 22:20 UTC by Satyanarayana K V P
Modified: 2012-05-14 16:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Satyanarayana K V P 2007-07-03 22:20:48 UTC
Dear sir,
 I am cross compiling pkg-config for arm-v5t_le.While configuring it is giving following error.I have removed that error by modifying configure script but it is giving error while making.

I am enclosing those errors below.

checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for glib-1.2.8


Please help me.

Thanks in advance,
Satyanarayana K V P.
Comment 1 Satyanarayana K V P 2007-07-04 00:17:40 UTC
*** Bug 11465 has been marked as a duplicate of this bug. ***
Comment 2 Ryan Schmidt 2009-01-22 03:55:13 UTC
This issue was also reported on the mailing list in December 2008:

http://lists.freedesktop.org/archives/pkg-config/2008-December/000376.html

It's an issue for me as well. I am on an Intel Mac and would like to cross-compile for a 64-bit PowerPC Mac; Intel Macs can run 32-bit PowerPC code via Rosetta, but cannot run 64-bit PowerPC code.
Comment 3 Dan Nicholson 2012-05-14 16:10:20 UTC
I believe all the cross-compiling issues in pkg-config had to do with the embedded glib. glib-1.2 was known to have some issues with cross-compiling. pkg-config now depends on glib-2 and will include a bundled glib-2 in the next version. This one can be built if some cache variables are set:

http://developer.gnome.org/glib/stable/glib-cross-compiling.html

So, you can either obtain an appropriate glib to depend on or use the internal glib following the above documentation. I've added this info the README and done a little testing that this works in a cross-compile scenario. See commit cfaffdc. Please reopen if this is not the case.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.