#2376 closed defect (duplicate)

Error during build

Reported by: Yury Owned by: beastd
Priority: normal Component: undetermined
Version: HEAD Severity: blocker
Keywords: Cc: Yury
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no


Latest mplayer from SVN could not be build due to errors in ve_lavc.c:

gcc11 -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_ISOC99_SOURCE -I. -Iffmpeg -O3 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -march=bdver2 -fstack-protector-strong -fomit-frame-pointer -fbranch-count-reg -fforce-addr -fno-finite-math-only -fPIC -DPIC -I/usr/local/include -I/usr/include -I/usr/include/openssl -fpie -DPIC -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/ -I/usr/local/include/openjpeg-2.4 -I/usr/local/include -D_REENTRANT -I/usr/local/include -I/usr/local/include/freetype2 -DZLIB_CONST -I/usr/local/include/opus -I/usr/local/include/bs2b -I/usr/local/include/libxml2 -I/usr/local/include -D_THREAD_SAFE -c -o libmpcodecs/ve_lavc.o libmpcodecs/ve_lavc.c
libmpcodecs/ve_lavc.c:102:42: error: 'FF_PRED_LEFT' undeclared here (not in a function)

102 | static int lavc_param_prediction_method= FF_PRED_LEFT;

| ~

libmpcodecs/ve_lavc.c: In function 'config':
libmpcodecs/ve_lavc.c:347:22: error: 'AVCodecContext' has no member named 'b_frame_strategy'

347 | lavc_venc_context->b_frame_strategy= lavc_param_vb_strategy;

| ~

libmpcodecs/ve_lavc.c:349:22: error: 'AVCodecContext' has no member named 'rtp_payload_size'

349 | lavc_venc_context->rtp_payload_size= lavc_param_packet_size;

| ~


Although mplayer is built actually and working, but not mencoder and errors are shown.

Change History (1)

comment:1 by beastd, 13 months ago

Resolution: duplicate
Status: newclosed


Thanks for the report.

Unfortunately the build is failing, which is already tracked in #2375 .

If you don't need mencoder you should be able to build mplayer just fine:

make mplayer

If things work out, we should be able to fix the build in the next days.

I close this bug as duplicate, but I set you on Cc in the other bug, so you will get notified on updates.

Note: See TracTickets for help on using tickets.