[GRASS-dev] Error: undefined reference to `OGR_GT_Flatten' when compiling grass with GDAL
Andre Hollstein
andre.hollstein at gfz-potsdam.de
Tue Jan 5 08:41:13 PST 2016
Hi,
Am 05.01.2016 um 17:19 schrieb Martin Landa:
> probably more versions of GDAL installed on your system (check
> /usr/lib and /usr/local/lib)? Add also
> /misc/fluo6/andre/projekte/custom_gfz_python/python_GFZ/opt/lib to
> your /etc/ld.so.conf and run `sudo ldconfig`. Ma
>
this is the case. I intend to build the software without needing root
rights. Any ideas on how to force the usage of the right gdal libraries?
Also Even Rouault seems to think that different versions are causing
problems:
Am 05.01.2016 um 17:26 schrieb Even Rouault:
> /misc/fluo6/andre/projekte/custom_gfz_python/tmp/grass/grass-7.0.2/dist.x86
> _64-unknown-linux-gnu/lib/libgrass_vector.7.0.2.so: undefined reference to
> `OGR_GT_Flatten'
> collect2: error: ld returned 1 exit status
> make: ***
> [/misc/fluo6/andre/projekte/custom_gfz_python/tmp/grass/grass-7.0.2/dist.x8
> 6_64-unknown-linux-gnu/bin/d.path] Error 1
It could mean that you are compiling against GDAL 2.0 headers, but the linking
is done against GDAL 1.X instead.
I guess the OGR_GT_Flatten dependency must comes from the resolution of GDAL
2.0 "#define wkbFlatten(x) OGR_GT_Flatten((OGRwkbGeometryType)(x))" from
ogr_core.h.
What can I do apart from?
--with-gdal=$prefix_opt/bin/gdal-config
Best, André
--
Dr. André Hollstein
Sektion 1.4 Fernerkundung
Tel.: +49 (0)331/288-28969
Fax: +49 (0)331/288-28969
E-Mail: andre.hollstein at gfz-potsdam.de
___________________________________
Helmholtz-Zentrum Potsdam
Deutsches GeoForschungsZentrum GFZ
Stiftung des öff. Rechts Land Brandenburg
Telegrafenberg, 14473 Potsdam
Haus 17, Raum 20.23
More information about the grass-dev
mailing list