Codecs QWebEngine Cpp/Qt
-
Bonjour,
J'ai développé une application que je veux cross-platform pour avoir le site france.tv dans une application de bureau.
J'utilise Qt Open Source 5.15.2 & CMake
Le lien vers mon code source est ici : https://github.com/Paullux/FranceTV
Le truc c'est que sous linux les vidéos se lancent sans problème mais sous windows impossible de les lire et j'ai dans le player un message NO RENDERER FOUND Erreur 5000
Peut-être un problème de ffmpeg, codec propriétaire ou autre, je ne sais pas pourquoi, ni comment résoudre le problème.Le message d'erreur est :
I:\FranceTV\cmake-build-release\FranceTV.exe js: Refused to set unsafe header "User-Agent" js: Didomi - Only restriction type 'disallow' is valid for special features js: Didomi - Only restriction type 'disallow' is valid for special features js: Uncaught (in promise) TypeError: Failed to fetch js: Didomi - Only restriction type 'disallow' is valid for special features js: Didomi - Only restriction type 'disallow' is valid for special features js: Uncaught (in promise) TypeError: Failed to fetch js: Didomi - Only restriction type 'disallow' is valid for special features js: Didomi - Only restriction type 'disallow' is valid for special features js: Refused to set unsafe header "User-Agent" js: Refused to set unsafe header "User-Agent" js: Uncaught (in promise) Error js: Uncaught (in promise) TypeError: Failed to fetch js: [Magneto] [05:22:22:50:64]: AUTO_PLAY_POLICY_ERROR [object DOMException] js: [Magneto] [05:22:22:50:71]: MagnetoError [object Object] js: Uncaught TypeError: Invalid event target
J'ai besoin d'aide... Par avance Merci.
-
Salut
J'essaye de recompiler QtWebEngine avec les codecs propriétaires
Mais j'ai une erreur :
C:\Qt\5.15.2\Src\qtwebengine>"C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe" -- -webengine-proprietary-codecs Running configuration tests... Done running configuration tests. Configure summary: Qt WebEngine Build Tools: Use System Ninja ....................... no Use System Gn .......................... no Jumbo Build Merge Limit ................ no Developer build ........................ no Sanitizer .............................. no Note: The following modules are not being compiled in this configuration: webenginecore webengine webenginewidgets pdf pdfwidgets WARNING: QtWebEngine requires a Windows SDK version 10.0.18362 or newer. WARNING: QtPdf requires a Windows SDK version 10.0.18362 or newer. WARNING: QtWebEngine will not be built. WARNING: QtPdf will not be built. Qt is now configured for building. Just run 'nmake'. Once everything is built, you must run 'nmake install'. Qt will be installed into 'C:\Qt\5.15.2\msvc2019_64'. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
J'ai aussi ajouté un fichier bat :
qt5vars.bat pour avoir les path pour la compilation@echo off REM Set up \Microsoft Visual Studio 2019, where <arch> is \c amd64, \c x86, etc. CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64_x86 10.0.18362 REM Edit this location to point to the source code of Qt SET _ROOT=C:\Qt\Qt5.15.2\Src SET _PYTHON=C:\Python27 SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%_ROOT%;%_PYTHON%;%PATH% SET _ROOT= REM Keeps the command line open when this script is run. cmd /k
J'ai instrallé les dépandances mais Windows SDK n'est pas détecté.
-
@Paullux said in Codecs QWebEngine Cpp/Qt:
-- -webengine-proprietary-codecs
J'ai avancé,
j'ai créer un dossier C:\build_qtwebengine
je 'mis suis déplacé avec cd
J'y est mis qt5vars.bat
@echo off REM Set up \Microsoft Visual Studio 2019, where <arch> is \c amd64, \c x86, etc. CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64_x86 REM Edit this location to point to the source code of Qt SET _ROOT=C:\Qt\Qt5.15.2\Src SET _PYTHON=C:\Python27 SET _GN=C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\gn SET _NINJA=C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\ninja SET WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22000.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22000.0 SET WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64 SET WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin SET WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10 SET WindowsSDKLibVersion=10.0.22000.0 SET WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0 SET WindowsSDKVersion=10.0.22000.0 SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%_ROOT%;%_PYTHON%;_GN;_NINJA;WindowsLibPath;WindowsSDK_ExecutablePath_x64;WindowsSdkBinPath;WindowsSdkBinPath;WindowsSdkDir;WindowsSDKLibVersion;WindowsSdkVerBinPath;WindowsSDKVersion;%PATH% SET _ROOT= SET _PYTHON= SET _GN= SET _NINJA= REM Keeps the command line open when this script is run. cmd /k
J'ai configurer avec :
"C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe" "C:\Qt\5.15.2\Src\qtwebengine" -- -webengine-proprietary-codecs
et pour résultat j'ai eu :
Running configuration tests... Done running configuration tests. Configure summary: Qt WebEngine Build Tools: Use System Ninja ....................... no Use System Gn .......................... no Jumbo Build Merge Limit ................ no Developer build ........................ no Sanitizer .............................. no Qt WebEngineCore: Embedded build ......................... no Full debug information ................. no Pepper Plugins ......................... yes Printing and PDF ....................... yes Proprietary Codecs ..................... yes Spellchecker ........................... yes Native Spellchecker .................... no WebRTC ................................. yes PipeWire over GIO ...................... no Geolocation ............................ yes WebChannel support ..................... yes Kerberos Authentication ................ yes Extensions ............................. yes Node.js ................................ yes Qt WebEngineQml: Support Qt WebEngine Qml ............... yes UI Delegates ........................... yes Test Support ........................... no Qt WebEngineWidgets: Support Qt WebEngine Widgets ........... 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 Qt PDF Widgets: Support Qt PDF Widgets ................. yes Qt is now configured for building. Just run 'nmake'. Once everything is built, you must run 'nmake install'. Qt will be installed into 'C:\Qt\5.15.2\msvc2019_64'. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
Je m'étais dis que j'avais réussit mais j'ai eu comme réponse de compilation avec nmake après 10 minutes :
Remarque : inclusion du fichier : C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\chromium\third_party\webrtc\rtc_base/rtc_certificate.h Remarque : inclusion du fichier : C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\chromium\third_party\webrtc\rtc_base/rtc_certificate_generator.h Remarque : inclusion du fichier : C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\chromium\third_party\webrtc\rtc_base/ssl_identity.h Remarque : inclusion du fichier : C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\chromium\third_party\webrtc\rtc_base/ssl_stream_adapter.h Remarque : inclusion du fichier : C:\Qt\5.15.2\Src\qtwebengine\src\3rdparty\chromium\third_party\webrtc\rtc_base/stream.h ninja: build stopped: subcommand failed. NMAKE : fatal error U1077: 'call' : code retour '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x86\nmake.exe"' : code retour '0x2' Stop. NMAKE : fatal error U1077: '(' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'cd' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'cd' : code retour '0x2' Stop.
Vous seriez m'aider ??
-
pourquoi ça :
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /OPT:REF /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.15 /OUT:C:\Qt\5.15.2\msvc2019_64\plugins\designer\qwebengineview.dll @C:\Users\paulw\AppData\Local\Temp\nmFF2C.tmp Création de la bibliothèque C:\Qt\5.15.2\msvc2019_64\plugins\designer\qwebengineview.lib et de l'objet C:\Qt\5.15.2\msvc2019_64\plugins\designer\qwebengineview.exp cd imageformats\ && ( if not exist Makefile C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe -o Makefile C:\Qt\5.15.2\Src\qtwebengine\src\plugins\imageformats\imageformats.pro "QTWEBENGINE_CHROMIUM_FLAGS=--always-authorize-plugins --register-pepper-plugins=/plugins/ppapi/widevinecdmadapter.dll" ) && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe" -f Makefile Microsoft (R) Program Maintenance Utility Version 14.29.30141.0 Copyright (C) Microsoft Corporation. Tous droits réservés.
et pas ça
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /OPT:REF /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.15 /MANIFEST:embed /OUT:C:\Qt\5.15.2\msvc2019_64\lib\Qt5PdfWidgets.dll @C:\Users\paulw\AppData\Local\Temp\nm205E.tmp Création de la bibliothèque C:\Qt\5.15.2\msvc2019_64\lib\Qt5PdfWidgets.lib et de l'objet C:\Qt\5.15.2\msvc2019_64\lib\Qt5PdfWidgets.exp copy /y C:\Qt\5.15.2\msvc2019_64\lib\Qt5PdfWidgets.dll C:\Qt\5.15.2\msvc2019_64\bin 1 fichier(s) copié(s). "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe" -f Makefile.Debug all ????? sur une partie du programme ?