widevine is not work
-
I got a EME error so I have to add widevine.
So I rebuilt Qt source code, but it still doesn't workDid I miss something?
I used ubuntu 20, Qt 6.8.1Below is what i did
export QTWEBENGINE_CHROMIUM_FLAGS=--widevine-path=/my_google_chrome_path/libwidevinecdm.so" cd /mypath/Qt/6.8.1/Src ./configure -webengine-proprietary-codecs cmake --build . --parallel cmake --install .
Below is the config.summary file
Building for: linux-g++ (x86_64, CPU features: ) Compiler: gcc 10.5.0 Build options: Mode ................................... release Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using ccache ........................... no Unity Build ............................ no Using new DTAGS ........................ yes Relocatable ............................ yes Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel Control-flow Enforcement Technology (CET) yes Using Glibc function fortification ..... yes Using -ftrivial-auto-var-init=pattern .. no Using -fstack-protector-strong ......... yes Using -fstack-clash-protection ......... yes Using libstdc++ assertions ............. yes Using libc++ hardening ................. no Using -z relro -z now when linking ..... yes Target compiler supports: x86 Intrinsics ....................... Basic VAES AVX512VBMI2 Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs tools Install examples sources ............... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... yes Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes Using vcpkg ............................ no udev ................................... no OpenSSL ................................ no Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ no Using system zlib ...................... yes Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. yes C++23 <stacktrace> ..................... no DoubleConversion ....................... yes Using system DoubleConversion ........ no CLONE_PIDFD support in forkfd .......... yes GLib ................................... yes ICU .................................... no Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Defaulting legacy IPC to POSIX ......... no Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... yes Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Linux AF_NETLINK ....................... yes DTLS ................................... no OCSP-stapling .......................... no SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... yes Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ no qmake .................................. yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ yes HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. yes Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ yes Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Metal .................................. no QGraphicsFrameCapture .................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no HiRes wheel support in libinput ........ no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes xkbcommon-x11 ........................ no xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ yes EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... no XCB GLX .......................... no EGL-X11 Plugin ..................... no Windows: Direct 2D ............................ no Direct 2D 1.1 ........................ no DirectWrite .......................... no DirectWrite 3 ........................ no Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt Testlib: Tester for item models ................. yes Batch tests ............................ no Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Mimer .................................. no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ no Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion FluentWinUI3 Imagine Material Universal QtQuick3D: Assimp ................................. yes System Assimp .......................... no QtQuick3D XR: OpenXR ................................. yes Using system OpenXR .................. no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... no Open SLES (Android) .................. no Web Assembly ......................... no Plugin: QtMM GStreamer plugin ................ no FFmpeg ............................... no FFmpeg plugin features: PipeWire ........................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. no Hardware acceleration and features: Video for Linux ...................... yes VAAPI support ........................ no Linux DMA buffer support ............. yes VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. yes Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... no Qt Graphs Support: 2D Graphs .............................. yes 3D Graphs .............................. yes Qt Graphs 3D: Bars3D ................................. yes Scatter3D .............................. yes Surface3D .............................. yes Serial Port: ntddmodm ............................... no Qt Tools: Qt Assistant ........................... yes libclang found ......................... yes Clang-based lupdate parser ............. yes Qt Widgets Designer .................... yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... no Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes WebEngine Repository Build Options: Build Ninja ............................ no Build Gn ............................... yes Jumbo Build ............................ yes Developer build ........................ no Build QtWebEngine Modules: Build QtWebEngineCore ................ yes Build QtWebEngineWidgets ............. yes Build QtWebEngineQuick ............... yes Build QtPdf Modules: Build QtPdfWidgets ................... yes Build QtPdfQuick ..................... yes Optional system libraries: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no glib ................................. yes zlib ................................. yes minizip .............................. no libevent ............................. no libxml2 and libxslt .................. no lcms2 ................................ no png .................................. yes tiff ................................. no jpeg ................................. no libopenjpeg2 ......................... no harfbuzz ............................. no freetype ............................. yes libpci ............................... no Qt WebEngineCore: Embedded build ......................... no Full debug information ................. no Sanitizer support ...................... no Pepper Plugins ......................... yes Printing and PDF ....................... yes Proprietary Codecs ..................... yes Spellchecker ........................... yes WebRTC ................................. yes PipeWire over GIO ...................... no Geolocation ............................ yes WebChannel support ..................... yes Kerberos Authentication ................ no Extensions ............................. yes Support X11 on qpa-xcb ................. no VA-API support ......................... no Use ALSA ............................... yes Use PulseAudio ......................... no Use v8 context snapshot ................ yes Build WebEngineDriver .................. yes Qt WebEngineQuick: UI Delegates ........................... yes Qt PDF: Support V8 ............................. no Support XFA ............................ no Support XFA-BMP ........................ no Support XFA-GIF ........................ no Support XFA-PNG ........................ no Support XFA-TIFF ....................... no Bitcode support ........................ no Use static runtime ..................... no Qt Protobuf: Qt Core types support .................. no Qt Gui types support ................... no Well-known types support ............... no QML Protobuf support ................... yes Qt Protobuf tools: Qt Protobuf generator .................. no Qt GRPC: gRPC support ........................... yes QML gRPC support ....................... yes Qt GRPC tools: Qt GRPC generator ...................... no Qt NetworkAuth: URI Scheme Reply Handler ............... yes Qt Opcua: Open62541 .............................. yes Support for namespace 0 NodeId names ... yes Internal code generator ................ no Open62541 security support ............. no Support for global discovery server .... no Data type code generator ............... yes Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: sensorfw ............................... no sensorfw_enabled_with_cmake ............ no Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Example HWR ............................ no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French Canada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: No backend for low level audio found. WARNING: No media backend found WARNING: SensorFW support currently not enabled with cmake
-
@jsulm I don't have a config.log file
and I only have .ninja_log
but it doesn't look helpful4445924 4454051 1736788464141841719 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/cmake_pch.hxx.gch f49df0813d28be95 4454051 4454957 1736788465089851430 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/WebEngineCore_autogen/mocs_compilation.cpp.o cad03b80eb2265be 4454052 4455048 1736788465181852373 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginequotarequest.cpp.o 4c8d1de1dc5a4567 4454052 4455175 1736788465305853643 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificateselection.cpp.o c5b813e65b00bd22 4454054 4455213 1736788465345854053 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefilesystemaccessrequest.cpp.o 83a5ca790f1aac6a 4454052 4455226 1736788465349854094 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificatestore.cpp.o 293b9bcf75305426 4454053 4455233 1736788465365854257 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecontextmenurequest.cpp.o 1a2159d048114424 4454052 4455276 1736788465401854627 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecertificateerror.cpp.o ece3ab368c4ddc5f 4454054 4455408 1736788465537856020 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginedownloadrequest.cpp.o d72759d39f4fd09d 4454053 4455510 1736788465641857085 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginedesktopmediarequest.cpp.o 429748f7b5630a09 4454053 4455626 1736788465757858273 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclienthints.cpp.o fa38c545b716b6ef
Did I do it right to build Qt?
-
@jsulm oh I see. yes I built in the Qt source directory.
Then I'll try building outside of src folder like this.- Do I need to delete and reinstall Qt library? or can I just leave it?
cd ~/mypath/Qt/6.8.1/Src mkdir build cd build ../configure -webengine-proprietary-codecs cmake --build .. --parallel cmake --install ..
-
@cobook said in widevine is not work:
Do I need to delete and reinstall Qt library?
Do you mean the Qt sources folder? I would start with a fresh one to make sure old build artifacts don't break the build.
-
I run the configure file again in the build directory, but the config.log file isn't in there.
And also widevine doesn't workMy application came out those error
js: DRM will only work via https://. Will redirect in production. Current environment is: undefined js: It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.
-
@jsulm when I add -v option to run configure file, it made error. There is no -v option.
+ /mypath/Qt/6.8.1/Src/qtbase/configure -top-level -v CMake Error at /mypath/Qt/6.8.1/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:376 (message): Unknown command line option '-v'. Call Stack (most recent call first): /mypath/Qt/6.8.1/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:780 (qtConfAddError)
And this is config.tests directory.
those are all directory.
-> inside the directory