Ticket #330 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

cmake puts geos_c.h into include/geos

Reported by: mwtoews Owned by: mloskot
Priority: minor Milestone:
Component: Build/Install Version: svn-trunk
Severity: Annoyance Keywords: cmake
Cc:

Description

Testing the latest SVN, CMake installs geos_c.h into include/geos rather than in include (as with previous versions <=3.2). However, the header file still refers to children header files in a geos subdirectory, e.g.:

#include <geos/export.h>

and the configuration utility points where it should, but there is not header file there:

$ geos-config --includes
/usr/local/include

This gives errors and grief for configuring PostGIS. The quick-fix is:

mv geos_c.h ..

... but this is still a defect due to manual intervention for the install.

Other info:

$ cmake --version
cmake version 2.6-patch 0
$ g++ --version
g++ (Debian 4.3.2-1.1) 4.3.2

Change History

Changed 3 years ago by pmeems

We've got the same issue when compiling MapWindow? GIS with GEOS. It would be better/nice to have all include files in the same place. After compiling GEOS we move all include files to a common include folder and that is working for all libraries (GDAL, etc) we use except for this file. Thanks.

Changed 3 years ago by strk

  • owner changed from geos-devel@… to mloskot
  • component changed from Default to Build/Install

Confirmed.

Changed 3 years ago by mwtoews

  • keywords cmake added

Changed 3 years ago by mloskot

  • status changed from new to assigned

Changed 3 years ago by mloskot

Fixed in trunk r2912

Changed 3 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.