-
Notifications
You must be signed in to change notification settings - Fork 675
Closed
Description
Hi,
I am trying to build PyMuPDF in version 1.17 on Windows (I have a hard dependency on this version) but I don't get it installed.
I read the various older issues about building against mupdf-1.17 but I didn't find my issue among the reported problems.
When running python setup.py build in PyMuPDF I get:
Creating library build\temp.win-amd64-3.7\Release\fitz\_fitz.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\fitz\_fitz.cp37-win_amd64.exp
fitz_wrap.obj : error LNK2001: unresolved external symbol __security_check_cookie
fitz_wrap.obj : error LNK2001: unresolved external symbol fz_convert_pixmap
fitz_wrap.obj : error LNK2001: unresolved external symbol fz_write_pixmap_as_ps
fitz_wrap.obj : error LNK2001: unresolved external symbol fz_intersect_irect
fitz_wrap.obj : error LNK2001: unresolved external symbol fz_is_document_reflowable
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_annot_rect
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_unmark_obj
fitz_wrap.obj : error LNK2001: unresolved external symbol fz_run_page_contents
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_trailer
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_add_page
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_to_int
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_delete_annot
fitz_wrap.obj : error LNK2001: unresolved external symbol pdf_add_stream
.... endlessly long essentially every linking target is not found
Here is what I did so far which summarizes the details I found in the various location on the Internet:
- download mupdf-1.17
- copy _config.h into the fitz folder of mupdf-1.17 and replaced the config.h mupdf is shipping with
- Build mupdf in Visual Studio (Release version for win32 (x86) - succeeds without errors - this is the one I am using, x64 has some errors in the curl-library so I couldn't test it with x64)
- In PyMuPDF-1.17
setup.pyset the installation paths for Windows to point to theincludedirectory of mupdf - In PyMuPDF-1.17
setup.pyset the library directory to the Release output folder from building mupdf - downloaded swigwin-4.0.2 and added it to my PATH
Is anything missing or did I overlook anything ? I don't figure out why I can't install this particular version.
Best,
Metadata
Metadata
Assignees
Labels
No labels