Jøger,

I’ve finally got back to this and found an issue.

https://bugreports.qt.io/browse/QTBUG-138596

It seems that the prl files are not specifying correctly the linker flags, eg: 
-llibavformat.a instead of -lavformat

It is impossible to build an app without manually changing the Makefile.

I know that a fix might take a while. Is there any way to manually change this 
in order to avoid changing the makefile all the time?

Thanks!

Nuno

> On 15 Oct 2024, at 11:30, Nuno Santos <[email protected]> wrote:
> 
> Joger,
> 
> Thanks for your reply.
> 
> It seems that I have failed this little detail:
> 
> -DQT_DEPLOY_FFMPEG=ON
> 
> Also, is it possible to statically link ffmpeg to Qt? Or will we always need 
> to have the dlls somewhere?
> 
> One thing that I still couldn’t figure out is what are the main advantages of 
> using ffmpeg as backend compared with the native backends?
> 
> Thank you!
> 
> Best,
> 
> Nuno
> 
>> On 14 Oct 2024, at 17:42, Jøger Hansegård <[email protected]> wrote:
>> 
>> There is also some information in the official Qt documentation; see: 
>> https://doc.qt.io/qt-6/qtmultimedia-building-from-source.html
>> 
>> Best regards,
>> Jøger Hansegård,
>> The Qt Company
>> 
>> 
>> -----Original Message-----
>> From: Interest <[email protected]> On Behalf Of Jøger 
>> Hansegård via Interest
>> Sent: Monday, October 14, 2024 6:21 PM
>> To: Nuno Santos <[email protected]>; interestqt-project. org 
>> <[email protected]>
>> Subject: Re: [Interest] Qt 6.8.0 - FFMPEG on Windows - Is it possible?
>> 
>> Hi Nuno,
>> 
>> Yes, this is possible, and we are working on improving the documentation on 
>> how to do it. In the meantime, this is one way to do it:
>> 
>> 1. Download FFmpeg built with shared libraries from one of the links below.
>> 2. After unzipping the FFmpeg binaries to a suitable location, configure Qt:
>> 
>>   configure.bat <your normal settings> -- -DFFMPEG_DIR=<path to directory 
>> containing FFmpeg include/lib/bin folders> -DQT_DEPLOY_FFMPEG=ON
>> 
>> Note the double '--' that separates configure arguments from CMake 
>> arguments. Once this is done, you can build Qt as usual.
>> 
>> Be aware that he FFmpeg version in the link below is a GPL build. If this is 
>> not suitable for you, I added a link to my unofficial wiki page that 
>> describes different ways to build FFmpeg for Windows. This gives you control 
>> over building FFmpeg without any GPL or non-free components. Among the 
>> described options, using VCpkg is the simplest.
>> 
>> Download links:
>> FFmpeg for Windows (GPL): https://ffmpeg.org/download.html#build-windows 
>> (use the ones from BtbN, direct link: 
>> https://github.com/BtbN/FFmpeg-Builds/releases). It contains shared 
>> libraries and FFmpeg header files.
>> Building FFmpeg: 
>> https://wiki.qt.io/User:Joger/Building_Qt_Multimedia_with_FFmpeg
>> 
>> Thanks,
>> Jøger
>> The Qt Company
>> 
>> -----Original Message-----
>> From: Interest <[email protected]> On Behalf Of Nuno Santos 
>> via Interest
>> Sent: Monday, October 14, 2024 5:04 PM
>> To: interestqt-project. org <[email protected]>
>> Subject: [Interest] Qt 6.8.0 - FFMPEG on Windows - Is it possible?
>> 
>> Hi,
>> 
>> I do I enable FFMPEG backend on Windows?
>> 
>> Is it even possible?
>> 
>>> configure.bat -help
>> 
>> does not have any mention to it.
>> 
>> Thanks!
>> 
>> Regards,
>> 
>> Nuno
>> _______________________________________________
>> Interest mailing list
>> [email protected]
>> https://lists.qt-project.org/listinfo/interest
>> _______________________________________________
>> Interest mailing list
>> [email protected]
>> https://lists.qt-project.org/listinfo/interest
> 

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to