I built QtWebEngine 5.7.1 from git sources to get support of proprietary codecs.
I wrote "WEBENGINE_CONFIG+=use_proprietary_codecs" to the qtwebengine.pro. While qmake was configuring the project, I saw the log saying that MP3 et H264 codecs were enabled.
I spent one day to get QtWebEngine fully compiled with msvc2015 in 32bit and ... The mp3 support still not working !
I use html5test.com to get a quick look of webbrowser capabilities.
I searched a bit and I found out about a ffmpegsumo.dll that wasn't built. I tried to get a 32bits copy over the internet, I don't know really where to put it, I tried different places, that still not working. Finally I thing that's not the good idea.
How QtWebEngine uses mp3 codec ? I'm a bit lost ...
I finally found the solution. In brief, do not try to compile Qt SDK or any part of it using Qt Creator ...
Just use qmake and nmake in a simple cmd.exe shell. Here is how I did steppes :
First, I downloaded the source along the Qt SDK (5.7.1) with MaintenanceTools.
Then, I downloaded extra tools :
Be sure to add every .exe to System path, and restart the computer.
Assuming Qt SDK is installed in c:\Qt, and the version is 5.7.1 compiled with MSVC2015, you start cmd.exe and you type :
cd C:\Qt\5.7\Src\qtwebengine\
C:\Qt\5.7\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs
* Wait for basic configuration ... *
nmake
* Wait for compilation ... *
nmake install
* Wait for files copy into SDK ... *
Then you can use the SDK normally as if you just had downloaded it.
I created a new topic on stackoverflow with step by step on how to do this (I lost 5 days to find these so I wanted to save others people time):
How to compile Qt webengine (5.11) on Windows with proprietary codecs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With