Got a bunch of warnings and a final error. Note I did have difficulty getting mupdf to compile but was finally able to do it by changing all the openssl includes with a hard path to where they were located on my system. Also had to use the following on the make: make HAVE_X11=no
Georges-MBP:PyMuPDF gbarnabic$ python3 setup.py install
running install
running build
running build_py
creating build/lib.macosx-10.6-intel-3.4
creating build/lib.macosx-10.6-intel-3.4/fitz
copying fitz/__init__.py -> build/lib.macosx-10.6-intel-3.4/fitz
copying fitz/fitz.py -> build/lib.macosx-10.6-intel-3.4/fitz
copying fitz/utils.py -> build/lib.macosx-10.6-intel-3.4/fitz
running build_ext
building 'fitz._fitz' extension
creating build/temp.macosx-10.6-intel-3.4
creating build/temp.macosx-10.6-intel-3.4/fitz
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I./mupdf/include -I./mupdf/include/mupdf -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c ./fitz/fitz_wrap.c -o build/temp.macosx-10.6-intel-3.4/./fitz/fitz_wrap.o
./fitz/fitz_wrap.c:3316:45: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
data = fz_open_memory(gctx, stream, streamlen);
^~~~~~
./mupdf/include/mupdf/fitz/stream.h:66:59: note: passing argument to parameter
'data' here
fz_stream *fz_open_memory(fz_context *ctx, unsigned char *data, int len);
^
./fitz/fitz_wrap.c:3555:62: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
pm = fz_new_pixmap_with_data(gctx, cs, w, h, samples);
^~~~~~~
./mupdf/include/mupdf/fitz/pixmap.h:83:109: note: passing argument to parameter
'samples' here
...*ctx, fz_colorspace *colorspace, int w, int h, unsigned char *samples);
^
./fitz/fitz_wrap.c:3563:40: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
pm = fz_load_png(gctx, data, size);
^~~~
./mupdf/include/mupdf/fitz/image.h:87:56: note: passing argument to parameter
'data' here
fz_pixmap *fz_load_png(fz_context *ctx, unsigned char *data, int size);
^
3 warnings generated.
./fitz/fitz_wrap.c:3316:45: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
data = fz_open_memory(gctx, stream, streamlen);
^~~~~~
./mupdf/include/mupdf/fitz/stream.h:66:59: note: passing argument to parameter
'data' here
fz_stream *fz_open_memory(fz_context *ctx, unsigned char *data, int len);
^
./fitz/fitz_wrap.c:3555:62: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
pm = fz_new_pixmap_with_data(gctx, cs, w, h, samples);
^~~~~~~
./mupdf/include/mupdf/fitz/pixmap.h:83:109: note: passing argument to parameter
'samples' here
...*ctx, fz_colorspace *colorspace, int w, int h, unsigned char *samples);
^
./fitz/fitz_wrap.c:3563:40: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
pm = fz_load_png(gctx, data, size);
^~~~
./mupdf/include/mupdf/fitz/image.h:87:56: note: passing argument to parameter
'data' here
fz_pixmap *fz_load_png(fz_context *ctx, unsigned char *data, int size);
^
3 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.4/./fitz/fitz_wrap.o -L./PyMuPDF-optional-material/LibWin32 -llibmupdf -llibthirdparty -o build/lib.macosx-10.6-intel-3.4/fitz/_fitz.so /NODEFAULTLIB:MSVCRT
clang: error: no such file or directory: '/NODEFAULTLIB:MSVCRT'
error: command '/usr/bin/clang' failed with exit status 1
Georges-MBP:PyMuPDF gbarnabic$