Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘frame_number’ is deprecated #22

Open
CRAG666 opened this issue Apr 22, 2023 · 0 comments
Open

‘frame_number’ is deprecated #22

CRAG666 opened this issue Apr 22, 2023 · 0 comments

Comments

@CRAG666
Copy link

CRAG666 commented Apr 22, 2023

@jbuchermn Hi, sorry to bother you, I know you're very busy lately, I hope you're well. First of all thanks for this amazing project.
When trying to build it throws the following error

Screenshot from 2023-04-21 at 19_42_08 435139885

text plain;

ninja: Entering directory `build'
[1/2] Compiling C object subprojects/wlroots/examples/dmabuf-capture.p/dmabuf-capture.c.o
FAILED: subprojects/wlroots/examples/dmabuf-capture.p/dmabuf-capture.c.o
cc -Isubprojects/wlroots/examples/dmabuf-capture.p -Isubprojects/wlroots/examples -I../subprojects/wlroots/examples -Isubprojects/wlroots/protocol -I/usr/include/libdrm -fdiagnostics-color=always - D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O0 -g -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition - Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers - Wno-unused-parameter -fmacro-prefix-map=../subprojects/wlroots/= -DHAS_GBM_BO_GET_FD_FOR_PLANE=1 -DLIBINPUT_HAS_HOLD_GESTURES=1 '-DICONDIR="/usr/local/share/icons"' -DHAS_XCB_ERRORS=1 -pthread - MD -MQ subprojects/wlroots/examples/dmabuf-capture.p/dmabuf-capture.c.o -MF subprojects/wlroots/examples/dmabuf-capture.p/dmabuf-capture.c.o.d -o subprojects/wlroots/examples/dmabuf-capture .p/dmabuf-capture.c.o -c ../subprojects/wlroots/examples/dmabuf-capture.c
../subprojects/wlroots/examples/dmabuf-capture.c: In the function 'vid_encode_thread':
../subprojects/wlroots/examples/dmabuf-capture.c:524:33: error: 'frame_number' is deprecated [-Werror=deprecated-declarations]
   524 | ctx->avctx->frame_number, get_fifo_size(&ctx->vid_frames));
       | ^~~
In the included file from ../subprojects/wlroots/examples/dmabuf-capture.c:2:
/usr/include/libavcodec/avcodec.h:1076:9: note: declared here
  1076 | int frame_number;
       | ^~~~~~~~~~~~
cc1: all warnings are treated as errors
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant