On Thu, Jun 9, 2022 at 9:32 PM Luya Tshimbalanga <l...@fedoraproject.org> wrote:
>
>
> On 2022-06-09 10:27, Neal Gompa wrote:
>
> On Thu, Jun 9, 2022 at 11:26 AM Luya Tshimbalanga
> <l...@fedoraproject.org> wrote:
>
> On 2022-06-09 01:33, Neal Gompa wrote:
>
> On Thu, Jun 9, 2022 at 3:51 AM Luya Tshimbalanga <l...@fedoraproject.org> 
> wrote:
>
> Building Blender 3.2.0 with ffmpeg support failed on the following lines:
>
> -Wno-unused-function -Wno-type-limits -Wno-int-in-bool-context -Wno-switch 
> -Wno-unused-variable -Wno-uninitialized -Wno-implicit-fallthrough 
> -Wno-error=unused-but-set-variable  -Wno-class-memaccess -Wno-comment 
> -Wno-unused-local-typedefs -Wno-unused-variable -Wno-uninitialized 
> -Wno-maybe-uninitialized -DNDEBUG -std=c++17 -MD -MT 
> extern/audaspace/CMakeFiles/audaspace.dir/plugins/ffmpeg/FFMPEG.cpp.o -MF 
> CMakeFiles/audaspace.dir/plugins/ffmpeg/FFMPEG.cpp.o.d -o 
> CMakeFiles/audaspace.dir/plugins/ffmpeg/FFMPEG.cpp.o -c 
> /builddir/build/BUILD/blender-3.2.0/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp
> In file included from 
> /builddir/build/BUILD/blender-3.2.0/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp:18:
> /builddir/build/BUILD/blender-3.2.0/extern/audaspace/plugins/ffmpeg/FFMPEGReader.h:40:10:
>  fatal error: libavformat/avformat.h: No such file or directory
>    40 | #include <libavformat/avformat.h>
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
>
> despite the presence of libavformat-free-devel as build requirement. It looks 
> likes ffmpeg-free lacks libavformat/avformat.h header. Could someone provide 
> a better suggestion to properly support ffmpeg for Blender? Thanks in advance.
>
>
> Scratch build result:
>
> https://koji.fedoraproject.org/koji/taskinfo?taskID=88051797
>
> The file exists in libavformat-free-devel in F36 with the latest build
> (/usr/include/ffmpeg/libavformat/avformat.h).
>
> The ffmpeg include directory you set at build time is wrong. It should
> be /usr/include/ffmpeg. Then the files will be detected properly.
>
> It is from Blender itself hence the different path:
>
> /builddir/build/BUILD/blender-3.2.0/extern/audaspace/plugins/ffmpeg/FFMPEGReader.h:40:10:
>
> Upstream: 
> https://developer.blender.org/diffusion/B/browse/blender-v3.2-release/extern/audaspace/plugins/ffmpeg/FFMPEGReader.h
>
>
> CMake reports in the build log that it couldn't find them, but doesn't
> abort because of it.
>
> It also seems to fail to find libavdevice, which means you need
> libavdevice-free-devel too.
>
>
> No luck according to the scratch result: 
> https://koji.fedoraproject.org/koji/taskinfo?taskID=88070247
>
> In your spec, I see you have this: "-D_ffmpeg_INCLUDE_DIR=/usr/include"
>
> It should be: "-D_ffmpeg_INCLUDE_DIR=/usr/include/ffmpeg"
>
>
> Thanks Neal. That resolved the issue. About the use of pkgconfig insude 
> FindFFmpeg.cmake filr from upstream Blender, patch is welcome.
>

If I get some time, I'll look into sending a patch to them to fix the
ffmpeg detection code. No promises anytime soon, though. :(



--
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to