Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Qt from source, qtwebengine missing
Forum Updated to NodeBB v4.3 + New Features

Building Qt from source, qtwebengine missing

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 3 Posters 13.4k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    What compiler are you using ?

    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
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #3

      You need to have a recent Win10SDK - otherwise it will not get compiled.
      https://doc.qt.io/qt-5.10/qtwebengine-platform-notes.html#windows

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        You need to have a recent Win10SDK - otherwise it will not get compiled.
        https://doc.qt.io/qt-5.10/qtwebengine-platform-notes.html#windows

        M Offline
        M Offline
        maximus
        wrote on last edited by
        #4

        I'm using MSVC2015
        VS2015 x86 Native Tools Command Prompt

        I'll try to download latest Win10DSK and retry, but I remember building Q5.10.0 with Qtwebengine without issues
        Thanks


        Free Indoor Cycling Software - https://maximumtrainer.com

        M 1 Reply Last reply
        0
        • M maximus

          I'm using MSVC2015
          VS2015 x86 Native Tools Command Prompt

          I'll try to download latest Win10DSK and retry, but I remember building Q5.10.0 with Qtwebengine without issues
          Thanks

          M Offline
          M Offline
          maximus
          wrote on last edited by maximus
          #5

          @maximus

          I just rebuild with Windows 10SDK installed and got same issue.
          Is there a list of the possible value of --module-subset flag? Just to make sure I am using the right one.
          --module-subset=default,qtwebengine

          I would except the build to fail if it can not build qtwebengine?

          Just tried again and I just have in my build bin directory
          QtwebChannel.dll
          Qt5widget.dll
          Qt5Webview.dll

          edit: just saw the init file, ill try with "all" flag, result`:

          Project ERROR: D:/qt5/qtenginio/examples/enginio/widgets/image-gallery-cpp/image-gallery-cpp.pro is lacking an install target.


          Free Indoor Cycling Software - https://maximumtrainer.com

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

            No need to build enginio. It's been obsoleted since a long time.

            You can however try to build the module directly. Make a build folder and call qmake /path/to/qtwebengine from there.

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

            M 1 Reply Last reply
            1
            • SGaistS SGaist

              No need to build enginio. It's been obsoleted since a long time.

              You can however try to build the module directly. Make a build folder and call qmake /path/to/qtwebengine from there.

              M Offline
              M Offline
              maximus
              wrote on last edited by
              #7

              @SGaist

              anyway I can remove enginio from the build? why is it still in the all module if obsolete?
              I would like to call make only once from the top qt source, and everything be built.
              I did not have that problem building on macOS


              Free Indoor Cycling Software - https://maximumtrainer.com

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

                Yes you can. It might be the module subset that still includes it.

                It was just to determine whether you have something missing in order to build qtwebengine. Do you have all the needed tools installed on your Windows machine ?

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

                M 1 Reply Last reply
                0
                • SGaistS SGaist

                  Yes you can. It might be the module subset that still includes it.

                  It was just to determine whether you have something missing in order to build qtwebengine. Do you have all the needed tools installed on your Windows machine ?

                  M Offline
                  M Offline
                  maximus
                  wrote on last edited by maximus
                  #9

                  @SGaist

                  Yes I have all I need, I previously built it sucessfully.
                  Would this command works?

                  perl ./init-repository --module-subset=all,-enginio
                  I just need standard qt module and qtwebengine modules


                  Free Indoor Cycling Software - https://maximumtrainer.com

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

                    Then I would still recommend to try to build the module independently to at least know if there's something that might have gone wrong during the configure step.

                    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
                    0
                    • M Offline
                      M Offline
                      maximus
                      wrote on last edited by
                      #11

                      I am a newbie when I need to diverge from the steps.

                      How can I build qtwebengine separatly? I have already done nmake and nmake install,

                      I am in the qt5 source folder of qtwebengine
                      Thanks

                      D:\qt5\qtwebengine>


                      Free Indoor Cycling Software - https://maximumtrainer.com

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12
                        mkdir D:\build_qtwebengine
                        cd D:\build_qtwebengine
                        \path\to\qmake.exe D:\qt5\qtwebengine
                        jom.exe
                        jom.exe install
                        

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

                        M 1 Reply Last reply
                        1
                        • SGaistS SGaist
                          mkdir D:\build_qtwebengine
                          cd D:\build_qtwebengine
                          \path\to\qmake.exe D:\qt5\qtwebengine
                          jom.exe
                          jom.exe install
                          
                          M Offline
                          M Offline
                          maximus
                          wrote on last edited by maximus
                          #13

                          @SGaist

                          Looking good but the step remove that flag "Proprietary Codecs " that I had set up previously when configuring at the qt5 root folder. Anyway to redo that step?
                          Why is running nmake on qt5 source root not building qtwebengine? I am a bit confuse.
                          Thanks

                          D:\build_qtwebengine>D:\qt5.11.0_alpha\bin\qmake.exe D:\qt5\qtwebengine

                          Running configuration tests...
                          Done running configuration tests.

                          Configure summary:

                          Qt WebEngine:
                          Embedded build ......................... no
                          Pepper Plugins ......................... yes
                          Printing and PDF ....................... yes
                          Proprietary Codecs ..................... no
                          Spellchecker ........................... yes
                          Native Spellchecker .................... no
                          WebRTC ................................. yes
                          Use System Ninja ....................... no
                          Geolocation ............................ yes
                          Use v8 snapshot ........................ yes

                          Qt is now configured for building. Just run 'nmake'.
                          Once everything is built, Qt is installed.
                          You should NOT run 'nmake install'.
                          Note that this build cannot be deployed to other machines or devices.

                          Trying to understand init repository help:
                          would this be possible?
                          perl ./init-repository --module-subset=all,-qtenginio
                          Will try..

                          *--module-subset=<module1>,<module2>...
                              Only initialize the specified subset of modules given as the
                              argument. Specified modules must already exist in .gitmodules. The
                              string "all" results in cloning all known modules. The strings
                              "essential", "addon", "preview", "deprecated", "obsolete", and
                              "ignore" refer to classes of modules; "default" maps to
                              "essential,addon,preview,deprecated", which corresponds with the
                              set of maintained modules and is also the default set. Module
                              names may be prefixed with a dash to exclude them from a bigger
                              set, e.g. "all,-ignore".*
                          

                          Free Indoor Cycling Software - https://maximumtrainer.com

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            maximus
                            wrote on last edited by maximus
                            #14

                            Here is my latest try with
                            perl ./init-repository --module-subset=all,-qtenginio

                            graphicsitems\qdeclarativetextinput.cpp(517): error C2039: 'setCursorBlinkPeriod': is not a member of 'QWidgetLineControl'
                            d:\qt5\qtbase\include\qtwidgets\5.11.0\qtwidgets\private\../../../../../src/widgets/widgets/qwidgetlinecontrol_p.h(82): note: see declaration of 'QWidgetLineControl'
                            qdeclarativetext.cpp
                            qdeclarativetextedit.cpp
                            

                            now trying with:
                            perl ./init-repository --module-subset=all,-qtenginio,-qtquick1,-qtquickcontrols2


                            Free Indoor Cycling Software - https://maximumtrainer.com

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

                              Strange, did you try with the sources of the latest beta release rather than a clone ?

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

                              M 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                Strange, did you try with the sources of the latest beta release rather than a clone ?

                                M Offline
                                M Offline
                                maximus
                                wrote on last edited by maximus
                                #16

                                @SGaist

                                I use the latest tag available, v5.11.0-alpha1
                                Needed the latest chromium available.

                                git clone https://code.qt.io/qt/qt5.git
                                cd qt5
                                git checkout v5.11.0-alpha1

                                Just wish there was a flag -subset=default with qtwebengine


                                Free Indoor Cycling Software - https://maximumtrainer.com

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

                                  Since it seems to cause you trouble, don't use subset and just delete the modules you don't use or use the -skip option of configure.

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

                                  M 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Since it seems to cause you trouble, don't use subset and just delete the modules you don't use or use the -skip option of configure.

                                    M Offline
                                    M Offline
                                    maximus
                                    wrote on last edited by maximus
                                    #18

                                    @SGaist

                                    Thanks SGaist, our champion,
                                    Finally, I just removed qtenginio from the makefile and rebuilt.

                                    Maybe removing qtenginio from the build would be good, since it fail to build by default on windows.
                                    Cheers,
                                    Max

                                    for the other, step used to build from scratch :
                                    {code}
                                    git clone https://code.qt.io/qt/qt5.git
                                    cd qt5
                                    git checkout v5.11.0-beta4
                                    perl ./init-repository --module-subset=all
                                    configure -opensource -confirm-license -release -webengine-pepper-plugins -webengine-proprietary-codecs ....etc
                                    --remove module not wanted; all occurence of -qtenginio inside file Makefile
                                    nmake
                                    nmake install
                                    {code}


                                    Free Indoor Cycling Software - https://maximumtrainer.com

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

                                      Great !

                                      Thanks for the feedback :)

                                      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
                                      0
                                      • M Offline
                                        M Offline
                                        maximus
                                        wrote on last edited by
                                        #20

                                        found out why QtWebengine was not being built, it require MSVC2017 to be built, yet the configure and make command do not give any feedback if you use MSVC2015, then the binary are just not there.
                                        Solved


                                        Free Indoor Cycling Software - https://maximumtrainer.com

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

                                          Thanks for sharing !

                                          I just checked the documentation snapshot and indeed the specs have been bumped to VS2017 only.

                                          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
                                          0

                                          • Login

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