Bug report #1229
FindGEOS does not detect GEOS.Framework on OSX 10.5
|Affected QGIS version:||Regression?:||No|
|Operating System:||OS X||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||11289|
Under Mac OS X 10.5, current version of [trunk/qgis/cmake/[email protected] FindGEOS.cmake] macro does not detect GEOS installed from the excellent GEOS framework v3.0.0-2 package by William Kyngesburye.
I've followed the official BuildingFromSource instructions and cmake command reported that some dependencies are not found, but no specific error for GEOS was printed.
Anyway, I patched the FindGEOS.cmake in more portable way based on FindGDAL.cmake and used it to successfully build QGIS from SVN trunk (r9104).
I'm attaching patch with my version of the FindGEOS.cmake macro.
#1 Updated by Mateusz Loskot - over 14 years ago
Hmm, as I see I can not edit Ticket description for QGIS, so please could anyone fix broken link to FindGEOS.cmake file adding source: prefix?
[source:trunk/qgis/cmake/[email protected] [[FindGEOS]].cmake]
#2 Updated by John Tull over 14 years ago
I can confirm this issue. I've always mapped it manually with:
-D GEOS_INCLUDE_DIR=/Library/Frameworks/GEOS.framework/unix/include -D GEOS_LIBRARY=/Library/Frameworks/GEOS.framework/unix/lib/libgeos.dylib
in my cmake statement. There are some other frameworks I similarly map (proj, gdal, and sqlite).
Using a generic 'cmake ..' run, it is only the geos framework that is not discovered. I am also using William Kyngesburye's frameworks, and this was rev 9104.
#3 Updated by Jürgen Fischer over 14 years ago
- Resolution set to fixed
- Status changed from Open to Closed
thanks for the patch. applied in c2c69742 (SVN r9106)
#4 Updated by Mateusz Loskot - over 14 years ago
Thanks for applying. I confirm it works.
#5 Updated by John Tull over 14 years ago
Worked for me also.