libgeotiff icon indicating copy to clipboard operation
libgeotiff copied to clipboard

Provide a libgeotiff-config

Open caiohamamura opened this issue 5 years ago • 3 comments

Each OS will install libgeotiff headers to a different locations:

/usr/include/geotiff /usr/include/libgeotiff ...

So it is hard and non-reliable to create a proper configure file to link to libgeotiff and its headers.

The reliable way would be to provide a libgeotiff-config binary to allow cross-platform compilation, just like geos and gdal.

Would it be feasible or is there a better way to link to libgeotiff that I'm missing?

caiohamamura avatar Jul 22 '19 16:07 caiohamamura

The package already installs a CMake config file so you can do:

find_package(GeoTIFF CONFIG REQUIRED)

However, it still misses a properly prefixed target for linking, e.g. GeoTIFF::libgeotiff. Last not least, cmake usage should be added to the README.

dg0yt avatar Nov 08 '21 07:11 dg0yt

The more modern alternative to a libgeotiff-config script (with non-standardized options) is pkg-config (geotiff.pc). There is https://github.com/OSGeo/libgeotiff/pull/31 for that.

dg0yt avatar May 13 '22 06:05 dg0yt

The more modern alternative to a libgeotiff-config script (with non-standardized options) is pkg-config (geotiff.pc). There is #31 for that.

At them moment widely are used onl; two interfaces: cmake module and pkgconfig API/ABI descriptions.

Only missing bit is generate and install pkgconfig file.

kloczek avatar Sep 12 '22 22:09 kloczek