GDAL 3.4.1构建“由于缺少Deflate的编解码器,无法创建TIFF文件。

发布于 2025-01-29 10:31:03 字数 1169 浏览 1 评论 0原文

我已经在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风筝有风,海豚有海 2025-02-05 10:31:03

事实证明,我没有安装ZLIB。安装Zlib解决了我的问题。

It turns out I did not have zlib installed. Installing zlib fixed my issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文