[Qgis-developer] Compile error (geos)

Sandro Mani manisandro at gmail.com
Fri Sep 25 04:12:35 PDT 2015


See also

https://github.com/qgis/QGIS/commit/8cec2c935f5541a865d0bf91140ca5b2d25b17cb#commitcomment-13433347

FindGEOS.cmake changed in that commit, introducing the new variable 
GEOS_CPP_LIBRARY. It looks like a simple reconfigure of an existing 
build directory is insufficient for cmake to pick up that change, and 
people have reported that it is necessary to start from an empty build 
directory for the build to succeed, perhaps removing the CMakeCache 
might also be sufficient. Anyone with enough low-level knowledge of 
cmake to explain why the reconfiguring does not pick up the changes in 
FindGEOS.cmake ...?

Sandro


On 25.09.2015 12:18, Denis Rouzaud wrote:
>
> It's because we're entering feature freeze, nothing special.
> -- Sorry --
>
>
> Le ven. 25 sept. 2015 11:49 AM, Stefan Ziegler 
> <stefan.ziegler.de at gmail.com <mailto:stefan.ziegler.de at gmail.com>> a 
> écrit :
>
>     Hi
>
>     I cannot compile QGIS master:
>
>     [  0%] Built target version
>     Linking CXX shared library ../../output/lib/libqgis_core.so
>     CMakeFiles/qgis_core.dir/geosextra/geos_c_extra.cpp.o: In function
>     `GEOSPrecisionModel_create':
>     geos_c_extra.cpp:(.text+0x1b): undefined reference to
>     `geos::geom::PrecisionModel::PrecisionModel(geos::geom::PrecisionModel::Type)'
>     CMakeFiles/qgis_core.dir/geosextra/geos_c_extra.cpp.o: In function
>     `GEOSPrecisionModel_createFixed':
>     geos_c_extra.cpp:(.text+0x63): undefined reference to
>     `geos::geom::PrecisionModel::PrecisionModel(double)'
>     CMakeFiles/qgis_core.dir/geosextra/geos_c_extra.cpp.o: In function
>     `GEOSPrecisionModel_destroy':
>     geos_c_extra.cpp:(.text+0x9a): undefined reference to
>     `geos::geom::PrecisionModel::~PrecisionModel()'
>     CMakeFiles/qgis_core.dir/geosextra/geos_c_extra.cpp.o: In function
>     `GEOSGeometryPrecisionReducer_reduce':
>     geos_c_extra.cpp:(.text+0x101): undefined reference to
>     `geos::precision::GeometryPrecisionReducer::reduce(geos::geom::Geometry
>     const&)'
>     collect2: error: ld returned 1 exit status
>     make[2]: *** [output/lib/libqgis_core.so.2.11.0] Error 1
>     make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
>     make: *** [all] Error 2
>
>     I installed latest geos from trunk.
>
>     regards
>     Stefan
>
>     _______________________________________________
>     Qgis-developer mailing list
>     Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150925/82f91684/attachment-0001.html>


More information about the Qgis-developer mailing list