-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Compilation fails when openjpeg 1.5 and 2.x are both installed #2387
Comments
That really looks like an incompatible version of openjpeg.
Pillow is known to work with 2.0 and 2.1, but not the 1.5 series as is packaged in some operating systems. What version of openjpeg do you have? |
I have openjpeg 2.1.2:
I don't think the version of openjpeg is the problem since Pillow does compile on the same system but with Python 3.5 instead of 3.6. |
The compiler error that you're getting is in the Jpeg2k code, which uses openjpeg as it's backend library. It's referring to a constant that's defined in openjpeg.h, which appears to be different on freebsd than elsewhere. This is the upstream line that defines OPJ_CLRSPC_GRAY in 2.1.2:
This is the same line from openjpeg 1.5: https://github.com/uclouvain/openjpeg/blob/openjpeg-1.5/libopenjpeg/openjpeg.h:
So, you've got the openjpeg1.5 port installed, not openjpeg 2.x. |
Thanks for insisting on this. I could finally figure out what's going on. You were right, I have installed both openjpeg1.5 and openjpeg2:
Looking at the output of
It does compile with manual CFLAGS:
So my problem is "solved". For some reason, the problem occurs only with Python 3.6. I'm not familiar with the Pillow code base. Do you see a way of fixing this? Maybe here? |
@weatherfrog If you have changes to |
ok, I'll see what I can do |
Closing as a duplicate of #2563 |
This should have been resolved by #2544 |
Pillow 4.0.0 install fails with Python 3.6 (it works fine with 3.5).
All non-Python dependencies seem to be installed (since it works with Python 3.5).
OS: FreeBSD 10.3
The text was updated successfully, but these errors were encountered: