Bug report #1229

FindGEOS does not detect GEOS.Framework on OSX 10.5

Added by Mateusz Loskot - over 16 years ago. Updated over 16 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Build/Install
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

Description

Under Mac OS X 10.5, current version of [trunk/qgis/cmake/FindGEOS.cmake@9093 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.

findgeos-using-geos-config.patch Magnifier - Patch with portable version of FindGEOS.cmake macro that fixes problems under OSX 10.5 (5.15 KB) Mateusz Loskot -, 2008-08-20 07:05 PM

History

#1 Updated by Mateusz Loskot - over 16 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/FindGEOS.cmake@9093 [[FindGEOS]].cmake]

#2 Updated by John Tull over 16 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 16 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 16 years ago

Jef,

Thanks for applying. I confirm it works.

#5 Updated by John Tull over 16 years ago

Worked for me also.

Also available in: Atom PDF