Hi William,<br><br>Thanks for help.<br><br><div class="gmail_quote">On Sun, Apr 29, 2012 at 7:04 PM, William Kyngesburye <span dir="ltr">&lt;<a href="mailto:woklist@kyngchaos.com" target="_blank">woklist@kyngchaos.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, spatialindex was remove from the source, so it&#39;s now an external dependency.  I started working out compilation details for OS X and got distracted :(<br>

<br>
It has nothing to do with the GEOS spatialindex.h.<br>
<br>
For detecting spatialindex in configuration, I see that spatialindex installs its headers in a subfolder of the include folder, and the cmake find spatialindex doesn&#39;t check this.  If you specify SPATIALINDEX_LIBRARY and SPATIALINDEX_INCLUDE_DIR it should be OK.<br>
</blockquote><div><br>I found I did not need to specify these. I didn&#39;t have issues with spatialindex not being found (once it was installed in /usr/local). Seems cmake/FindSpatialindex.cmake has &#39;PATH_SUFFIXES spatialindex&#39; already to aid in that. Note: I installed from spatialindex-src-1.7.1.<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Once found, I see another problem - internally, spatialindex headers include each other by spatialindex/*/*.h.  But QGIS does not - I think it&#39;s previous internal spatialindex had these includes all changed.  ...and indeed, changing the one include in core/qgsspatialindex.cpp to:<br>

<br>
#include &lt;spatialindex/SpatialIndex.h&gt;<br>
<br>
does the trick.<br></blockquote><div><br>Yes, this worked. It was the only edit needed to build successfully.<br><br>Does this mean libspatialindex.dylib will need to be added to QGIS.app/Contents/MacOS/lib and linking updated for successful app bundling, as well?<br>
<br><br>The built app is useable, but I&#39;m still getting two crashes, under Lion (haven&#39;t tested on Snow Leopard, yet):<br><br>1) The networking issue is still crashing on any call to external resources [0][1].<br>
<br>Typing the following into PyQGIS Console causes an immediate crash:<br><br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">from PyQt4.QtWebKit import QWebView
<style type="text/css">
p, li { white</style>from PyQt4.QtCore import QUrl</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">webviewer = QWebView()</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">webviewer.setUrl(QUrl(&quot;<a href="http://www.qgis.org">http://www.qgis.org</a>&quot;))</p><br>2) Crashes on quit, regardless of having worked in it a while or only having launched it.<br>
<br>Do you have these issues with your builds?<br><br><br>[0] <a href="http://hub.qgis.org/issues/5338">http://hub.qgis.org/issues/5338</a><br>[1] <a href="http://osgeo-org.1560.n6.nabble.com/QtNetwork-issue-with-master-td4887155.html">http://osgeo-org.1560.n6.nabble.com/QtNetwork-issue-with-master-td4887155.html</a><br>
<br><br>
Regards,<br>
<br>
Larry Shaffer<br>
Dakota Cartography<br>
Black Hills, South Dakota<br></div></div><br>