Opened 7 years ago

Closed 6 years ago

#3421 closed defect (fixed)

GEOS C API usage

Reported by: Bas Couwenberg Owned by: grass-dev@…
Priority: normal Milestone: 7.2.3
Component: Default Version: 7.2.2
Keywords: Cc: Bas Couwenberg
CPU: Unspecified Platform: Linux

Description

GRASS is claimed to be using the GEOS C API instead of the unstable C++ API according to:

https://trac.osgeo.org/geos/wiki/Applications

configure.in checks for geos_c.h, but uses geos-config --libs instead of geos-config --clibs causing linking to libgeos-<VERSION>.so in addition to libgeos_c.so.

The attached patch updates the geos-config command to use --clibs.

Attachments (1)

geos-c.patch (604 bytes ) - added by Bas Couwenberg 7 years ago.

Download all attachments as: .zip

Change History (4)

by Bas Couwenberg, 7 years ago

Attachment: geos-c.patch added

in reply to:  description ; comment:1 by mmetz, 7 years ago

Replying to Bas Couwenberg:

GRASS is claimed to be using the GEOS C API instead of the unstable C++ API according to:

https://trac.osgeo.org/geos/wiki/Applications

configure.in checks for geos_c.h, but uses geos-config --libs instead of geos-config --clibs causing linking to libgeos-<VERSION>.so in addition to libgeos_c.so.

The attached patch updates the geos-config command to use --clibs.

Thanks for the patch! Applied to trunk and relbr72 in r71544,5.

in reply to:  1 comment:2 by mmetz, 6 years ago

Replying to mmetz:

Replying to Bas Couwenberg:

GRASS is claimed to be using the GEOS C API instead of the unstable C++ API according to:

https://trac.osgeo.org/geos/wiki/Applications

configure.in checks for geos_c.h, but uses geos-config --libs instead of geos-config --clibs causing linking to libgeos-<VERSION>.so in addition to libgeos_c.so.

The attached patch updates the geos-config command to use --clibs.

Thanks for the patch! Applied to trunk and relbr72 in r71544,5.

I guess the patch provided by you is working for you and it has been applied to trunk and relbr72. Closing ticket.

comment:3 by martinl, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.