novomesk / qt-jpegxl-image-plugin

Qt plug-in to allow Qt and KDE based applications to read/write JXL images.
GNU General Public License v3.0
93 stars 8 forks source link

Installation guide #5

Closed master-of-zen closed 3 years ago

master-of-zen commented 3 years ago

This pull request adds a guide for plugin and JPEG XL installation, and close the https://github.com/novomesk/qt-jpegxl-image-plugin/issues/1

novomesk commented 3 years ago

Steps 1 and 2 can be potentially merged into one. add -DJPEGXL_ENABLE_PLUGINS=ON and image-xl.xml will be installed. But it also attempt to built GIMP 2.10 plug-in and a gdk-pixbuf loader. I think in such case the CMAKE_INSTALL_PREFIX=/usr has to be set too.

I had to add -DJPEGXL_ENABLE_SJPEG=OFF on some computers. and also -DJPEGXL_WARNINGS_AS_ERRORS=OFF because in some cases there are warnings.

My system doesn't have sudo tool installed. I prefer to use text "run as root" where the sudo command is used.

master-of-zen commented 3 years ago

@novomesk you know better than me, so I hope you correct and merge :)