Closed dprat closed 1 year ago
This look similar to #49, building from source for Apple silicon with libraries from homebrew. Unfortunately no one provided a customize_build_homebrew
function so you'll need to adjust include and library directories, and library names, via command line or imagecodecs_distributor_setup.customize_build
function. See the customize_build_macports
function for example.
Uncommenting include statements from generated Cython code won't work. The latest imagecodecs release requires libjpeg-turbo 2.1.91 and libtiff 4.5.0, which might not be available in homebrew yet.
Yes indeed it is similar. That's what I did.
But i'm not sure to understand about uncommenting include statements since the issue was :
imagecodecs/_jpegxr.c:756:10: fatal error: 'windowsmediaphoto.h' file not found
#include "windowsmediaphoto.h"
With windowsmediaphoto
being available only on Windows distribution
windowsmediaphoto.h
is part of jxrlib
. Maybe homebrew puts it in an unusual place or forgot to ship it?
Indeed... After hours of looking for it I finally found it ! Many thanks !
I've been struggling to install the package with pip.
I'm under M1 MacOS Ventura 13.1 and Python 3.11.2
How can I solve that ?
Many thanks
Edit1:
After some investigations I tried to install from the source and to comment out
_jpegxr.c
from l.756 :Now I end up with problem from the libtiff :
edit3: I finally found out the problem with libtiff. The one installed from homebrew was missing the declaration of
TIFFOpenOptions
from thetiffio.h
I solved the problem by reinstalling the library from source : https://gitlab.com/libtiff/libtiff/-/tree/master