Skip to content

How do you compile QtWebEngine with enable proprietary codecs? #49

Open
@phd21

Description

@phd21

Hi gort818,

I do not know of any stand-alone application other than in a browser that can run Netflix and or other similar services on Linux, so it certainly would be nice if there was an easier way to install this in Linux systems.

I read the blog link below in addition to your instructions.
Netflix and Qt WebEngine 5.7 - Qt Blog
http://blog.qt.io/blog/2016/06/03/netflix-qt-webengine-5-7/

Is it necessary to compile QtWebEngine with enabling proprietary codecs to use qtwebflix with NetFlix even though "widvine" is installed?

If yes or no, I would still like to know what are the exact instructions for compiling QtWebEngine with enabling proprietary codecs in Linux? I am using Linux Mint 19 and Linux Neon KDE both are based on Ubuntu 18.04 Bionic. I have already installed the QtWebEngine and related components from the "Synaptic Package Manager (SPM)". I had no problem compiling "qtwebflkix" and I don't have access to Netflix at the moment to test this, but it comes up to their login screen.

This QT is on my KDE Neon system "Qt version 5.11.2 in /usr/lib/x86_64-linux-gnu"
Do I have to git clone the QtWebEngine for this specific branch version 5.11.2?

Error Message = Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.
QtWebEngine will not be built.

So, in the qtwebengine folder I ran the "git submodule update --init" which takes a while and then ran the command you gave.
qmake WEBENGINE_CONFIG+=use_proprietary_codecs

Results of running your command:

Qt WebEngine:
Embedded build ......................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... no
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. yes
Use System Ninja ....................... yes
Geolocation ............................ yes
Use v8 snapshot ........................ yes
Use ALSA ............................... yes
Use PulseAudio ......................... yes
Optional system libraries used:
re2 .................................. no
icu .................................. no
libwebp, libwebpmux and libwebpdemux . yes
opus ................................. yes
ffmpeg ............................... no
libvpx ............................... yes
snappy ............................... no
libsrtp .............................. no
glib ................................. yes
zlib ................................. yes
minizip .............................. no
libevent ............................. no
jsoncpp .............................. yes
protobuf ............................. no
libxml2 and libxslt .................. yes
lcms2 ................................ yes
png .................................. yes
JPEG ................................. yes
harfbuzz ............................. yes
freetype ............................. yes
Required system libraries:
fontconfig ........................... yes
dbus ................................. yes
nss .................................. yes
khr .................................. yes
glibc ................................ yes
Required system libraries for qpa-xcb:
libdrm ............................... yes
xcomposite ........................... yes
xcursor .............................. yes
xi ................................... yes
xrandr ............................... yes
xtst ................................. yes

Qt is now configured for building. Just run 'make'.
Once everything is built, Qt is installed.
You should NOT run 'make install'.
Note that this build cannot be deployed to other machines or devices.

These are the end of the results after trying to run "make".

( test -e Makefile.core_generator || /usr/lib/qt5/bin/qmake -o Makefile.core_generator /home/user69/qtwebengine/src/core/core_generator.pro WEBENGINE_CONFIG+=use_proprietary_codecs ) && make -f Makefile.core_generator
Project ERROR: Unknown module(s) in QT_PRIVATE: quick-private
Makefile:63: recipe for target 'sub-core_generator-pro-make_first' failed
make[2]: *** [sub-core_generator-pro-make_first] Error 3
make[2]: Leaving directory '/home/user69/qtwebengine/src/core'
Makefile:78: recipe for target 'sub-core-make_first' failed
make[1]: *** [sub-core-make_first] Error 2
make[1]: Leaving directory '/home/user69/qtwebengine/src'
Makefile:46: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2

I don't know if you are familiar with AppImages or OBS (Open Build System), but these do help developers in packaging their software for Linux systems. The people that created AppImages are willing to help developers if they contact them directly.

Best regards,
Phil (phd21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions