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. compiling qt webengine fail
Forum Updated to NodeBB v4.3 + New Features

compiling qt webengine fail

Scheduled Pinned Locked Moved Unsolved QtWebEngine
4 Posts 3 Posters 2.4k Views 2 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.
  • S Offline
    S Offline
    SherifOmran
    wrote on last edited by
    #1

    I have a program written in qt using qtwebengine. When i compile it on linux it works. however when i use the pi cross compiler i get the following message

    Project ERROR: Unknown module(s) in QT: webengine webenginewidget

    The installation went

    i tried to reinstall the qtwebengine using this

    /opt/qt5pi/qt-everywhere-src-5.10.1/qtwebengine$ ../../qt5build/qtbase/bin/qmake -r

    but i get this

    Running configuration tests...
    Checking for alsa... yes
    Checking for bison... yes
    Checking for embedded... yes
    Checking for flex... no
    Checking for gperf... yes
    Checking for host pkg-config... /usr/bin/pkg-config
    Checking for pulseaudio >= 0.9.10... yes
    Checking for python2... /usr/bin/python2
    Checking for d-bus... yes
    Checking for fontconfig... yes
    Checking for glib-2.0 >= 2.32.0... yes
    Checking for glibc > 2.16... yes
    Checking for harfbuzz >= 1.4.2... yes
    Checking for jsoncpp... yes
    Checking for khr... yes
    Checking for libdrm... yes
    Checking for libevent... yes
    Checking for srtp... no
    Checking for libvpx... no
    Checking for libwebp, libwebpmux and libwebpdemux... yes
    Checking for libxml2 and libxslt... yes
    Checking for libxml2 configured with icuuc... yes
    Checking for minizip... yes
    Checking for system ninja... no
    Checking for nss... yes
    Checking for opus... yes
    Checking for libpng >= 1.6.0... yes
    Checking for protobuf... yes
    Checking for protoc... no
    Checking for re2... no
    Checking for snappy... no
    Checking for xcomposite... no
    Checking for xcursor... no
    Checking for xi... no
    Checking for xrandr... no
    Checking for xtst... no
    Checking for zlib... yes
    Checking for host compiler... no
    Done running configuration tests.
    
    Configure summary:
    
    Qt WebEngine:
      Embedded build ......................... yes
      Pepper Plugins ......................... no
      Printing and PDF ....................... no
      Proprietary Codecs ..................... no
      Spellchecker ........................... yes
      Native Spellchecker .................... no
      WebRTC ................................. no
      Use System Ninja ....................... no
      Geolocation ............................ no
      Use v8 snapshot ........................ yes
      Use ALSA ............................... yes
      Use PulseAudio ......................... yes
      Optional system libraries used:
        re2 .................................. no
        icu .................................. no
        libwebp, libwebpmux and libwebpdemux . yes
        opus ................................. yes
        ffmpeg ............................... no
        libvpx ............................... no
        snappy ............................... no
        libsrtp .............................. no
        glib ................................. yes
        zlib ................................. yes
        minizip .............................. yes
        libevent ............................. yes
        jsoncpp .............................. yes
        protobuf ............................. no
        libxml2 and libxslt .................. yes
        lcms2 ................................ no
        png .................................. yes
        harfbuzz ............................. yes
      Required system libraries:
        fontconfig ........................... yes
        dbus ................................. yes
        nss .................................. yes
        khr .................................. yes
        glibc ................................ yes
      Required system libraries for qpa-xcb:
        libdrm ............................... yes
        xcomposite ........................... no
        xcursor .............................. no
        xi ................................... no
        xrandr ............................... no
        xtst ................................. no
    
    Note: Dropped compiler flags '-pthread' when detecting library 'webengine-protobuf'.
    
    WARNING: flex is required to build QtWebEngine.
    
    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/opt/qt5pi/sysroot/usr/local/qt5pi'.
    
    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    
     
    Static builds of QtWebEngine aren't supported.
    QtWebEngine will not be built.
    
    

    what is flex and how to build it?

    thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SherifOmran
      wrote on last edited by
      #2

      I installed the following dependencies

      https://wiki.qt.io/QtWebEngine/How_to_Try

      then i tried downloading the source alone of webengine

      http://www.linuxfromscratch.org/blfs/view/cvs/x/qtwebengine.html

      sherif@sherif-MacBookPro:/opt/qt5pi/qtwebengine-everywhere-src-5.10.1$ ../qt5build/qtbase/qmake/qmake -r
      Info: creating stash file /opt/qt5pi/qtwebengine-everywhere-src-5.10.1/.qmake.stash
      Info: creating cache file /opt/qt5pi/qtwebengine-everywhere-src-5.10.1/.qmake.cache
      
      Running configuration tests...
      Checking for alsa... yes
      Checking for bison... yes
      Checking for embedded... yes
      Checking for flex... yes
      Checking for gperf... yes
      Checking for host pkg-config... /usr/bin/pkg-config
      Checking for pulseaudio >= 0.9.10... yes
      Checking for python2... /usr/bin/python2
      Checking for d-bus... yes
      Checking for fontconfig... yes
      Checking for glib-2.0 >= 2.32.0... yes
      Checking for glibc > 2.16... yes
      Checking for harfbuzz >= 1.4.2... yes
      Checking for jsoncpp... yes
      Checking for khr... yes
      Checking for libdrm... yes
      Checking for libevent... yes
      Checking for srtp... no
      Checking for libvpx... no
      Checking for libwebp, libwebpmux and libwebpdemux... yes
      Checking for libxml2 and libxslt... yes
      Checking for libxml2 configured with icuuc... yes
      Checking for minizip... yes
      Checking for system ninja... yes
      Checking for nss... yes
      Checking for opus... yes
      Checking for libpng >= 1.6.0... yes
      Checking for protobuf... yes
      Checking for protoc... no
      Checking for re2... no
      Checking for snappy... no
      Checking for xcomposite... no
      Checking for xcursor... no
      Checking for xi... no
      Checking for xrandr... no
      Checking for xtst... no
      Checking for zlib... yes
      Checking for host compiler... no
      Done running configuration tests.
      
      Configure summary:
      
      Qt WebEngine:
        Embedded build ......................... yes
        Pepper Plugins ......................... no
        Printing and PDF ....................... no
        Proprietary Codecs ..................... no
        Spellchecker ........................... yes
        Native Spellchecker .................... no
        WebRTC ................................. no
        Use System Ninja ....................... yes
        Geolocation ............................ yes
        Use v8 snapshot ........................ yes
        Use ALSA ............................... yes
        Use PulseAudio ......................... yes
        Optional system libraries used:
          re2 .................................. no
          icu .................................. no
          libwebp, libwebpmux and libwebpdemux . yes
          opus ................................. yes
          ffmpeg ............................... no
          libvpx ............................... no
          snappy ............................... no
          libsrtp .............................. no
          glib ................................. yes
          zlib ................................. yes
          minizip .............................. yes
          libevent ............................. yes
          jsoncpp .............................. yes
          protobuf ............................. no
          libxml2 and libxslt .................. yes
          lcms2 ................................ no
          png .................................. yes
          harfbuzz ............................. yes
        Required system libraries:
          fontconfig ........................... yes
          dbus ................................. yes
          nss .................................. yes
          khr .................................. yes
          glibc ................................ yes
        Required system libraries for qpa-xcb:
          libdrm ............................... yes
          xcomposite ........................... no
          xcursor .............................. no
          xi ................................... no
          xrandr ............................... no
          xtst ................................. no
      
      Note: Dropped compiler flags '-pthread' when detecting library 'webengine-protobuf'.
      
      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/opt/qt5pi/sysroot/usr/local/qt5pi'.
      
      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      
       
      V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work. Please make sure you have 32-bit devel environment installed, or  configure webengine with '-no-webengine-v8-snapshot'
      QtWebEngine will not be built.
      
      
      raven-worxR 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        @SherifOmran said in compiling qt webengine fail:

        xcomposite ........................... no
        xcursor .............................. no
        xi ................................... no
        xrandr ............................... no
        xtst ................................. no

        You are still missing the corresponding development packages as it seems.

        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
        • S SherifOmran

          I installed the following dependencies

          https://wiki.qt.io/QtWebEngine/How_to_Try

          then i tried downloading the source alone of webengine

          http://www.linuxfromscratch.org/blfs/view/cvs/x/qtwebengine.html

          sherif@sherif-MacBookPro:/opt/qt5pi/qtwebengine-everywhere-src-5.10.1$ ../qt5build/qtbase/qmake/qmake -r
          Info: creating stash file /opt/qt5pi/qtwebengine-everywhere-src-5.10.1/.qmake.stash
          Info: creating cache file /opt/qt5pi/qtwebengine-everywhere-src-5.10.1/.qmake.cache
          
          Running configuration tests...
          Checking for alsa... yes
          Checking for bison... yes
          Checking for embedded... yes
          Checking for flex... yes
          Checking for gperf... yes
          Checking for host pkg-config... /usr/bin/pkg-config
          Checking for pulseaudio >= 0.9.10... yes
          Checking for python2... /usr/bin/python2
          Checking for d-bus... yes
          Checking for fontconfig... yes
          Checking for glib-2.0 >= 2.32.0... yes
          Checking for glibc > 2.16... yes
          Checking for harfbuzz >= 1.4.2... yes
          Checking for jsoncpp... yes
          Checking for khr... yes
          Checking for libdrm... yes
          Checking for libevent... yes
          Checking for srtp... no
          Checking for libvpx... no
          Checking for libwebp, libwebpmux and libwebpdemux... yes
          Checking for libxml2 and libxslt... yes
          Checking for libxml2 configured with icuuc... yes
          Checking for minizip... yes
          Checking for system ninja... yes
          Checking for nss... yes
          Checking for opus... yes
          Checking for libpng >= 1.6.0... yes
          Checking for protobuf... yes
          Checking for protoc... no
          Checking for re2... no
          Checking for snappy... no
          Checking for xcomposite... no
          Checking for xcursor... no
          Checking for xi... no
          Checking for xrandr... no
          Checking for xtst... no
          Checking for zlib... yes
          Checking for host compiler... no
          Done running configuration tests.
          
          Configure summary:
          
          Qt WebEngine:
            Embedded build ......................... yes
            Pepper Plugins ......................... no
            Printing and PDF ....................... no
            Proprietary Codecs ..................... no
            Spellchecker ........................... yes
            Native Spellchecker .................... no
            WebRTC ................................. no
            Use System Ninja ....................... yes
            Geolocation ............................ yes
            Use v8 snapshot ........................ yes
            Use ALSA ............................... yes
            Use PulseAudio ......................... yes
            Optional system libraries used:
              re2 .................................. no
              icu .................................. no
              libwebp, libwebpmux and libwebpdemux . yes
              opus ................................. yes
              ffmpeg ............................... no
              libvpx ............................... no
              snappy ............................... no
              libsrtp .............................. no
              glib ................................. yes
              zlib ................................. yes
              minizip .............................. yes
              libevent ............................. yes
              jsoncpp .............................. yes
              protobuf ............................. no
              libxml2 and libxslt .................. yes
              lcms2 ................................ no
              png .................................. yes
              harfbuzz ............................. yes
            Required system libraries:
              fontconfig ........................... yes
              dbus ................................. yes
              nss .................................. yes
              khr .................................. yes
              glibc ................................ yes
            Required system libraries for qpa-xcb:
              libdrm ............................... yes
              xcomposite ........................... no
              xcursor .............................. no
              xi ................................... no
              xrandr ............................... no
              xtst ................................. no
          
          Note: Dropped compiler flags '-pthread' when detecting library 'webengine-protobuf'.
          
          Qt is now configured for building. Just run 'make'.
          Once everything is built, you must run 'make install'.
          Qt will be installed into '/opt/qt5pi/sysroot/usr/local/qt5pi'.
          
          Prior to reconfiguration, make sure you remove any leftovers from
          the previous build.
          
           
          V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work. Please make sure you have 32-bit devel environment installed, or  configure webengine with '-no-webengine-v8-snapshot'
          QtWebEngine will not be built.
          
          
          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @SherifOmran
          your configuration seems good so far. What backend you plan to use? For X11 you have to install the packages (armhf @SGaist mentioned

           Required system libraries for qpa-xcb:
              libdrm ............................... yes
              xcomposite ........................... no
              xcursor .............................. no
              xi ................................... no
              xrandr ............................... no
              xtst ................................. no
          

          I had the problem (also especially with Qt 5.10.1) that i only was able to cross compile QtWebEngine with the -no-webengine-v8-snapshot option. There is also a bugreport regarding this IIRC.

          Also your first post shows that you tried to build Qt statically?

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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