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

</div>

<br class=""></body></html>