外部环境准备
1.vs2017安装
2.QT5.12.2安装时选择源码
3.Python2.7.5版本或之后版本,不支持Python3
注意事项:编译64位后在原文件夹继续编译32位会进行报错,会因为缓存报找不到64位编译链,所以如果同时编译64位和32建议先将整个文件夹拷出去一份,避免无意义错误。
32位编译步骤
1.以管理员权限打开vs2017 x64_x86
image.png
2.开启64位机器上编译32位vs脚本
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
3.切换到qwebengine目录
cd D:\Qt\Qt5.12.3\5.12.3\Src\qtwebengine
d:
4.D:\Qt\Qt5.12.2\5.12.2\msvc2017\bin\qmake.exe -- -webengine-proprietary-codecs
5.nmake && nmake install
6.等待编译结束