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. Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4

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

Scheduled Pinned Locked Moved Unsolved QtWebEngine
qtwebengineqtwebenginewidgraspberry pi 4unknown moduleqt 5.11.3
23 Posts 2 Posters 8.4k 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
    mvsri
    wrote on 25 Aug 2020, 05:59 last edited by
    #1

    Hello everyone,
    I installed QT 5.11.3 in Raspberry Pi 4.
    I used following commands to install QT on my RPI

    sudo apt-get install qt5-*
    sudo apt-get install libqt5*
    sudo apt-get install qtcreator
    

    and i read somewhere in QT forum that by following above steps webengine module doesn't get installed. It has to be installed manually.

    so what i did is i cloned qtwebengine module from here

    git clone git://code.qt.io/qt/qtwebengine.git/
    

    and gone(checkout) to branch with 5.11.3. But when i started

    qmake -r
    

    i get error like this:

    Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.
    QtWebEngine will not be built.
    

    I tried updating it but it get stuck there.
    can anyone guide me to the right path. the ultimate goal is to include webengine module in qt 5.11.3

    Thankyou!

    J 1 Reply Last reply 25 Aug 2020, 06:05
    0
    • M mvsri
      25 Aug 2020, 05:59

      Hello everyone,
      I installed QT 5.11.3 in Raspberry Pi 4.
      I used following commands to install QT on my RPI

      sudo apt-get install qt5-*
      sudo apt-get install libqt5*
      sudo apt-get install qtcreator
      

      and i read somewhere in QT forum that by following above steps webengine module doesn't get installed. It has to be installed manually.

      so what i did is i cloned qtwebengine module from here

      git clone git://code.qt.io/qt/qtwebengine.git/
      

      and gone(checkout) to branch with 5.11.3. But when i started

      qmake -r
      

      i get error like this:

      Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.
      QtWebEngine will not be built.
      

      I tried updating it but it get stuck there.
      can anyone guide me to the right path. the ultimate goal is to include webengine module in qt 5.11.3

      Thankyou!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 25 Aug 2020, 06:05 last edited by
      #2

      @mvsri In Ubuntu there is libqt5webenginewidgets5 package. Check whether you have this package in Raspbian (I guess you're using Rasbian?).

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

      M 1 Reply Last reply 25 Aug 2020, 06:13
      0
      • J jsulm
        25 Aug 2020, 06:05

        @mvsri In Ubuntu there is libqt5webenginewidgets5 package. Check whether you have this package in Raspbian (I guess you're using Rasbian?).

        M Offline
        M Offline
        mvsri
        wrote on 25 Aug 2020, 06:13 last edited by mvsri
        #3

        @jsulm i tried to install libqt5webenginewidgets5 earlier but i get this error

        E: Unable to locate package libqt5webenginewidgets5
        

        and yes i'm using raspbian

        J 1 Reply Last reply 25 Aug 2020, 06:14
        0
        • M mvsri
          25 Aug 2020, 06:13

          @jsulm i tried to install libqt5webenginewidgets5 earlier but i get this error

          E: Unable to locate package libqt5webenginewidgets5
          

          and yes i'm using raspbian

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 25 Aug 2020, 06:14 last edited by
          #4

          @mvsri So, "sudo apt install libqt5webenginewidgets5" does not work?

          "I tried updating it but it get stuck there" - you mean "git submodule update --init"? What exactly happens then?

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

          M 1 Reply Last reply 25 Aug 2020, 06:17
          0
          • J jsulm
            25 Aug 2020, 06:14

            @mvsri So, "sudo apt install libqt5webenginewidgets5" does not work?

            "I tried updating it but it get stuck there" - you mean "git submodule update --init"? What exactly happens then?

            M Offline
            M Offline
            mvsri
            wrote on 25 Aug 2020, 06:17 last edited by
            #5

            @jsulm yes "sudo apt install libqt5webenginewidgets5" does not work.
            and for your second question when i run "git submodule update --init" i get the following message

            Submodule 'src/3rdparty' (git://code.qt.io/qt/qtwebengine-chromium.git) registered for path 'src/3rdparty'
            Cloning into '/home/pi/qtwebengine/src/3rdparty'...
            

            and nothing happens

            J 1 Reply Last reply 25 Aug 2020, 06:20
            0
            • M mvsri
              25 Aug 2020, 06:17

              @jsulm yes "sudo apt install libqt5webenginewidgets5" does not work.
              and for your second question when i run "git submodule update --init" i get the following message

              Submodule 'src/3rdparty' (git://code.qt.io/qt/qtwebengine-chromium.git) registered for path 'src/3rdparty'
              Cloning into '/home/pi/qtwebengine/src/3rdparty'...
              

              and nothing happens

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 25 Aug 2020, 06:20 last edited by
              #6

              @mvsri Chromium is quite big as far as I know, maybe you should wait a bit longer?

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

              M 2 Replies Last reply 25 Aug 2020, 06:22
              0
              • J jsulm
                25 Aug 2020, 06:20

                @mvsri Chromium is quite big as far as I know, maybe you should wait a bit longer?

                M Offline
                M Offline
                mvsri
                wrote on 25 Aug 2020, 06:22 last edited by mvsri
                #7

                @jsulm right now what i'm trying to do is.
                clone chromium from
                git clone git://code.qt.io/qt/qtwebengine-chromium.git/
                and try to build it from there for 5.11.3 version.
                I don't know if it's right but i think it's worth a try.

                1 Reply Last reply
                0
                • J jsulm
                  25 Aug 2020, 06:20

                  @mvsri Chromium is quite big as far as I know, maybe you should wait a bit longer?

                  M Offline
                  M Offline
                  mvsri
                  wrote on 25 Aug 2020, 10:24 last edited by
                  #8

                  @jsulm i cloned the qtwebengine-chromium and now when i run

                  "qmake -r"
                  

                  i am getting the following error

                  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 ....................... yes
                    Geolocation ............................ no
                    Use v8 snapshot ........................ yes
                    Use ALSA ............................... yes
                    Use PulseAudio ......................... yes
                    Optional system libraries used:
                      re2 .................................. no
                      icu .................................. no
                      libwebp, libwebpmux and libwebpdemux . no
                      opus ................................. no
                      ffmpeg ............................... no
                      libvpx ............................... no
                      snappy ............................... no
                      libsrtp .............................. no
                      glib ................................. yes
                      zlib ................................. yes
                      minizip .............................. no
                      libevent ............................. no
                      jsoncpp .............................. no
                      protobuf ............................. no
                      libxml2 and libxslt .................. yes
                      lcms2 ................................ no
                      png .................................. yes
                      JPEG ................................. yes
                      harfbuzz ............................. no
                      freetype ............................. no
                    Required system libraries:
                      fontconfig ........................... no
                      dbus ................................. yes
                      nss .................................. yes
                      khr .................................. yes
                      glibc ................................ yes
                    Required system libraries for qpa-xcb:
                      libdrm ............................... yes
                      xcomposite ........................... yes
                      xcursor .............................. yes
                      xi ................................... yes
                      xrandr ............................... yes
                      xtst ................................. yes
                  
                  Qt is now configured for building. Just run 'make'.
                  Once everything is built, Qt is installed.
                  You should NOT run 'make install'.
                  Note that this build cannot be deployed to other machines or devices.
                  
                  Prior to reconfiguration, make sure you remove any leftovers from
                  the previous build.
                  
                   
                  A suitable version of fontconfig could not be found.
                  QtWebEngine will not be built.
                  
                  

                  how to solve fontconfig error?

                  J 1 Reply Last reply 25 Aug 2020, 12:55
                  0
                  • M mvsri
                    25 Aug 2020, 10:24

                    @jsulm i cloned the qtwebengine-chromium and now when i run

                    "qmake -r"
                    

                    i am getting the following error

                    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 ....................... yes
                      Geolocation ............................ no
                      Use v8 snapshot ........................ yes
                      Use ALSA ............................... yes
                      Use PulseAudio ......................... yes
                      Optional system libraries used:
                        re2 .................................. no
                        icu .................................. no
                        libwebp, libwebpmux and libwebpdemux . no
                        opus ................................. no
                        ffmpeg ............................... no
                        libvpx ............................... no
                        snappy ............................... no
                        libsrtp .............................. no
                        glib ................................. yes
                        zlib ................................. yes
                        minizip .............................. no
                        libevent ............................. no
                        jsoncpp .............................. no
                        protobuf ............................. no
                        libxml2 and libxslt .................. yes
                        lcms2 ................................ no
                        png .................................. yes
                        JPEG ................................. yes
                        harfbuzz ............................. no
                        freetype ............................. no
                      Required system libraries:
                        fontconfig ........................... no
                        dbus ................................. yes
                        nss .................................. yes
                        khr .................................. yes
                        glibc ................................ yes
                      Required system libraries for qpa-xcb:
                        libdrm ............................... yes
                        xcomposite ........................... yes
                        xcursor .............................. yes
                        xi ................................... yes
                        xrandr ............................... yes
                        xtst ................................. yes
                    
                    Qt is now configured for building. Just run 'make'.
                    Once everything is built, Qt is installed.
                    You should NOT run 'make install'.
                    Note that this build cannot be deployed to other machines or devices.
                    
                    Prior to reconfiguration, make sure you remove any leftovers from
                    the previous build.
                    
                     
                    A suitable version of fontconfig could not be found.
                    QtWebEngine will not be built.
                    
                    

                    how to solve fontconfig error?

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 25 Aug 2020, 12:55 last edited by
                    #9

                    @mvsri said in Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4:

                    how to solve fontconfig error?

                    install fontconfig-dev package.

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

                    M 1 Reply Last reply 25 Aug 2020, 13:34
                    0
                    • J jsulm
                      25 Aug 2020, 12:55

                      @mvsri said in Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4:

                      how to solve fontconfig error?

                      install fontconfig-dev package.

                      M Offline
                      M Offline
                      mvsri
                      wrote on 25 Aug 2020, 13:34 last edited by
                      #10

                      @jsulm it's already installed but still i get error

                      J 1 Reply Last reply 26 Aug 2020, 04:54
                      0
                      • M mvsri
                        25 Aug 2020, 13:34

                        @jsulm it's already installed but still i get error

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 26 Aug 2020, 04:54 last edited by
                        #11

                        @mvsri Then check config.log file to see why fontconfig is set to "no"

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

                        M 1 Reply Last reply 26 Aug 2020, 05:44
                        0
                        • J jsulm
                          26 Aug 2020, 04:54

                          @mvsri Then check config.log file to see why fontconfig is set to "no"

                          M Offline
                          M Offline
                          mvsri
                          wrote on 26 Aug 2020, 05:44 last edited by
                          #12

                          @jsulm i checked in config.log and i found this

                          loaded result for library config.qtwebengine.libraries.webengine-fontconfig
                          Trying source 0 (type pkgConfig) of library webengine-fontconfig ...
                          + /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig
                          pkg-config did not find package.
                            => source produced no result.
                          test config.qtwebengine.libraries.webengine-fontconfig FAILED
                          
                          J 1 Reply Last reply 26 Aug 2020, 05:47
                          0
                          • M mvsri
                            26 Aug 2020, 05:44

                            @jsulm i checked in config.log and i found this

                            loaded result for library config.qtwebengine.libraries.webengine-fontconfig
                            Trying source 0 (type pkgConfig) of library webengine-fontconfig ...
                            + /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig
                            pkg-config did not find package.
                              => source produced no result.
                            test config.qtwebengine.libraries.webengine-fontconfig FAILED
                            
                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 26 Aug 2020, 05:47 last edited by
                            #13

                            @mvsri To be sure: you're building on RaspberryPi and you installed fontconfig and fontconfig-dev there?

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

                            M 2 Replies Last reply 26 Aug 2020, 05:53
                            0
                            • J jsulm
                              26 Aug 2020, 05:47

                              @mvsri To be sure: you're building on RaspberryPi and you installed fontconfig and fontconfig-dev there?

                              M Offline
                              M Offline
                              mvsri
                              wrote on 26 Aug 2020, 05:53 last edited by
                              #14

                              @jsulm yes i'm using rpi4 and i have installed fontconfig and fontconfig-dev and according to this https://doc.qt.io/qt-5/linux-requirements.html i also installed

                              libfontconfig1-dev
                              

                              but still i'm getting the error

                              M 1 Reply Last reply 26 Aug 2020, 08:50
                              0
                              • J jsulm
                                26 Aug 2020, 05:47

                                @mvsri To be sure: you're building on RaspberryPi and you installed fontconfig and fontconfig-dev there?

                                M Offline
                                M Offline
                                mvsri
                                wrote on 26 Aug 2020, 06:15 last edited by
                                #15
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • M mvsri
                                  26 Aug 2020, 05:53

                                  @jsulm yes i'm using rpi4 and i have installed fontconfig and fontconfig-dev and according to this https://doc.qt.io/qt-5/linux-requirements.html i also installed

                                  libfontconfig1-dev
                                  

                                  but still i'm getting the error

                                  M Offline
                                  M Offline
                                  mvsri
                                  wrote on 26 Aug 2020, 08:50 last edited by
                                  #16

                                  @jsulm in config cache file i found this

                                  cache.webengine-fontconfig._KEYS_ = result msgs
                                  cache.webengine-fontconfig.result = false
                                  cache.webengine-fontconfig.msgs = "Trying source 0 (type pkgConfig) of library webengine-fontconfig ..." "+ /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig" "pkg-config did not find package." "  => source produced no result."
                                  

                                  can anyone tell me how to link fontconfig lib here.

                                  J 1 Reply Last reply 26 Aug 2020, 08:51
                                  0
                                  • M mvsri
                                    26 Aug 2020, 08:50

                                    @jsulm in config cache file i found this

                                    cache.webengine-fontconfig._KEYS_ = result msgs
                                    cache.webengine-fontconfig.result = false
                                    cache.webengine-fontconfig.msgs = "Trying source 0 (type pkgConfig) of library webengine-fontconfig ..." "+ /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig" "pkg-config did not find package." "  => source produced no result."
                                    

                                    can anyone tell me how to link fontconfig lib here.

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 26 Aug 2020, 08:51 last edited by
                                    #17

                                    @mvsri Sorry, I don't know why it doesn't work. Maybe somebody else can help.

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

                                    M 2 Replies Last reply 26 Aug 2020, 08:55
                                    0
                                    • J jsulm
                                      26 Aug 2020, 08:51

                                      @mvsri Sorry, I don't know why it doesn't work. Maybe somebody else can help.

                                      M Offline
                                      M Offline
                                      mvsri
                                      wrote on 26 Aug 2020, 08:55 last edited by
                                      #18

                                      @jsulm it's okay. maybe someone can help me here. Thanks for your quick response though

                                      1 Reply Last reply
                                      0
                                      • J jsulm
                                        26 Aug 2020, 08:51

                                        @mvsri Sorry, I don't know why it doesn't work. Maybe somebody else can help.

                                        M Offline
                                        M Offline
                                        mvsri
                                        wrote on 27 Aug 2020, 08:51 last edited by
                                        #19

                                        @jsulm Hey there,
                                        I'm trying to install QT 5.12.8 with qtwebengine following the steps from this link
                                        https://www.tal.org/tutorials/building-qt-512-raspberry-pi

                                        when i'm using

                                        make
                                        

                                        i get the following error

                                        ninja: build stopped: subcommand failed.
                                        make[4]: *** [Makefile.gn_run:1087: run_ninja] Error 1
                                        make[4]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core'
                                        make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
                                        make[3]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core'
                                        make[2]: *** [Makefile:81: sub-core-make_first] Error 2
                                        make[2]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src'
                                        make[1]: *** [Makefile:49: sub-src-make_first] Error 2
                                        make[1]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine'
                                        make: *** [Makefile:1005: module-qtwebengine-make_first] Error 2
                                        

                                        Do you have any idea what could the problem be?
                                        I also checked the file in path

                                        /home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/Makefile.gn_run
                                        

                                        it is as follows

                                        run_ninja:
                                        ninja -v -C /home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/release QtWebEngineCore
                                        
                                        J 1 Reply Last reply 27 Aug 2020, 08:57
                                        0
                                        • M mvsri
                                          27 Aug 2020, 08:51

                                          @jsulm Hey there,
                                          I'm trying to install QT 5.12.8 with qtwebengine following the steps from this link
                                          https://www.tal.org/tutorials/building-qt-512-raspberry-pi

                                          when i'm using

                                          make
                                          

                                          i get the following error

                                          ninja: build stopped: subcommand failed.
                                          make[4]: *** [Makefile.gn_run:1087: run_ninja] Error 1
                                          make[4]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core'
                                          make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
                                          make[3]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core'
                                          make[2]: *** [Makefile:81: sub-core-make_first] Error 2
                                          make[2]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src'
                                          make[1]: *** [Makefile:49: sub-src-make_first] Error 2
                                          make[1]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine'
                                          make: *** [Makefile:1005: module-qtwebengine-make_first] Error 2
                                          

                                          Do you have any idea what could the problem be?
                                          I also checked the file in path

                                          /home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/Makefile.gn_run
                                          

                                          it is as follows

                                          run_ninja:
                                          ninja -v -C /home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/release QtWebEngineCore
                                          
                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 27 Aug 2020, 08:57 last edited by
                                          #20

                                          @mvsri said in Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4:

                                          Do you have any idea what could the problem be?

                                          You did not post the actual errors, those should be above what you posted.

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

                                          M 1 Reply Last reply 27 Aug 2020, 09:09
                                          0

                                          2/23

                                          25 Aug 2020, 06:05

                                          21 unread
                                          • Login

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