pkg-config when cross compiling on Mac

Joakim Bygdell j.bygdell at gmail.com
Tue Oct 20 11:09:05 PDT 2015


> On 20 Oct 2015, at 12:25, Joakim Bygdell <j.bygdell at gmail.com> wrote:
> 
> 
> On 20 Oct 2015 12:15 pm, "Dirk Hohndel" <dirk at hohndel.org <mailto:dirk at hohndel.org>> wrote:
> >
> > I'm a bit stuck and am on my way to "bad internet island"... maybe someone
> > can help me...
> >
> > I'm trying to build the Android apk on Mac (yeah, I know... but I now have
> > all the pieces downloaded, so work with me). Everything goes great.
> > libftdi fails completely with weird errors, so let's ignore that
> > and then cmake on Subsurface barfs that it can't find any of the
> > pkg-config based packages like libxml-2.0.
> >
> > Running pkg-config with the correct PKG_CONFIG_PATH finds all of the
> > libraries. Printing out the environment variable $ENV{PKG_CONFIG_PATH}
> > right before the call to pkg_config_library(LIBXML libxml-2.0 REQUIRED)
> > shows that the right path is set. But cmake finds none of the libraries.
> 
> That one seems familiar, I'll check how I solved that when I get home tonight.
> 
The path for pkg-config in the script is “/usr/bin/“ but on mac when pkg-config is installed via homebrew
it is installed in "/usr/local/bin”.
Fixing that fixed the problem with make not finding the libraries.
> >
> > So it somehow must be explicitly unsetting or changing the correct
> > PKG_CONFIG_PATH that was set.
> >
> > Any ideas? Tomaz? Anton?
> >
> > /D
> > _______________________________________________
> > subsurface mailing list
> > subsurface at subsurface-divelog.org <mailto:subsurface at subsurface-divelog.org>
> > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface <http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface>

/Jocke

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151020/7ae3aed8/attachment-0001.html>


More information about the subsurface mailing list