alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.94k stars 815 forks source link

compilation error on ubuntu 24.04 #1731

Open moefear85 opened 1 month ago

moefear85 commented 1 month ago

I'm following the instructions at https://github.com/alicevision/AliceVision/blob/develop/INSTALL.md. I think this is a dependency error? I ran cmake with cmake -DALICEVISION_BUILD_DEPENDENCIES=ON -DCMAKE_INSTALL_PREFIX=$PWD/../install ../AliceVision.

src/libavutil/hwcontext_vulkan.c:362:7: error: ‘VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME’ undeclared here (not in a function); did you mean ‘VK_KHR_VIDEO_ENCODE_H264_EXTENSION_NAME’?
  362 |     { VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_KHR_VIDEO_ENCODE_H264_EXTENSION_NAME
[ 29%] Built target draco_shared
src/libavutil/hwcontext_vulkan.c:363:7: error: ‘VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME’ undeclared here (not in a function); did you mean ‘VK_KHR_VIDEO_DECODE_H264_EXTENSION_NAME’?
  363 |     { VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_KHR_VIDEO_DECODE_H264_EXTENSION_NAME
src/libavutil/hwcontext_vulkan.c:364:7: error: ‘VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME’ undeclared here (not in a function); did you mean ‘VK_KHR_VIDEO_DECODE_H265_EXTENSION_NAME’?
  364 |     { VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_KHR_VIDEO_DECODE_H265_EXTENSION_NAME
make[3]: *** [/home/mofear/source/AliceVision/build/ffmpeg/ffbuild/common.mak:81: libavutil/hwcontext_vulkan.o] Error 1
make[2]: *** [CMakeFiles/ffmpeg.dir/build.make:86: external/src/ffmpeg-stamp/ffmpeg-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:542: CMakeFiles/ffmpeg.dir/all] Error 2

any idea how to resolve this? The error happens during Performing build step for 'ffmpeg'. The following links might have more clues patch_ffmpeg_fix and issues/2345 and handbrake issue

also, gcc complains about missing #include <cstdint> in AliceVision/build/assimp/contrib/draco/src/draco/io/file_utils.h, but that is easily remedied.

moefear85 commented 1 month ago

btw is there perhaps a docker or AppImage available anywhere? Or an ubuntu repository one could add to make things easier?