Bug 41081

Summary: pkg-config wont install
Product: pkg-config Reporter: jacobisrael <americancafe>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description jacobisrael 2011-09-21 06:11:36 UTC
I installed gettext (something JHBuild should have done) and
JHBuild still didn't find it.
I told JHBuild to ignore the module. Then it had a problem with Cairo.
I installed pkg-config (something JHBuild should have done), but it wanted glib.
I installed glib(something JHBuild should have done), but it wanted pkg-config.


GLIB INSTALL file says:
GLib-2.0 requires pkg-config, which is tool for tracking the
compilation flags needed for libraries

But, pkg-config doesn't work.

configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values
 
In the INSTALL file, there is nothing to explain WHAT values GLIB_CFLAGS and GLIB_LIBS
should be set to, or HOW to set those flags.

Here is a question:
If users know SO MUCH about terminal, configuration shells and installs, 
how come they are just NOW downloading GTK?

Who is your audience, someone who has been programming 20 years?

configure: error: pkg-config >=  required but not found (http://pkgconfig.freedesktop.org/)
*** Error during phase configure of cairo: ########## Error running ./configure --prefix /Users/jacobisrael/gtk/inst --libdir '/Users/jacobisrael/gtk/inst/lib' --enable-pdf --enable-quartz --enable-xlib=no --without-x   *** [18/24]

 

 
I have a MacBook OSX 10.4 Dual Intel Core
All I wanted was to make some graphics with C++.
So, maybe you could just tell me how to get C++ to talk to X11.
Then I can give up on GTK.

Thank you,
Mr. Israel
Comment 1 Guilherme Fernandes de Carvalho 2011-10-10 16:11:37 UTC
I was having the same issue while trying to build libcurl. Turns out OS X includes a _really_ old version of pkg-config, which oddly seems to be required to build pkg-config 0.26. Installing 0.25 then 0.26 worked out fine for me - you should give it a try =)
Comment 2 Dan Nicholson 2012-05-14 08:54:49 UTC
pkg-config-0.26 created a bootstrapping problem with glib that we didn't think would be a big issue, but it's turned into headache for a lot of people. The next release adds back a bundled glib that you can use to bootstrap pkg-config on a system without glib installed. You can enable it by passing --with-internal-glib to configure.

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.