Vulkan errors during ffmpeg build

This forum is about all development around libVLC.
npuleio
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Nov 2023 16:48

Vulkan errors during ffmpeg build

Postby npuleio » 12 Dec 2023 09:33

Hello everyone!

Since I am trying to build as :

Code: Select all

compile-libvlc.sh -l -a arm64-v8a --release
and since I need only just realrtsp and opus to obtain a light library in my android app to avoid to build a 180MB APK with libvlc-all, in compile-libvlc.sh I settled VLC_CONFIGURE_ARGS as like as :

Code: Select all

VLC_CONFIGURE_ARGS="\ --disable-alsa \ --disable-caca \ --disable-dbus \ --disable-dca \ --disable-decklink \ --disable-dv1394 \ --disable-faad \ --disable-fluidsynth \ --disable-goom \ --disable-jack \ --disable-libva \ --disable-linsys \ --disable-mad \ --disable-mtp \ --disable-nls \ --disable-notify \ --disable-projectm \ --disable-pulse \ --disable-qt \ --disable-samplerate \ --disable-schroedinger \ --disable-sdl-image \ --disable-shared \ --disable-sid \ --disable-skins2 \ --disable-svg \ --disable-tremor \ --disable-udev \ --disable-update-check \ --disable-v4l2 \ --disable-vcd \ --disable-vlc \ --disable-vlm \ --disable-vnc \ --disable-xcb \ --disable-avcodec \ --disable-avformat \ --disable-bluray \ --disable-chromecast \ --disable-dvbpsi \ --disable-dvdnav \ --disable-dvdread \ --disable-fluidlite \ --disable-gles2 \ --disable-gme \ --enable-jpeg \ --disable-libass \ --disable-libxml2 \ --disable-live555 \ --disable-lua \ --disable-matroska \ --disable-mod \ --disable-mpg123 \ --disable-opensles \ --enable-opus \ --enable-realrtsp \ --disable-smb2 \ --disable-sout \ --disable-swscale \ --disable-taglib \ --disable-vorbis \ --disable-zvbi \ --with-pic \ "
but when it compiles I obtain :

Code: Select all

make -C ffmpeg/vlc_build make[1]: Entering directory '/home/dev/projects/libvlcjni/buildsystem/vlc/contrib/contrib-android-aarch64-linux-android/ffmpeg/vlc_build' CC libavutil/hwcontext_vulkan.o src/libavutil/hwcontext_vulkan.c:359:7: error: use of undeclared identifier 'VK_KHR_VIDEO_QUEUE_EXTENSION_NAME' { VK_KHR_VIDEO_QUEUE_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:360:7: error: use of undeclared identifier 'VK_KHR_VIDEO_DECODE_QUEUE_EXTENSION_NAME' { VK_KHR_VIDEO_DECODE_QUEUE_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:361:7: error: use of undeclared identifier 'VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME' { VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:362:7: error: use of undeclared identifier 'VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME' { VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:363:7: error: use of undeclared identifier 'VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME' { VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:364:7: error: use of undeclared identifier 'VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME' { VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ src/libavutil/hwcontext_vulkan.c:469:29: error: invalid application of 'sizeof' to an incomplete type 'const VulkanOptExtension[]' (aka 'const struct VulkanOptExtension[]') optional_exts_num = FF_ARRAY_ELEMS(optional_device_exts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavutil/macros.h:53:34: note: expanded from macro 'FF_ARRAY_ELEMS' #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) ^~~ src/libavutil/hwcontext_vulkan.c:1444:29: error: invalid application of 'sizeof' to an incomplete type 'const VulkanOptExtension[]' (aka 'const struct VulkanOptExtension[]') for (int j = 0; j < FF_ARRAY_ELEMS(optional_device_exts); j++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavutil/macros.h:53:34: note: expanded from macro 'FF_ARRAY_ELEMS' #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) ^~~ 8 errors generated. make[1]: *** [src/ffbuild/common.mak:81: libavutil/hwcontext_vulkan.o] Error 1 make[1]: Leaving directory '/home/dev/projects/libvlcjni/buildsystem/vlc/contrib/contrib-android-aarch64-linux-android/ffmpeg/vlc_build' make: *** [../src/ffmpeg/rules.mak:237: .ffmpeg] Error 2
maybe does it need some other args in the list of VLC_CONFIGURE_ARGS to be enabled to compile those extensions or are they an effective error in hwcontext_vulkan.c ?

Thanks in advance!!
Cheers !

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Vulkan errors during ffmpeg build

Postby Rémi Denis-Courmont » 12 Dec 2023 16:42

Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

npuleio
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Nov 2023 16:48

Re: Vulkan errors during ffmpeg build

Postby npuleio » 13 Dec 2023 08:26

Hello Rémi Denis-Courmont and all,

I tried to put under VLC_CONFIGURE_ARGS in compile-libvlc.sh this arg

Code: Select all

--disable-ffmeg
or even trying

Code: Select all

--disable-vulkan
if it'd be right to disable ffmpeg, but even that if-operator, who manages adding VLC_CONFIGURE_ARGS or not:

Code: Select all

if [ ! -e $VLC_BUILD_DIR/config.h -o "$AVLC_RELEASE" = 1 ]; then
should run also those VLC_CONFIGURE_ARGS since I put --release argument , practically as like as :

Code: Select all

./compile-libvlc.sh -l -a arm64-v8a --release
which should in fact set

Code: Select all

AVCL_RELEASE = 1


but it doesn't even run those arguments under VLC_CONFIGURE_ARGS where I disabled almost everything I don't need except those arguments I need: --enable-realrtsp , --enable-opus and --enable-matroska ... how I could make it to compile having only those options I need?...

npuleio
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Nov 2023 16:48

Re: Vulkan errors during ffmpeg build

Postby npuleio » 13 Dec 2023 09:42

I tried to disable Vulkan in rules.mak under ffmpeg src directory and it went to the end but it reported this :

Code: Select all

configure: error: VLC is based on plugins. Shared libraries cannot be disabled.
what does that mean?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests