[Qgis-user] Error building QGIS master on OS X, linking libgeos

Joshua Arnott josh at snorfalorpagus.net
Sun Sep 8 13:54:28 PDT 2013


I'm getting an error when I try to build QGIS master (see error log below).
I falls over trying to link qgis_core to libgeos. Installed version of
libgeos is 3.4.2.

Most of the dependencies (libgeos, libgdal, etc.) have been built and
installed using MacPorts. I have no problem building QGIS 1.8 available via
MacPorts.

I'm running OS X 10.6.8 on a MacBook Pro 1,1 (32 bit, not 64 bit).

This is the first time I've tried to build QGIS myself, so I expect it's
something I'm doing wrong rather than a bug. Any ideas what?

Full error log is here: http://pastebin.com/xBsskJ1r

Here are the interesting parts:

-- QGIS version: 2.1.0 Master (20100)
-- Found Proj: /opt/local/lib/libproj.dylib
-- Found GEOS: /opt/local/lib/libgeos.dylib
-- Found GDAL: /opt/local/lib/libgdal.dylib (1.9.2)
-- Found Expat: /usr/lib/libexpat.dylib
-- Found Spatialindex: /opt/local/lib/libspatialindex.dylib
-- Found Qwt: /opt/local/lib/libqwt.dylib (5.2.3)
-- Found Sqlite3: /opt/local/lib/libsqlite3.dylib
-- Found SpatiaLite: /opt/local/lib/libspatialite.dylib
-- Touch support disabled
-- Pedantic compiler settings enabled
-- Found Python executable: /opt/local/bin/python
-- Found Python version: 2.7.5
-- Found Python library: -framework Python
-- Found SIP version: 4.14.6
-- Found PyQt4 version: 4.10.1
-- Found QScintilla2 PyQt4 module: qsci_version_str:

-- Found GSL: /opt/local/lib/libgsl.dylib
-- txt2tags not found - disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/snorf/Desktop/Quantum-GIS/build

...

Linking CXX shared library
../../output/lib/qgis_core.framework/Versions/2.1/qgis_core
Undefined symbols:
  "_GEOSIntersection", referenced from:
      QgsGeometry::lineContainedInLine(GEOSGeom_t const*, GEOSGeom_t
const*)in qgsgeometry.cpp.o
      QgsGeometry::topologicalTestPointsSplit(GEOSGeom_t const*,
QList<QgsPoint>&) constin qgsgeometry.cpp.o
      QgsGeometry::reshapeLine(GEOSGeom_t const*, GEOSGeom_t const*)in
qgsgeometry.cpp.o
      QgsGeometry::splitPolygonGeometry(GEOSGeom_t*,
QList<QgsGeometry*>&)in qgsgeometry.cpp.o
      QgsGeometry::intersection(QgsGeometry*)in qgsgeometry.cpp.o

....

ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [output/lib/qgis_core.framework/Versions/2.1/qgis_core] Error 1
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
make: *** [all] Error 2

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130908/69175988/attachment.html>


More information about the Qgis-user mailing list