Closed hubutui closed 1 year ago
imagecodes release 2022.2.22 hardcode the include path for openjpeg, https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L236 https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L504 https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L521-L522 and we could not build imagecodecs on ArchLinux with opejpeg 2.5. error logs:
creating build/temp.linux-x86_64-3.10/3rdparty/openjpeg gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -Iimagecodecs -I3rdparty/openjpeg -I/usr/include/openjpeg-2.3 -I/usr/include/openjpeg-2.4 -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c 3rdparty/openjpeg/color.c -o build/temp.linux-x86_64-3.10/3rdparty/openjpeg/color.o 3rdparty/openjpeg/color.c:45:10: fatal error: openjpeg.h: No such file or directory 45 | #include "openjpeg.h" | ^~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 ==> ERROR: A failure occurred in build().
see also the full log here. related issue #7, related AUR link.
Fixed in v2022.7.27.
imagecodes release 2022.2.22 hardcode the include path for openjpeg, https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L236 https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L504 https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L521-L522 and we could not build imagecodecs on ArchLinux with opejpeg 2.5. error logs:
see also the full log here. related issue #7, related AUR link.