[MPlayer-users] Can't compile

Masaru Nomiya nomiya at galaxy.dti.ne.jp
Thu May 6 16:19:48 EEST 2021


Sorry for late reply.

In the Message; 

  Subject    : Re: [MPlayer-users] Can't compile
  Message-ID : <20210503212123.GA3100 at akuma.local>
  Date & Time: Mon, 3 May 2021 23:21:23 +0200

[AS] == Alexander Strasser <eclipse7 at gmx.net> has written:

SA>>>  Anyway if you don't need mencoder, `make mplayer` should be fine.

MN>> Sorry, but I can't compile;

AS>  That's because building mencoder is still failing.

AS>  If you want to build mplayer you need to restrict the make target to
AS>  mplayer. E.g. use

AS>      make mplayer

AS>  You can still use it now after the build failed.

Ah, I understand.

I tried 'make mplayer', but got error;

libmpcodecs/ad_spdif.c: In function 'init':
libmpcodecs/ad_spdif.c:129:33: error: 'AVStream' {aka 'struct AVStream'} has no member named 'codec'
  129 |             lavf_ctx->streams[0]->codec->codec_id = fmt_id_type[i].id;
      |                                 ^~
libmpcodecs/ad_spdif.c:164:33: error: 'AVStream' {aka 'struct AVStream'} has no member named 'codec'
  164 |     switch (lavf_ctx->streams[0]->codec->codec_id) {
      |                                 ^~
libmpcodecs/ad_spdif.c:180:27: warning: passing argument 1 of 'av_opt_find' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  180 |         opt = av_opt_find(&lavf_ctx->oformat->priv_class,
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libmpcodecs/ad_spdif.c:27:
ffmpeg/libavutil/opt.h:605:17: note: expected 'void *' but argument is of type  const AVClass * const*' {aka 'const struct AVClass * const*'}
  605 | const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
      |                 ^~~~~~~~~~~
libmpcodecs/ad_spdif.c: In function 'decode_audio':
libmpcodecs/ad_spdif.c:260:9: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
  260 |         av_init_packet(&pkt);
      |         ^~~~~~~~~~~~~~
In file included from ffmpeg/libavcodec/bsf.h:30,
                 from ffmpeg/libavcodec/avcodec.h:44,
                 from ffmpeg/libavformat/avformat.h:312,
                 from libmpcodecs/ad_spdif.c:25:
ffmpeg/libavcodec/packet.h:474:6: note: declared here
  474 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
make: *** [Makefile:728: libmpcodecs/ad_spdif.o] error 1


┏━━┓彡 野宮  賢             mail-to: nomiya @ galaxy.dti.ne.jp
┗━━┛ 「eメールや携帯電話に縛られた社会は、自分自身と向き合ったり、
                                                  -- M. Crichton --

More information about the MPlayer-users mailing list