Hello, I report a little bug in source code. In the 'fitz/image_jpx.c' file at line 54, I must comment : /* if (indexed) params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG; */ The reason is you use the 'flags' member which is not a member of the 'opj_dparameters_t' type ('params' is a variable of type 'opj_dparameters_t'). If you want to use the 'flags' member, you must use the 'opj_cparameters_t' which contains this member. You can find it in '/usr/include/openjpeg.h'. The error at compile time is : fitz/image_jpx.c: In function ‘fz_load_jpx’: fitz/image_jpx.c:54: error: ‘opj_dparameters_t’ has no member named ‘flags’ fitz/image_jpx.c:54: error: ‘OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG’ undeclared (first use in this function) fitz/image_jpx.c:54: error: (Each undeclared identifier is reported only once fitz/image_jpx.c:54: error: for each function it appears in.) Regards.
http://bugs.ghostscript.com/show_bug.cgi?id=693010 *** This bug has been marked as a duplicate of bug 693010 ***