On Sun, Apr 29, 2012 at 3:50 PM, Larry Shaffer <span dir="ltr">&lt;<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>Tried building master branch today, on Mac 10.7.3, but build fails when searching for spatialindex library. <br><br>-- Found GSL: /Library/Frameworks/GSL.framework<br>-- Found FCGI: /usr/local/lib/libfcgi.dylib<br>

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>Please set them or make sure they are set and tested correctly in the CMake files:<br>SPATIALINDEX_LIBRARY<br>    linked by target &quot;qgis_core&quot; in directory /Users/larrys/QGIS/github-nightly/quantum-gis/src/core<br>

<br>I did some searching and found this change by JEF 5 days ago [0]. Also, there appears to be no &#39;spatialindex&#39; directory in src/core anymore in the master branch.<br><br>Is spatialindex library now a system environment build requirement, instead of internal? If so, where can I get the appropriate library?<br>

<br>There&#39;s a header file here (Kyngchaos.com GEOS framework):<br><br>/Library/Frameworks/GEOS.framework/Versions/3/Headers/spatialIndex.h<br><br>but, it doesn&#39;t look like what I should be including.<br clear="all">

...<br><br>[0] <a href="https://github.com/qgis/Quantum-GIS/commit/c10b040ec751c503594776fece9ee96961dec678" target="_blank">https://github.com/qgis/Quantum-GIS/commit/c10b040ec751c503594776fece9ee96961dec678</a><br>

</blockquote></div><br><br>I see [1][2] is where internal spatialindex support was removed along with spatialite (which was then readded, later). I tracked down the library [3] and installed (successfully) versions 1.7.1 back to 1.4.0, but QGIS build always fails at same point [4] regardless of library version installed.<br>
<br>[1] <a href="http://hub.qgis.org/issues/4805">http://hub.qgis.org/issues/4805</a><br>[2] <a href="https://github.com/qgis/Quantum-GIS/commit/c56491b11124f9ceefa9b6b3d501374755aac84c#src/core">https://github.com/qgis/Quantum-GIS/commit/c56491b11124f9ceefa9b6b3d501374755aac84c#src/core</a><br>
[3] <a href="http://libspatialindex.github.com/">http://libspatialindex.github.com/</a><br>[4] <a href="http://dl.dropbox.com/u/4058089/qgis/spatialindex_build-failure.pdf">http://dl.dropbox.com/u/4058089/qgis/spatialindex_build-failure.pdf</a><br>
<br>Regards,<br><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br><br><br>