简体   繁体   English

heif-convert 错误:JPEG 支持尚未编译

[英]heif-convert error: JPEG support has not been compiled in

I'm trying to convert HEIC files to JPEG.我正在尝试将 HEIC 文件转换为 JPEG。 So I installed the libheif library:所以我安装了 libheif 库:

  • I cloned https://github.com/strukturag/libheif我克隆https://github.com/strukturag/libheif
  • I ran ./autogen.sh我跑了./autogen.sh
  • I ran ./configure我跑了./configure
  • I ran make我跑make
  • I ran sudo make install我跑了sudo make install

Now the heif-convert tool is installed but when I run heif-convert input.HEIC output.jpeg , I get an error: JPEG support has not been compiled in .现在安装了heif-convert工具,但是当我运行heif-convert input.HEIC output.jpeg ,出现错误: JPEG support has not been compiled in .

I don't understand what I did wrong (or more likely what I forgot to do) and I don't find anything on the internet.我不明白我做错了什么(或者更可能是我忘了做什么),而且我在互联网上找不到任何东西。 Can someone tell me how I can fix this?有人可以告诉我如何解决这个问题吗?

As mentioned in the comments (thanks btw), the solution was to install libjpeg-dev (via apt) and re-run configure/make/make install.正如评论中提到的(谢谢btw),解决方案是安装libjpeg-dev(通过apt)并重新运行configure/make/make install。
Works like a charm now.现在就像一个魅力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有在本机中将文本,图像转换为pdf的库? - Is there library to convert text, image to pdf In react-native? 是否绝对不可能在 Windows CE 上使用为 X86 编译的 DLL? - Is it absolutely impossible to use DLLs compiled for X86 on Windows CE? 使用 python faker 库但有导入错误 - using python faker library but have import error 安装Google Chrome时出错,错误是无法安装'libappindicator3-1:amd64' - Error in installing google chrome error is cannot install 'libappindicator3-1:amd64' Godep save ./... 给出一个错误 - Godep: Unable to find SrcRoot for package - godep save ./… gives an error - godep: Unable to find SrcRoot for package 致命错误:zlib.h:安装zlib时没有这样的文件或目录 - fatal error: zlib.h: No such file or directory when zlib is installed LNK1181无法打开输入文件。 空间错误? - LNK1181 cannot open input file. space error? 如何解决在两个兄弟文件夹中导入相同库时出错的问题? - How to solve error importing same library in two sibling folders? 错误8程序集生成失败-引用的程序集'LibUsbDotNet'没有强名称 - Error 8 Assembly generation failed — Referenced assembly 'LibUsbDotNet' does not have a strong name 加载 Python 库“/tmp/_MEImSAQlR/libpython3.10.so.1.0”时出错 - Error loading Python lib '/tmp/_MEImSAQlR/libpython3.10.so.1.0'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM