[Development] configure failure on Mac

Sorvig Morten Morten.Sorvig at digia.com
Thu Oct 3 15:57:22 CEST 2013


On Oct 3, 2013, at 2:30 PM, Jørgen Lind <jorgen.lind at gmail.com> wrote:
>> 
> 
> But if you happen to have pkg-config in your path, why should we then
> not use it. The user has "one way or the other" added it to the path,
> so why shouldn't it be used.
> 
> I think the interesting question is why configure fails when you have
> a version of xcb that is missing some headers. Maybe a warning would
> be enough?


You may not know you have pkg-config - it got installed as a dependency of something else. I think having various utilities installed via Macports or Homebrew is quite common, but that does not mean you neccesarily want your Mac (or iOS) apps to use those libraries.

I've seen the same thing happen with ICU: Qt pulls in the Macports version and then fails to compile against it. We could fix all cases one by one but that could turn out to be a long journey.

Instead, let's make the default OS X build only use public API from the official SDKs. That way we get a minimal deployment that can be deployed to the app stores.

If you want to use pkg-config you can then either use a different mkspec (for example when cross-compiling), or pass "-pkg-config" to configure line.

Morten




More information about the Development mailing list