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. Webengine example fail with "Unknown module(s) in QT: webengine"

Webengine example fail with "Unknown module(s) in QT: webengine"

Scheduled Pinned Locked Moved Solved QtWebEngine
windows 7
34 Posts 11 Posters 60.0k Views
  • 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.
  • M Offline
    M Offline
    magiclevinho
    wrote on 8 Dec 2016, 14:07 last edited by A Former User
    #1

    Hi fellow developers,

    I'm using Windows 7 and just installed QT 5.7 from the online installer. I checked that webengine is ticked at the installation process. Nonetheless I m unable to run the webengine examples with the error message "Unknown module(s) in QT: webengine".
    What am I missing?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adutzu89
      wrote on 8 Dec 2016, 14:22 last edited by adutzu89 12 Aug 2016, 14:29
      #2

      Add webengine to the project .pro file
      Example:

      • QT += webengine
      • or append webengine to the list of QT values in .pro file

      Also in main.cpp file add QtWebEngine::initialize(); after QGuiApplication app(argc, argv);

      1 Reply Last reply
      0
      • M Offline
        M Offline
        magiclevinho
        wrote on 9 Dec 2016, 09:55 last edited by
        #3

        So when I start the "simplebrowser" example project with 5.7.0 Mingw KIT, then I get these output error messages:
        10:51:40: Running steps for project simplebrowser...
        10:51:40: Starting: "C:\Qt\5.7\mingw53_32\bin\qmake.exe" C:\Qt\Examples\Qt-5.7\webenginewidgets\simplebrowser\simplebrowser.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
        Project ERROR: Unknown module(s) in QT: webenginewidgets
        10:51:41: The process "C:\Qt\5.7\mingw53_32\bin\qmake.exe" exited with code 3.
        Error while building/deploying project simplebrowser (kit: Desktop Qt 5.7.0 MinGW 32bit)
        When executing step "qmake"

        If I try to change the KIT to MSVC 2013 or 2015 I get this:
        Error while building/deploying project simplebrowser (kit: Desktop Qt 5.7.0 MSVC2015 32bit)
        When executing step "qmake"

        I shifted to Windows 10 and the problem still occurs.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aatwo
          wrote on 9 Dec 2016, 17:21 last edited by
          #4

          I don't believe QWebEngine is installed by default. Go to your Qt installation folder and run the Qt Maintenance tool. Select the option to 'Add or remove components' and click next. If you expand the the tree for your Qt version (e.g. Qt 5.7) you should see a component called "Qt WebEngine" in the list. Make sure that is checked and click next to install it if required.

          M 1 Reply Last reply 9 Dec 2016, 18:47
          0
          • A aatwo
            9 Dec 2016, 17:21

            I don't believe QWebEngine is installed by default. Go to your Qt installation folder and run the Qt Maintenance tool. Select the option to 'Add or remove components' and click next. If you expand the the tree for your Qt version (e.g. Qt 5.7) you should see a component called "Qt WebEngine" in the list. Make sure that is checked and click next to install it if required.

            M Offline
            M Offline
            magiclevinho
            wrote on 9 Dec 2016, 18:47 last edited by
            #5

            @aatwo Thanks for reply! Although as I stated the webengine is checked and installed. I have tried installing under linux also but with the same result!

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 9 Dec 2016, 21:20 last edited by
              #6

              Hi and welcome to devnet,

              QtWebEngine is only available for Visual Studio 2013 and 2015.

              When you say: "change the Kit", do you mean you installed Qt for either VS2013 and VS2015 ?

              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 10 Dec 2016, 07:41
              0
              • S SGaist
                9 Dec 2016, 21:20

                Hi and welcome to devnet,

                QtWebEngine is only available for Visual Studio 2013 and 2015.

                When you say: "change the Kit", do you mean you installed Qt for either VS2013 and VS2015 ?

                M Offline
                M Offline
                magiclevinho
                wrote on 10 Dec 2016, 07:41 last edited by
                #7

                @SGaist Yes I installed the for VS2013 and 2015 also. I'm also installed VS2015 application, but after the QT.

                M 1 Reply Last reply 10 Dec 2016, 10:04
                0
                • M magiclevinho
                  10 Dec 2016, 07:41

                  @SGaist Yes I installed the for VS2013 and 2015 also. I'm also installed VS2015 application, but after the QT.

                  M Offline
                  M Offline
                  magiclevinho
                  wrote on 10 Dec 2016, 10:04 last edited by magiclevinho 12 Oct 2016, 10:04
                  #8

                  @magiclevinho When I go to the Projects tab -> manage kits, then for the msvc 2015 it says no compiler set. How can I set a compiler?

                  M 1 Reply Last reply 10 Dec 2016, 10:50
                  0
                  • M magiclevinho
                    10 Dec 2016, 10:04

                    @magiclevinho When I go to the Projects tab -> manage kits, then for the msvc 2015 it says no compiler set. How can I set a compiler?

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 10 Dec 2016, 10:50 last edited by mrjj 12 Oct 2016, 10:52
                    #9

                    @magiclevinho

                    • "C:\Qt\5.7\mingw53_32\bin"

                    Just so we are very clear on this.
                    The Qt Vs201X kits do NOT work with mingw.
                    You must also download the full vs 2013 or 2015 COMPILER from microsoft
                    and switch to that full compiler. So Besides the Qt kits, you should also have installed
                    the actual compiler. as its not included same way as mingw kit.
                    (its not allowed)

                    M 1 Reply Last reply 10 Dec 2016, 13:19
                    2
                    • M mrjj
                      10 Dec 2016, 10:50

                      @magiclevinho

                      • "C:\Qt\5.7\mingw53_32\bin"

                      Just so we are very clear on this.
                      The Qt Vs201X kits do NOT work with mingw.
                      You must also download the full vs 2013 or 2015 COMPILER from microsoft
                      and switch to that full compiler. So Besides the Qt kits, you should also have installed
                      the actual compiler. as its not included same way as mingw kit.
                      (its not allowed)

                      M Offline
                      M Offline
                      magiclevinho
                      wrote on 10 Dec 2016, 13:19 last edited by
                      #10

                      @mrjj Thanky for the reply! I had to make my first c++ project in VS 2015 and it installed the neccessary compiler!

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 10 Dec 2016, 20:18 last edited by
                        #11

                        So you have it all working now ?

                        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
                        • C Offline
                          C Offline
                          cdietz
                          wrote on 5 Jan 2017, 14:38 last edited by
                          #12

                          After some time I found this information, which does not seem to be published elsewhere:

                          "MSVC2013 is not supported anymore in Qt WebEngine"
                          Source: https://bugreports.qt.io/browse/QTBUG-56299

                          And while I am at it (it took me some time to find this link):
                          https://www.visualstudio.com/downloads/#visual-studio-community-2015-with-update-3-free

                          P 1 Reply Last reply 14 Feb 2017, 01:08
                          1
                          • C cdietz
                            5 Jan 2017, 14:38

                            After some time I found this information, which does not seem to be published elsewhere:

                            "MSVC2013 is not supported anymore in Qt WebEngine"
                            Source: https://bugreports.qt.io/browse/QTBUG-56299

                            And while I am at it (it took me some time to find this link):
                            https://www.visualstudio.com/downloads/#visual-studio-community-2015-with-update-3-free

                            P Offline
                            P Offline
                            PSI_lbc
                            wrote on 14 Feb 2017, 01:08 last edited by
                            #13

                            Project ERROR: Unknown module(s) in QT: webenginewidgets

                            Initial searching for a solution on the web shows this has been a problem for a number of years.

                            QTBUG-43614 webenginewidgets examples does not build on Windows
                            https://bugreports.qt.io/browse/QTBUG-43614
                            QTBUG-44108 webenginewidgets examples does not build on Windows (second try)
                            https://bugreports.qt.io/browse/QTBUG-44108

                            Both of the above QTBUG items are marked as closed. Obviously they are not.

                            Yes..I have QT += webenginewidgets set in the .pro file.

                            Windows7 Pro SP1 32 bit OS. Creator4.2.0 Qt5.7.1. from this download..

                            qt-opensource-windows-x86-mingw530-5.7.1

                            The exact same project built on OSX using Creator4.2.0 Qt5.7.1. compiles and runs properly.

                            Do I need to download and install BS compilers from Microsoft to get this to work? If so, do I need a different Qt download in order to use the MSBS compilers??

                            Do I need to upgrade to a different OS..Win8 or Win10? Or Maybe Win7 Pro 64 bit??

                            Is there a solution for Windows7 Pro SP1 32 bit OS??

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 14 Feb 2017, 10:38 last edited by
                              #14

                              The QtWebEngine platform notes explain what is needed to build the module.

                              QtWebEngine is using the Chromium project as backend so it depends on what platform they support. If you would like to have a MinGW build of QtWebEngine then you should rather push this to the Chromium project.

                              On a side note, there's @Konstantin-Tokarev QtWebKit reboot project that might interest you.

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

                              P 1 Reply Last reply 14 Feb 2017, 18:46
                              1
                              • K Offline
                                K Offline
                                Konstantin Tokarev
                                wrote on 14 Feb 2017, 10:42 last edited by
                                #15

                                Note that we provide QtWebKit TP5 binaries compatible with official Qt 5.8.0 MinGW build: https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5

                                P 1 Reply Last reply 14 Feb 2017, 18:50
                                1
                                • S SGaist
                                  14 Feb 2017, 10:38

                                  The QtWebEngine platform notes explain what is needed to build the module.

                                  QtWebEngine is using the Chromium project as backend so it depends on what platform they support. If you would like to have a MinGW build of QtWebEngine then you should rather push this to the Chromium project.

                                  On a side note, there's @Konstantin-Tokarev QtWebKit reboot project that might interest you.

                                  P Offline
                                  P Offline
                                  PSI_lbc
                                  wrote on 14 Feb 2017, 18:46 last edited by
                                  #16

                                  @SGaist

                                  Thx for the reply. I made a mistake downloading the open source install.
                                  I am now using: qt-unified-windows-x86-2.0.5-online.exe...and have a current Commercial License for Application Development..all handheld and desktop environments are covered.

                                  I tried installing Qt5.7.1 for MinGW but there were no QtWebEngine libraries.
                                  I tried installing Qt5.7.1 for MSVC2015 and it had the QtWebEngine libraries, but no compiler.

                                  I am now re-installing 5.8, 5.7, and 5.6. Maybe one of those will have the libraries I need.

                                  P 1 Reply Last reply 14 Feb 2017, 20:01
                                  0
                                  • K Konstantin Tokarev
                                    14 Feb 2017, 10:42

                                    Note that we provide QtWebKit TP5 binaries compatible with official Qt 5.8.0 MinGW build: https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5

                                    P Offline
                                    P Offline
                                    PSI_lbc
                                    wrote on 14 Feb 2017, 18:50 last edited by
                                    #17

                                    @Konstantin-Tokarev

                                    Thx for the heads up.

                                    Are the 5.8/Webkit binaries also available for MacOS-clang64 environments?

                                    K 1 Reply Last reply 14 Feb 2017, 19:00
                                    0
                                    • P PSI_lbc
                                      14 Feb 2017, 18:50

                                      @Konstantin-Tokarev

                                      Thx for the heads up.

                                      Are the 5.8/Webkit binaries also available for MacOS-clang64 environments?

                                      K Offline
                                      K Offline
                                      Konstantin Tokarev
                                      wrote on 14 Feb 2017, 19:00 last edited by
                                      #18

                                      @PSI_lbc Yeah, see the same link. Also there are binaries for 64-bit Linux and VS 2015 (both 32-bit and 64-bit)

                                      M P 2 Replies Last reply 14 Feb 2017, 19:02
                                      1
                                      • K Konstantin Tokarev
                                        14 Feb 2017, 19:00

                                        @PSI_lbc Yeah, see the same link. Also there are binaries for 64-bit Linux and VS 2015 (both 32-bit and 64-bit)

                                        M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 14 Feb 2017, 19:02 last edited by
                                        #19

                                        @Konstantin-Tokarev
                                        Thank you for all your work. its a huge task for a beginner to build webkit so your project
                                        is very welcome.

                                        K 1 Reply Last reply 14 Feb 2017, 19:33
                                        0
                                        • M mrjj
                                          14 Feb 2017, 19:02

                                          @Konstantin-Tokarev
                                          Thank you for all your work. its a huge task for a beginner to build webkit so your project
                                          is very welcome.

                                          K Offline
                                          K Offline
                                          Konstantin Tokarev
                                          wrote on 14 Feb 2017, 19:33 last edited by
                                          #20

                                          @mrjj As for these binary packages, credits go to CI infrastructure of The Qt Company, and personally to Simon Hausmann who helped a lot with integration of new QtWebKit's build system into Coin.

                                          Also credits go to Vitaly Slobodin and other contributors of revived QtWebKit, who contributed lots of patches enhancing Windows and macOS support. Without them, it could happen that only Linux would be supported.

                                          1 Reply Last reply
                                          1

                                          • Login

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