hetal agrawal
hetal agrawal

Reputation: 83

Build QtWebEngine 5.9.1 with proprietary codecs

We need to support to mp4 file in QtwebengineView. So we are trying to build qtwebengine of Qt 5.9.1 on msvc2015 x64, with proprietary codecs, by using following command at cmd with working directory is qtwebengine in source.

"D:\qt-everywhere-opensource-src-5.9.1\qtbase\bin\qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs"

we are facing below error.

WinRT is not supported.
QtWebEngine will not be built

We tried to follow following link: How to compile Qt webengine (5.11) on Windows with proprietary codecs But that didn't work either.

How can we build qtwebengine of qt 5.9.1 with proprietary codecs?

Upvotes: 3

Views: 2498

Answers (1)

Degang Guo
Degang Guo

Reputation: 505

I just successfully build QtWebEngine 5.9.6

My build environment:

  • Windows7 x64
  • Visual Studio 2015 x64
  • jom 1.1.2

You can refer to my build process.

Before we start building, let's install the tools:

Download the source code for qt

git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.9.6
perl init-repository --module-subset=qtwebengine,qtwebview

Let's start the formal build

cd qtwebengine
qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs
jom.exe

Then there's the long build process...

The final file will be generated in the qt5/qtwebengine/bin directory after the build is completed

Upvotes: 1

Related Questions