After updating openjpeg to 2.1, I am receiving the following error from gcc 4.9. It looks like this has happened before with the 2.0 update, so it seems reasonable to assume the API has changed again for 2.1. In file included from /usr/include/openjpeg-2.1/opj_stdint.h:34:0, from /usr/include/openjpeg-2.1/openjpeg.h:115, from source/fitz/load-jpx.c:11: /usr/include/openjpeg-2.1/opj_config.h:2:0: warning: "OPJ_HAVE_STDINT_H" redefined #define OPJ_HAVE_STDINT_H 1 ^ source/fitz/load-jpx.c:8:0: note: this is the location of the previous definition #define OPJ_HAVE_STDINT_H ^ source/fitz/load-jpx.c: In function ‘fz_load_jpx’: source/fitz/load-jpx.c:119:2: error: too few arguments to function ‘opj_stream_set_user_data’ opj_stream_set_user_data(stream, &sb); ^ In file included from source/fitz/load-jpx.c:11:0: /usr/include/openjpeg-2.1/openjpeg.h:1154:27: note: declared here OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function); ^ Makefile:151: recipe for target 'build/debug/fitz/load-jpx.o' failed make: *** [build/debug/fitz/load-jpx.o] Error 1 make: *** Waiting for unfinished jobs....
We supply a bug fixed version of OpenJPEG. Until all our bugfixes make it into the released version of OpenJPEG we will not be updating our code to use the released version. Use our version. I have just checked the openjpeg svn, and as of revision 2997, our fixes are not there.