[MPlayer-users] libopenjpeg autodetection (was: 2 Questions)
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Oct 1 12:48:16 CEST 2011
Masaru Nomiya <nomiya <at> galaxy.dti.ne.jp> writes:
> ============ Checking for OpenJPEG (JPEG 2000) support ============
>
> #define OPJ_STATIC
> #include <openjpeg.h>
> int main(void) { opj_dparameters_t dec_params;
opj_set_default_decoder_parameters(&dec_params);
> return 0; }
>
> cc -Wundef -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization
> -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -O2 -march=native
-mtune=native
> -pipe -g -fno-tree-vectorize /tmp/mplayer-configure-7788-14778/tmp.c -I.
-Iffmpeg -D_REENTRANT
> -I/usr/include/directfb -I/usr/include/ -lm -liconv -lncurses -lsmbclient
-lpng -lz -lmng -lz
> -ljpeg -ldirectfb -lXext -lX11 -lpthread -lXss -lXv -lvdpau -lXinerama
-lXxf86vm -lXxf86dga -lggi
> -laa -L/usr/lib64 -lcaca -o /tmp/mplayer-configure-7788-14778/tmp -lopenjpeg
> In file included from /tmp/mplayer-configure-7788-14778/tmp.c:2:0:
> /usr/local/include/openjpeg.h:1154:80: error: expected ')' before '*' token
> /usr/local/include/openjpeg.h:1155:72: error: expected ')' before '*' token
> In file included from /tmp/mplayer-configure-7788-14778/tmp.c:2:0:
> /usr/local/include/openjpeg.h:1419:12: error: expected declaration specifiers
or '...' before 'FILE'
>
> Result is: no
I cannot reproduce your problem (for me, FFmpeg's libopenjpeg detection fails
due to --as-needed, but MPlayer's works fine), but I can at least post the
relevant lines from openjpeg.h (that do not exist in my older version):
OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_default_file_stream (FILE *
p_file, opj_bool p_is_read_stream);
OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_file_stream (FILE * p_file,
OPJ_UINT32 p_buffer_size, opj_bool p_is_read_stream);
Carl Eugen
More information about the MPlayer-users
mailing list