[MPlayer-users] Compile error

Alexander Strasser eclipse7 at gmx.net
Fri Nov 3 02:51:59 EET 2017


Hi!

On 2017-11-01 13:03 +0100, Alexander Strasser wrote:
> On 2017-10-29 09:53 +0900, Masaru Nomiya wrote:
> [...]
> > 
> > > Please try again with SVN r37999
> > 
> > I tried, but I got another error;
> 
> I had problems with libopenjpeg too.
> 
> Didn't find time to look into it. If it is acceptable for your
> use cases, you could consider to temporarily build without
> openjpeg by passing --disable-libopenjpeg to configure.
> 
> I will look into the problem as time permits.

Since FFmpeg commit 279dc40716 a higher version of libopenjpeg is
required for the FFmpeg decoder. It needs at least OpenJPEG 2.1 .

Could this be your problem too?


  Alexander

> > [...]
> > libavcodec/libopenjpegenc.c:727:130: error: 'OPJ_CINEMA4K_24' undeclared here (not in a function); did you mean 'OPJ_CINEMA4K'?
> >      { "cinema_mode",   "Digital Cinema",    OFFSET(cinema_mode),   AV_OPT_TYPE_INT,   { .i64 = OPJ_OFF         }, OPJ_OFF,       OPJ_CINEMA4K_24, VE, "cinema_mode" },
> >                                                                                                                                   ^~~~~~~~~~~~~~~
> >                                                                                                                                   OPJ_CINEMA4K
> > libavcodec/libopenjpegenc.c:729:96: error: 'OPJ_CINEMA2K_24' undeclared here (not in a function); did you mean 'OPJ_CINEMA4K_24'?
> >      { "2k_24",         NULL,                0,                     AV_OPT_TYPE_CONST, { .i64 = OPJ_CINEMA2K_24 }, 0,         0,           VE, "cinema_mode" },
> >                                                                                                 ^~~~~~~~~~~~~~~
> >                                                                                                 OPJ_CINEMA4K_24
> > libavcodec/libopenjpegenc.c:730:96: error: 'OPJ_CINEMA2K_48' undeclared here (not in a function); did you mean 'OPJ_CINEMA2K_24'?
> >      { "2k_48",         NULL,                0,                     AV_OPT_TYPE_CONST, { .i64 = OPJ_CINEMA2K_48 }, 0,         0,           VE, "cinema_mode" },
> >                                                                                                 ^~~~~~~~~~~~~~~
> > [...]
> > CC	libavformat/teeproto.o
> > cc1: some warnings being treated as errors
> > make[1]: *** [ffbuild/common.mak:60: libavcodec/libopenjpegenc.o] Error 1
> > [...]
> > libavformat/thp.c:193:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> >          if (ret != thp->audiosize) {
> >                  ^~
> > CC	libavformat/tmv.o
> > CC	libavformat/tta.o
> > make[1]: Leaving directory '/tmp/tes/mplayer/ffmpeg'
> > make: *** [Makefile:737: ffmpeg/libavcodec/libavcodec.a] Error 2
> > make: *** Waiting for unfinished jobs....


More information about the MPlayer-users mailing list