GDAL 3.4.1构建“由于缺少Deflate的编解码器,无法创建TIFF文件。
我已经在CentOS7上建造了GDAL 3.4.1。一切似乎都在起作用,除非我尝试使用Deflate Compression,否则我会在下面获得错误。我已经安装了libtiff-4.1.0和libdeflate-1.10。以前,我使用类似的构建过程运行GDAL 2.3.2,而没有deflate问题。
谁能建议我可能缺少压缩压缩的方法?谢谢!
gdal_translate -co COMPRESS=DEFLATE /cmake-3.19.5/Packaging/CMakeDMGBackground.tif test.tif
Input file size is 500, 365
Warning 6: 'DEFLATE' is an unexpected value for COMPRESS creation option of type string-select.
ERROR 1: Cannot create TIFF file due to missing codec for DEFLATE.
我的GDAL构建输出显示:
checking for deflateInit_ in -lz... no
using internal libz code as deflateInit_ is missing
using internal libz code.
checking for libdeflate_zlib_decompress in -ldeflate... yes
checking libdeflate.h usability... yes
checking libdeflate.h presence... yes
checking for libdeflate.h... yes
...
libdeflate support: yes
LIBGEOTIFF support: internal
LIBGIF support: internal
LIBJPEG support: internal
LIBLZMA support: no
LIBPNG support: internal
LIBTIFF support: external (BigTIFF=yes)
libxml2 support: no
LIBZ support: internal
I have built GDAL 3.4.1 on CentOS7. Everything seems to be working except if I try to use DEFLATE compression and I get the error below. I have installed libtiff-4.1.0 and libdeflate-1.10. Previously I was running GDAL 2.3.2 using a similar build process with no issues with DEFLATE.
Can anyone suggest what I may be missing to get DEFLATE compression working? Thanks!
gdal_translate -co COMPRESS=DEFLATE /cmake-3.19.5/Packaging/CMakeDMGBackground.tif test.tif
Input file size is 500, 365
Warning 6: 'DEFLATE' is an unexpected value for COMPRESS creation option of type string-select.
ERROR 1: Cannot create TIFF file due to missing codec for DEFLATE.
My GDAL build output shows:
checking for deflateInit_ in -lz... no
using internal libz code as deflateInit_ is missing
using internal libz code.
checking for libdeflate_zlib_decompress in -ldeflate... yes
checking libdeflate.h usability... yes
checking libdeflate.h presence... yes
checking for libdeflate.h... yes
...
libdeflate support: yes
LIBGEOTIFF support: internal
LIBGIF support: internal
LIBJPEG support: internal
LIBLZMA support: no
LIBPNG support: internal
LIBTIFF support: external (BigTIFF=yes)
libxml2 support: no
LIBZ support: internal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,我没有安装ZLIB。安装Zlib解决了我的问题。
It turns out I did not have zlib installed. Installing zlib fixed my issue.