我正在尝试编译 PyQT5,但我需要包含这些模块,有人对如何重新配置以包含这些模块有任何想法吗?
cd E:\QT\5.15.2\Src\qtwebengine
E:\QT\5.15.2\Src\qtwebengine>E:\QT\5.15.2\msvc2019_64\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs
输出日志:
Running configuration tests...
Done running configuration tests.
Configure summary:
Qt WebEngine Build Tools:
Use System Ninja ....................... yes
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: Python version 2 (2.7.5 or later) is required to build QtWebengine.
WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.
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 'E:\QT\5.15.2\msvc2019_64'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
我不得不从 Windows 环境中删除 python 3 的其他安装,只保留 2.7,而不是完全删除构建目录。修改后保存的缓存没有更新(bug),需要删除。 参考