While compiling MuPDF sources on ARM running Debian testing the build process fails with: ------------------------------------------------------------------------------ CC build/debug/image_jpx.o fitz/image_jpx.c: In function 'fz_load_jpx': fitz/image_jpx.c:54:9: error: 'opj_dparameters_t' has no member named 'flags' fitz/image_jpx.c:54:19: error: 'OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG' undeclared (first use in this function) fitz/image_jpx.c:54:19: note: each undeclared identifier is reported only once for each function it appears in make: *** [build/debug/image_jpx.o] Error 1 ------------------------------------------------------------------------------ The openjpeg library version: libopenjpeg-2.1.3.0.so After commenting out the: ------------------------------------------------------------------------------ if (indexed) params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG; ------------------------------------------------------------------------------ The library compiles and seems to run fine.
We expect muPDF to be built using the thirdparty libraries that we supply, or (at a push) by the same versions of those libraries in the system. Thus, if you hit problems compiling MuPDF with older (or in this case newer, still beta) versions of the libraries, we don't consider this a bug.
Created attachment 8555 [details] [PATCH] Fix build with newer openjpeg library.
What about attached patch? It's pretty straightforward and works well with both older and newer openjpeg library.
Just wanted to say thanks a lot for your patch, Cyril -- it helped me compile MuPDF on the Nokia N900 with Maemo 5. [-:
*** Bug 693191 has been marked as a duplicate of this bug. ***
I must manually apply this patch after cloning the last mupdf version on git. Why mupdf isn't yet corrected on git whereas we have the patch ? Regards.
See comment #2.