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

1.6k Views Asked by At

I'm trying to convert HEIC files to JPEG. So I installed the libheif library:

  • I cloned https://github.com/strukturag/libheif
  • I ran ./autogen.sh
  • I ran ./configure
  • I ran make
  • I ran 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.

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 ?

1

There are 1 best solutions below

0
On BEST ANSWER

As mentioned in the comments (thanks btw), the solution was to install libjpeg-dev (via apt) and re-run configure/make/make install.
Works like a charm now.