FS#59142 - [openjpeg2] PNG and TIFF support not enabled

Attached to Project: Arch Linux
Opened by Emil Vanherp (emil) - Monday, 25 June 2018, 10:29 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 27 June 2018, 09:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
openjpeg2 can not read PNG and TIFF files, was probably not enabled during compilation.

Additional info:
* package version: 2.3.0-1


Steps to reproduce:
opj_compress -i testfile.png -o testfile.j2k and opj_compress -i testfile.tif -o testfile.j2k
give "Unable to load file: got no image" error output.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 27 June 2018, 09:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.3.0-2
Comment by Andreas Radke (AndyRTR) - Tuesday, 26 June 2018, 20:07 GMT
It seems building using system libraries libtiff and libpng break it.
Try to build using -DBUILD_THIRDPARTY:bool=on and comment out the sed line removing third party libs will fix it. So far I haven't found why linking system libs is broken.
Comment by Antonio Rojas (arojas) - Tuesday, 26 June 2018, 20:57 GMT
The problem is the line

sed -i '/add_subdirectory(thirdparty)/d' openjpeg-${pkgver}/CMakeLists.txt

in the PKGBUILD. This makes it not use any third-party library, neither from the system nor bundled. Removing this line *without* setting -DBUILD_THIRDPARTY=on will make it link to system libs.

Loading...