Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Windows 10 build qt webengine error, maybe because of some tools
Forum Updated to NodeBB v4.3 + New Features

Windows 10 build qt webengine error, maybe because of some tools

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 3 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tianlang
    wrote on last edited by tianlang
    #1

    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.html

    I just do it like this artical:
    https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/50510458#50510458

    The 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
    Gperf

    When 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-codecs

    This 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 ........................... no

    WARNING: 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 building

    Why are there so many WARNING ? I had install them and I can excute them in the windows cmd.

    jsulmJ 1 Reply Last reply
    0
    • T tianlang

      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.html

      I just do it like this artical:
      https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/50510458#50510458

      The 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
      Gperf

      When 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-codecs

      This 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 ........................... no

      WARNING: 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 building

      Why are there so many WARNING ? I had install them and I can excute them in the windows cmd.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tianlang Add -v parameter to configure and check the output, maybe you will see more information about these warnings

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tianlang
        wrote on last edited by tianlang
        #3

        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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Is your terminal setup to use VS2017 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • T Offline
            T Offline
            tianlang
            wrote on last edited by tianlang
            #5

            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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved