-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSYS2 fixes #4890
MSYS2 fixes #4890
Conversation
1) it is hardcoded to 32-bit C:\msys64\mingw32 2) current library version uses \mingw64\include\libimagequant.h directly
mingw-w64-x86_64-libjpeg-turbo \ | ||
mingw-w64-x86_64-zlib \ | ||
mingw-w64-x86_64-libtiff \ | ||
mingw-w64-x86_64-freetype \ | ||
mingw-w64-x86_64-lcms2 \ | ||
mingw-w64-x86_64-libwebp \ | ||
mingw-w64-x86_64-openjpeg2 \ | ||
mingw-w64-x86_64-libimagequant \ | ||
mingw-w64-x86_64-libraqm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mingw-w64-x86_64-libjpeg-turbo \ | |
mingw-w64-x86_64-zlib \ | |
mingw-w64-x86_64-libtiff \ | |
mingw-w64-x86_64-freetype \ | |
mingw-w64-x86_64-lcms2 \ | |
mingw-w64-x86_64-libwebp \ | |
mingw-w64-x86_64-openjpeg2 \ | |
mingw-w64-x86_64-libimagequant \ | |
mingw-w64-x86_64-libraqm | |
mingw-w64-x86_64-freetype \ | |
mingw-w64-x86_64-lcms2 \ | |
mingw-w64-x86_64-libimagequant \ | |
mingw-w64-x86_64-libjpeg-turbo \ | |
mingw-w64-x86_64-libraqm | |
mingw-w64-x86_64-libtiff \ | |
mingw-w64-x86_64-libwebp \ | |
mingw-w64-x86_64-openjpeg2 \ | |
mingw-w64-x86_64-zlib \ |
Sorted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order is the same as in the External Libraries section above. I think it is more helpful to follow that order for easier cross-referencing if someone doesn't want a full install.
You could use /~https://github.com/marketplace/actions/setup-msys2 |
Thanks! |
Backports from python-pillow/Pillow#4890 Fixes msys2#7136
Changes proposed in this pull request:
Remove old include directory
C:\\msys64\\mingw32\\include\\libimagequant
.It uses a hardcoded path to MSYS2, it is hardcoded to 32-bit, and it is no longer necessary, as the include is now in
C:\\msys64\\mingw32\\include\\libimagequant.h
.Remove GCC workaround for MSYS, see Replace distutils #4796 (comment)
Fix LibTiff support. The issue is that MSYS2 builds LibTiff with
USE_WIN32_FILEIO
, which changes the meaning of thefd
parameter forTIFFFdOpen
, see OSError: -2 when decoding a tiff_lzw file #4237 (comment). I've added a workaround by converting the parameter before passing it to LibTiff if building on MinGW.It might be possible to detect the system version of LibTiff by including the
tif_config.h
header to fix OSError: -2 when decoding a tiff_lzw file #4237 (by enabling the workaround ifUSE_WIN32_FILEIO
was enabled), but it appears to be a private header (while it is available in MSYS2, it is not available in Ubuntu). See also passing build using CMake on Windows from my branch nulano/Pillow@mingw-setup...nulano:tiff-test.Another possible fix would involve absorbing
TIFFFdOpen
fromtif_unix.c
into Pillow to avoid this issue by using the stableTiffClientOpen
.Document installation on MSYS2