使用专有编解码器构建QtWebEngine 5.9.1
我们需要在QtwebengineView中支持mp4文件。因此,我们正在尝试在msvc2015 x64上使用专有编解码器构建Qt 5.9.1的qtwebengine,方法是在cmd处使用以下命令,工作目录为源代码中的qtwebengine使用专有编解码器构建QtWebEngine 5.9.1,qt,visual-c++,qtwebengine,qt5.9,Qt,Visual C++,Qtwebengine,Qt5.9,我们需要在QtwebengineView中支持mp4文件。因此,我们正在尝试在msvc2015 x64上使用专有编解码器构建Qt 5.9.1的qtwebengine,方法是在cmd处使用以下命令,工作目录为源代码中的qtwebengine "D:\qt-everywhere-opensource-src-5.9.1\qtbase\bin\qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs" 我们面临以下错误 WinRT is not suppo
"D:\qt-everywhere-opensource-src-5.9.1\qtbase\bin\qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs"
我们面临以下错误
WinRT is not supported.
QtWebEngine will not be built
我们尝试了以下链接:
但这也不起作用
我们如何使用专有编解码器构建qt 5.9.1的qtwebengine?我刚刚成功构建了qtwebengine 5.9.6 我的构建环境:
- Windows7 x64
- Visual Studio 2015 x64
- jom 1.1.2
- Python 2.7.13来自
- 来自
- Bison和flex from(将win-Bison.exe重命名为Bison.exe,将win-flex.exe重命名为flex.exe)
- 来自
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.9.6
perl init-repository --module-subset=qtwebengine,qtwebview
让我们开始正式构建
cd qtwebengine
qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs
jom.exe
然后是漫长的构建过程
构建完成后,最终文件将在qt5/qtwebengine/bin目录中生成read:,它明确表示WinRT不支持qtwebengine:在Windows上,Qt WebEngine仅支持Windows Vista或更新版本作为目标平台。由于Chromium中使用了更新的API,因此不支持Windows XP。WinRT也不受支持,因此您不能使用它。是的,您是对的,但我们使用的是不是uwp的Qt-5.9.1。我们的是不支持uwp的windows桌面应用程序。我们仍然得到WinRT不受支持的错误。类似于Qt 5.9:谢谢,我将尝试这个。我按照这些步骤,在qmake步骤,我得到:
bison…是的,python2。。。[显示文件路径]、gperf…是,flex。。。是,子模块已初始化。。。否。项目错误:表达式“features.private\u tests”中的未知功能对象private\u tests。
您知道是什么导致了此问题吗?在重建之前,我会不断删除.cache、.stash和.super文件。在config.log文件中:执行config test webengine子模块test config.qtwebengine\u buildtools.tests.webengine-submodule失败