Re: make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1
Alexander Strasser <[email protected]> Tue, 9 Apr 2024 00:51:11 +0200
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <ZhR03-JeYiuHpDqq@metallschleimette> |
Hi Antonio! On 2024-04-08 15:22 +0000, Antonio Olivares wrote: > Dear mplayer-users, > > compilation fails on updated fedora 39 > > cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -W= redundant-decls -Werror=3Dformat-security -Wstrict-prototypes -Wmissing-pro= totypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-state= ment -std=3Dgnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE= =3D200112 -D_XOPEN_SOURCE=3D600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=3D= native -mtune=3Dnative -pipe -ffast-math -fomit-frame-pointer -fno-tree-vec= torize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_B= ITS=3D64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/free= type2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/syspro= f-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DZLIB_C= ONST -I/usr/include/libxml2 -c -o libmpcodecs/ae_lavc.o libmpcodecs/ae_lavc= .c > libmpcodecs/ae_lavc.c: In function 'bind_lavc': > libmpcodecs/ae_lavc.c:53:41: error: 'AVCodecContext' has no member named = 'channels' > =A0=A0 53 |=A0=A0=A0=A0=A0=A0=A0=A0 mux_a->wf->nChannels =3D lavc_actx->c= hannels; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > libmpcodecs/ae_lavc.c: In function 'mpae_init_lavc': > libmpcodecs/ae_lavc.c:154:21: warning: assignment discards 'const' qualif= ier from pointer target type [-Wdiscarded-qualifiers] > =A0 154 |=A0=A0=A0=A0=A0=A0=A0=A0 lavc_acodec =3D avcodec_find_encoder_by= _name(lavc_param_acodec); > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 ^ > libmpcodecs/ae_lavc.c:195:18: error: 'AVCodecContext' has no member named= 'channels' > =A0 195 |=A0=A0=A0=A0=A0=A0=A0=A0 lavc_actx->channels =3D encoder->params= .channels; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > libmpcodecs/ae_lavc.c:222:58: error: 'AVCodecContext' has no member named= 'channels' > =A0 222 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int framesize = =3D (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + = 1; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > libmpcodecs/ae_lavc.c:222:90: error: 'AVCodecContext' has no member named= 'channels' > =A0 222 |=A0 =3D (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_act= x->channels) + 1; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > > libmpcodecs/ae_lavc.c:241:80: error: 'AVCodecContext' has no member named= 'channels' > =A0 241 | c_actx->frame_size =3D (lavc_actx->block_align - 4 * lavc_actx-= >channels) * 8 / (4 * lavc_actx->channels) + 1; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > > libmpcodecs/ae_lavc.c:241:112: error: 'AVCodecContext' has no member name= d 'channels' > =A0 241 | >block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->c= hannels) + 1; > =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~ > > make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1 This is also a symptom of the incompatibility with recent FFmpeg sources. The problems are fixed now in latest MPlayer SVN version. Starting with MPlayer SVN r38458 it should hopefully build for you again. If possible try again and report back. Thanks in advance! Best regards, Alexander