Unsolved Windows 10 build qt webengine error, maybe because of some tools
-
I want to play html5 video in the webengine for windows apps. But the default webengine of Qt 5.13 doesnot support.
The webengine support video should build it from source code by my self:
https://doc.qt.io/qt-5/qtwebengine-features.htmlI just do it like this artical:
https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/50510458#50510458The key step: I install them into C:\Python2 and C:\Windows\ , and them are in the PATH of windows system.
Python 2.7.15
Perl
Bison and flex
GperfWhen I build the source code, I get the error:
1.click Qt 5.13.0(MSVC 2017 32-bit) command line tool from Windows menus
2.execute command to set up vc++ environment: E:\VS2017\VC\Auxiliary\Build\vcvars32.bat
3.qmake generate my source code:
cd D:\qtwebengine
qmake D:\qtwebengine -- -webengine-proprietary-codecsThis is my command log from windows cmd tool:
D:>E:\VS2017\VC\Auxiliary\Build\vcvars32.bat
D:>cd D:\qtwebengine
D:\qtwebengine>qmake D:\qtwebengine -- -webengine-proprietary-codecs
Running configuration tests...
Done running configuration tests.Configure summary:
Qt WebEngineCore:
Qt WebEngine Widgets ................... yes
Qt WebEngine Qml ....................... yes
Embedded build ......................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... yes
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. yes
Use System Ninja ....................... no
Geolocation ............................ yes
WebChannel support ..................... yes
Use v8 snapshot ........................ yes
Kerberos Authentication ................ yes
Extensions ............................. yes
Qt WebEngineQml:
UI Delegates ........................... yes
Test Support ........................... noWARNING: Python version 2 (2.7.5 or later) is required to build QtWebEngine.
WARNING: gperf is required to build QtWebEngine.
WARNING: bison is required to build QtWebEngine.
WARNING: flex is required to build QtWebEngine.Qt is now configured for building. Just run 'nmake'.
Once everything is built, you must run 'nmake install'.
Qt will be installed into 'D:\android_dev\Qt\Qt5.13.0\5.13.0\msvc2017'.Prior to reconfiguration, make sure you remove any leftovers from
the previous build.Needs Visual Studio 2017 or higher
QtWebEngine will not be built.
D:\qtwebengine> E:\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe
NOTHING MESSAGE of buildingWhy are there so many WARNING ? I had install them and I can excute them in the windows cmd.
-
@tianlang Add -v parameter to configure and check the output, maybe you will see more information about these warnings
-
The error message is:
Needs Visual Studio 2017 or higher
QtWebEngine will not be built.But I had install VS2017 and windows 10 sdk, why does qmake can not find them?
-
Hi,
Is your terminal setup to use VS2017 ?
-
Finally I builded Qt webengine 5.9.8 with VS 2015 in the windows of English environment, it works OK.
The ninja needs python2, but python2 in the GBK charset environment causes compilation errors.Maybe I will rebuild Qt 5.13.0 with VS 2017, but not now.