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. Custome Qt build: including the QtWebEngine module
Forum Updated to NodeBB v4.3 + New Features

Custome Qt build: including the QtWebEngine module

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 550 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.
  • C Offline
    C Offline
    Circuits
    wrote on last edited by
    #1

    I am struggling to figure out how I get the QtWebEngine module to build. In the tarball for my Qt version there is a .gitmodules file where it lists the various modules available. This documentation makes it seem as though, in order to include a module, I don't have to do anything during the extraction e.g. if I want the webengine module all I need to do is... not exclude it.

    So, I am not excluding it from the build. However, when I am extracting the tarball this is the output when it attempts to build the webengine:

    cd qtwebengine/ && ( test -e Makefile || /home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtbase/bin/qmake -o Makefile /home/rob/sandbox/trunk/LinuxDesktopPlatform/qt-everywhere-src-5.11.3/qtwebengine/qtwebengine.pro ) && make -f Makefile install
    make[2]: Entering directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine'
    make[2]: Nothing to be done for 'install'.
    make[2]: Leaving directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine'
    

    this seems to suggjest that it's either already part of the build or there is some special tar instruction that I need to use in order to have it build.. which I can not find any documentation for.

    Is there some way, looking at the extracted tarball, to know which modules have been included in the built?

    If I attempt to initialize the module in my pro file it tells me it doesn't exist:

    QT += webengine
    
    Issues:
    Unknown module(s) in QT: webengine
    

    which it does not do for this module:

    QT += webview
    

    it allows me to add that; however, if I then try to use the thing in QML the Application output reports:

    No WebView plug-in found!
    

    which is why I started down the path of attempting to get the webengine into the build. I am assuming the reason it can't find the webview plugin (despite allowing me to import it... which is super confusing btw) is because the webengine module isn't in the build.

    So maybe I am wrong? Maybe it can't find the webview plugin for some other reason?

    Maybe that is correct? Maybe I do need the webengine module in order to use webview in QML?

    All I want to do is display an html document in my application!

    P 1 Reply Last reply
    0
    • C Circuits

      I am struggling to figure out how I get the QtWebEngine module to build. In the tarball for my Qt version there is a .gitmodules file where it lists the various modules available. This documentation makes it seem as though, in order to include a module, I don't have to do anything during the extraction e.g. if I want the webengine module all I need to do is... not exclude it.

      So, I am not excluding it from the build. However, when I am extracting the tarball this is the output when it attempts to build the webengine:

      cd qtwebengine/ && ( test -e Makefile || /home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtbase/bin/qmake -o Makefile /home/rob/sandbox/trunk/LinuxDesktopPlatform/qt-everywhere-src-5.11.3/qtwebengine/qtwebengine.pro ) && make -f Makefile install
      make[2]: Entering directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine'
      make[2]: Nothing to be done for 'install'.
      make[2]: Leaving directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine'
      

      this seems to suggjest that it's either already part of the build or there is some special tar instruction that I need to use in order to have it build.. which I can not find any documentation for.

      Is there some way, looking at the extracted tarball, to know which modules have been included in the built?

      If I attempt to initialize the module in my pro file it tells me it doesn't exist:

      QT += webengine
      
      Issues:
      Unknown module(s) in QT: webengine
      

      which it does not do for this module:

      QT += webview
      

      it allows me to add that; however, if I then try to use the thing in QML the Application output reports:

      No WebView plug-in found!
      

      which is why I started down the path of attempting to get the webengine into the build. I am assuming the reason it can't find the webview plugin (despite allowing me to import it... which is super confusing btw) is because the webengine module isn't in the build.

      So maybe I am wrong? Maybe it can't find the webview plugin for some other reason?

      Maybe that is correct? Maybe I do need the webengine module in order to use webview in QML?

      All I want to do is display an html document in my application!

      P Offline
      P Offline
      poncho524
      wrote on last edited by
      #2

      @Circuits , what's your configure line look like?

      C 1 Reply Last reply
      0
      • P poncho524

        @Circuits , what's your configure line look like?

        C Offline
        C Offline
        Circuits
        wrote on last edited by Circuits
        #3

        @poncho524 The config line looks like this:

        qt-everywhere-src-5.11.3/qtbase/configure -top-level -commercial -confirm-license -debug -c++std c++14 -opengl desktop -system-xcb -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtgamepad -skip qtmacextras -skip qtpurchasing -skip qtscxml -skip qtsensors -skip qtspeech -skip qtwebglplugin -skip qtwinextras -prefix ../Install
        

        Which means these installed modules (if unpacked) would make it into the "Install" directory. I checked that directory and there is no QtWebEngine folder within it. So the module is not being installed. Perhaps it needs some special commands?

        Perhaps I don't have all the dependencies? I have the dependencies seen here I believe.. (not sure about khr and libcap).

        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