|Summary:||pkg-config is not configuring while cross compiling|
|Product:||pkg-config||Reporter:||Satyanarayana K V P <satyam.kvp>|
|Component:||src||Assignee:||Tollef Fog Heen <tfheen>|
|Status:||RESOLVED FIXED||QA Contact:|
|i915 platform:||i915 features:|
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.