[Qgis-developer] Compiling against geos-3.0.0rc4

Mike Leahy mgleahy at alumni.uwaterloo.ca
Thu Feb 15 14:43:37 EST 2007


Hello list,

I know that GEOS 3.x is not officially supported yet, but I've been able
to compile the released qgis 0.8 against geos-3.0.0rc3 without any
trouble - the patch that was posted in December, or something similar,
must have been applied before it was released.  I just tried compiling
against rc4 of GEOS, and produces some new problems.  The first error
(below) seems to be an issue with the linker.  After getting that error,
if I make clean then make again, I get a different error (also below).
Since the problem only happens with rc4 of GEOS and not rc3, I checked
with the geos-devel mailing list first, but so far no answers seem to be
jumping out.  Can anyone make sense of what's going on, or offer some
ideas that I could try?

Regards,
Mike

=====================================================================

Here's the first build attempt:

/bin/sh ../../libtool --tag=CXX --mode=link g++  -g -O2  -L/usr/lib64
-L/usr/lib -lproj -L/usr/lib -o qgis -rdynamic qgis-main.o
../raster/libqgis_raster.la ../legend/libqgis_legend.la
../composer/libqgis_composer.la  -L/usr/lib64 -lQtCore -lQt3Support
-lQtGui -lQtNetwork -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork
-lQtXml -lQtSvg -lQtTest -lQtDesigner -L/usr/lib64 -lgdal -L/usr/lib64
-lpq -L/usr/lib64 -lgeos -lpython2.4 -lproj -lsqlite3 libqgis_gui.la
../core/libqgis_core.la  -lutil
g++ -g -O2 -o .libs/qgis -rdynamic qgis-main.o  -L/usr/lib64 -L/usr/lib
../raster/.libs/libqgis_raster.so ../legend/.libs/libqgis_legend.so
../composer/.libs/libqgis_composer.so -lQtCore -lQt3Support -lQtGui
-lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner /usr/lib64/libgdal.so
-lpq /usr/lib64/libgeos.so -lpython2.4 -lproj -lsqlite3
./.libs/libqgis_gui.so ../core/.libs/libqgis_core.so -lutil -Wl,--rpath
-Wl,/usr/lib64
../core/.libs/libqgis_core.so: undefined reference to
`geos::geom::Coordinate::Coordinate(double, double, double)'
../core/.libs/libqgis_core.so: undefined reference to
`geos::io::WKTReader::~WKTReader()'
../core/.libs/libqgis_core.so: undefined reference to
`geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)'
../core/.libs/libqgis_core.so: undefined reference to
`geos::geom::Coordinate::~Coordinate()'
collect2: ld returned 1 exit status
make[4]: *** [qgis] Error 1
make[4]: Leaving directory `/home/sources/qgis-0.8.0/src/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/sources/qgis-0.8.0/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sources/qgis-0.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sources/qgis-0.8.0'
make: *** [all] Error 2

=====================================================================

And here's what I get if I make clean, then try again (starting from a
fresh source instead will return me to the error above):

ranlib .libs/libqgis_core.a
creating libqgis_core.la
(cd .libs && rm -f libqgis_core.la && ln -s ../libqgis_core.la
libqgis_core.la)
make[4]: Leaving directory `/home/sources/qgis-0.8.0/src/core'
make[3]: Leaving directory `/home/sources/qgis-0.8.0/src/core'
Making all in ui
make[3]: Entering directory `/home/sources/qgis-0.8.0/src/ui'
make[3]: *** No rule to make target `ui_qgisappbase.h', needed by `all'.
 Stop.
make[3]: Leaving directory `/home/sources/qgis-0.8.0/src/ui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sources/qgis-0.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sources/qgis-0.8.0'
make: *** [all] Error 2




More information about the Qgis-developer mailing list