Hi,
beim erstellen mit dem FFMPEG Paket v8.1 habe ich folgendes Problem beim Erstellen von softhddrm ...
Code
# make
Makefile:120: CFLAGS not set
Makefile:123: CXXFLAGS not set
Makefile:120: CFLAGS not set
Makefile:123: CXXFLAGS not set
g++ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I./opengl -I./ -DPLUGIN_NAME_I18N='"softhddrm"' -D_GNU_SOURCE -DDEBUG -DHAVE_GL -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_MPEG_COMPLETE -DH264_EOS_TRICKSPEED -DUSE_VDR_SPU -DUSE_OPENGLOSD -DUSE_GLX -DUSE_DRM -DVAAPI -DUSE_SCREENSAVER -DGIT_REV='"f902347"' -g -W -Wextra -Werror=overloaded-virtual -Wno-unused-parameter -c -o softhdcuvid.o softhdcuvid.cpp
cc -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I./opengl -I./ -DPLUGIN_NAME_I18N='"softhddrm"' -D_GNU_SOURCE -DDEBUG -DHAVE_GL -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_MPEG_COMPLETE -DH264_EOS_TRICKSPEED -DUSE_VDR_SPU -DUSE_OPENGLOSD -DUSE_GLX -DUSE_DRM -DVAAPI -DUSE_SCREENSAVER -DGIT_REV='"f902347"' -g -W -Wextra -c -o softhddev.o softhddev.c
cc -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I./opengl -I./ -DPLUGIN_NAME_I18N='"softhddrm"' -D_GNU_SOURCE -DDEBUG -DHAVE_GL -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_MPEG_COMPLETE -DH264_EOS_TRICKSPEED -DUSE_VDR_SPU -DUSE_OPENGLOSD -DUSE_GLX -DUSE_DRM -DVAAPI -DUSE_SCREENSAVER -DGIT_REV='"f902347"' -g -W -Wextra -c -o video.o video.c
In file included from video.c:602:
drm.c: In function ‘set_video_mode’:
drm.c:178:83: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
178 | if (width == mode->hdisplay && height == mode->vdisplay && mode->vrefresh == DRMRefresh &&
| ^~
drm.c:187:13: warning: implicit declaration of function ‘InitBo’ [-Wimplicit-function-declaration]
187 | InitBo(render->bpp);
| ^~~~~~
drm.c: In function ‘FindDevice’:
drm.c:317:40: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
317 | mode->vrefresh == DRMRefresh && !(mode->flags & DRM_MODE_FLAG_INTERLACE)) {
| ^~
drm.c: At top level:
drm.c:477:6: warning: conflicting types for ‘InitBo’; have ‘void(int)’
477 | void InitBo(int bpp) {
| ^~~~~~
drm.c:187:13: note: previous implicit declaration of ‘InitBo’ with type ‘void(int)’
187 | InitBo(render->bpp);
| ^~~~~~
drm.c: In function ‘InitBo’:
drm.c:485:67: warning: passing argument 3 of ‘eglCreateWindowSurface’ makes integer from pointer without a cast [-Wint-conversion]
485 | eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, gbm.surface, NULL);
| ~~~^~~~~~~~
| |
| struct gbm_surface *
In file included from video.c:173:
/usr/include/EGL/egl.h:136:109: note: expected ‘EGLNativeWindowType’ {aka ‘long unsigned int’} but argument is of type ‘struct gbm_surface *’
136 | EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
| ~~~~~~~~~~~~~~~~~~~~^~~
In file included from video.c:603:
hdr.c: In function ‘set_hdr_metadata’:
hdr.c:479:12: warning: assignment to ‘struct AVMasteringDisplayMetadata *’ from incompatible pointer type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wincompatible-pointer-types]
479 | md = sd1->data;
| ^
hdr.c:482:12: warning: assignment to ‘struct AVContentLightMetadata *’ from incompatible pointer type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wincompatible-pointer-types]
482 | ld = sd2->data;
| ^
hdr.c:530:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
530 | cs = weston_colorspace_lookup("BT.709");
| ^
hdr.c:533:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
533 | cs = weston_colorspace_lookup("BT.2020");
| ^
hdr.c:536:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
536 | cs = weston_colorspace_lookup("BT.470 B/G"); // BT.601
| ^
hdr.c:539:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
539 | cs = weston_colorspace_lookup("BT.709");
| ^
video.c: In function ‘Cuvid_get_format’:
video.c:2896:31: error: ‘FF_PROFILE_HEVC_MAIN_10’ undeclared (first use in this function); did you mean ‘AV_PROFILE_HEVC_MAIN_10’?
2896 | if (video_ctx->profile == FF_PROFILE_HEVC_MAIN_10)
| ^~~~~~~~~~~~~~~~~~~~~~~
| AV_PROFILE_HEVC_MAIN_10
video.c:2896:31: note: each undeclared identifier is reported only once for each function it appears in
video.c: In function ‘Video_get_format’:
video.c:6106:60: error: ‘AVCodecContext’ has no member named ‘ticks_per_frame’
6106 | ms_delay = (1000 * video_ctx->time_base.num * video_ctx->ticks_per_frame) / video_ctx->time_base.den;
| ^~
make: *** [<eingebaut>: video.o] Fehler 1
Display More
ffmpeg version n8.1-dev
Code
# ffmpeg -version
ffmpeg version n8.1-dev-840******BM2LTS Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 13 (Ubuntu 13.1.0-8ubuntu1~22.04)
configuration: --enable-shared --prefix=HOME/ffmpeg_build --enable-static --enable-shared --enable-pic --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --ld=g++ --bindir=/root/bin --enable-gpl --enable-gnutls --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libdav1d --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcodec2 --enable-libfontconfig --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libxavs2 --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-libopenmpt --enable-libv4l2 --enable-libpulse --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libkvazaar --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-vaapi --enable-libdrm --enable-lv2 --enable-xlib --enable-zlib --enable-vulkan --enable-version3 --enable-swresample --enable-nonfree
libavutil 60. 13.100 / 60. 13.100
libavcodec 62. 16.100 / 62. 16.100
libavformat 62. 6.101 / 62. 6.101
libavdevice 62. 2.100 / 62. 2.100
libavfilter 11. 9.100 / 11. 9.100
libswscale 9. 3.100 / 9. 3.100
libswresample 6. 2.100 / 6. 2.100
Display More