Hi,
Thanks for the recent JXRVersion.h fix! Unfortunately, freeimage 3.18.0-24 still fails to build with jxrlib 1.4.4-3:
`fatal error: JXRGlue.h: No such file or directory`
The Makefile still uses /usr/include/jxrlib, but jxrlib now installs its headers under /usr/include/libjxr/.
I updated the include paths in both Makefile.gnu and Makefile.fip and successfully built and installed the package.
Here's the patch with the fix for PKGBUILD :
diff --git a/PKGBUILD b/PKGBUILD
index 575fe8f..efdf5b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: scippio <scippio@berounet.cz>
pkgname=freeimage
pkgver=3.18.0
-pkgrel=24
+pkgrel=25
pkgdesc="Library project for developers who would like to support popular graphics image formats"
arch=('x86_64')
license=('GPL-3.0-only' 'LicenseRef-FreeImage')
@@ -32,6 +32,10 @@ prepare() {
patch -p1 -i ../freeimage-libraw-0.20.patch # Fix build with libraw 0.20
patch -p1 -i ../freeimage-libraw-0.21.patch # Fix build with libraw 0.21
+
+ # Fix include paths for jxrlib 1.4.4
+ local jxr_includes='-I/usr/include/libjxr/common -I/usr/include/libjxr/image -I/usr/include/libjxr/image/x86 -I/usr/include/libjxr/glue -I/usr/include/libjxr/test'
+ sed -i "s@-I/usr/include/jxrlib@${jxr_includes}@g" Makefile.gnu Makefile.fip
# jxrlib 1.4.3 ships JXRGlue.h including JXRVersion.h but never installs it
if [[ ! -f /usr/include/jxrlib/JXRVersion.h ]]; then
cat > JXRVersion.h <<'EOF'
Pinned Comments
andreas_baumann commented on 2026-03-08 09:19 (UTC)
https://www.cvedetails.com/vulnerability-list/vendor_id-15676/product_id-32505/Freeimage-Project-Freeimage.html
Use at your own risk!