lambgeo / docker-lambda

AWS Lambda friendly GDAL Docker images and AWS Lambda layer
MIT License
128 stars 19 forks source link

Fix Tiff errors #32

Closed vincentsarago closed 3 years ago

vincentsarago commented 3 years ago

well I can't get this to work! basically this PR tries to:

when running I get hundreds of:

libtiff/gdal_libtiff_symbol_rename.h:587:22: error: ‘gdal_TIFFSetField’ was not declared in this scope

or 

geotiff.cpp:16378:13: note: in expansion of macro ‘TIFFSetField’

or

geotiff.cpp:2586:25: note: ‘gdal_TIFFIsTiled’ declared here, later in the translation unit
              TIFFIsTiled( m_hTIFF ) && bNoXResampling && (nYSize == nBufYSize ) &&
geotiff.cpp:3428:53: error: ‘gdal_TIFFIsTiled’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

...
make[2]: *** [../o/geotiff.o] Error 1
make[1]: *** [gtiff-install-obj] Error 2
make: *** [frmts-target] Error 2
make: *** Waiting for unfinished jobs....

I see in https://github.com/OSGeo/gdal/blob/master/gdal/docker/alpine-normal/Dockerfile that you can have both libtiff installed in the environment and still compiling GDAL with libtiff=internal

🤷‍♂️