jichu4n/jfbview

Incompatible with libmupdf 1.11-2

cmcaine opened this issue · 1 comments

pdf_drop_page no longer seems to exist.

mupdf news doesn't mention any breaking changes, but looks like they made one.

make
g++ -Wall -O2 -std=c++1y -o mupdf_version mupdf_version.cpp  -lmupdf

=============================
Detected configuration:

MUPDF_VERSION = 10011
OPENJP2 = openjp2
=============================

make[1]: Entering directory '/home/colin/src/JFBView'
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o command.o command.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o document.o document.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o framebuffer.o framebuffer.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o image_document.o image_document.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o multithreading.o multithreading.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o outline_view.o outline_view.cpp
g++ -Wall -O2 -std=c++1y -DMUPDF_VERSION=10011   -c -o pdf_document.o pdf_document.cpp
pdf_document.cpp: In member function ‘virtual void PDFDocument::PDFPageCache::Discard(const int&, pdf_page* const&)’:
pdf_document.cpp:55:8: error: ‘pdf_drop_page’ was not declared in this scope
        pdf_drop_page((context), (page))
        ^
pdf_document.cpp:360:3: note: in expansion of macro ‘pdf_drop_page’
   pdf_drop_page(_parent->_fz_context, _parent->_pdf_document, page_struct);
   ^~~~~~~~~~~~~
pdf_document.cpp:55:8: note: suggested alternative: ‘pdf_run_page’
        pdf_drop_page((context), (page))
        ^
pdf_document.cpp:360:3: note: in expansion of macro ‘pdf_drop_page’
   pdf_drop_page(_parent->_fz_context, _parent->_pdf_document, page_struct);
   ^~~~~~~~~~~~~
make[1]: *** [<builtin>: pdf_document.o] Error 1
make[1]: Leaving directory '/home/colin/src/JFBView'
make: *** [Makefile:119: all] Error 2

Just merged commit 1cff1f0 which should fix compatibility with MuPDF 1.11.