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. Qt Web Engine compilation in linux (Ubuntu Desktop 22) [Urgent]
Forum Updated to NodeBB v4.3 + New Features

Qt Web Engine compilation in linux (Ubuntu Desktop 22) [Urgent]

Scheduled Pinned Locked Moved Unsolved QtWebEngine
6 Posts 4 Posters 2.5k Views 3 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.
  • axelitoA Offline
    axelitoA Offline
    axelito
    wrote on last edited by
    #1

    Hi everyone and thanks for your time.
    I want to display a local html five in a qt web engine view.
    I've installed qt this way :
    sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
    then I install qt creator and gcc compiler.
    but QT WEB ENGINE is not detected by qt creator or qmake. I get the following error :
    Unknown module(s) in QT: webengine
    When i compile the same app in windows 10, it works. I noticed that windows10 was using MSVC compiler. When I change the compiler to mingw, web engine is again not found.
    So my questions :

    • does qt web engine is only compiled on MSVC ( microsoft visual studio compiler ) ?
    • how to have MSVC in linux then ?
    • if not possible, how to compile web engine in a linux environment since it is supported according to the doc : https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#linux

    Thank you very much for your answers !

    sierdzioS 1 Reply Last reply
    0
    • axelitoA axelito

      Hi everyone and thanks for your time.
      I want to display a local html five in a qt web engine view.
      I've installed qt this way :
      sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
      then I install qt creator and gcc compiler.
      but QT WEB ENGINE is not detected by qt creator or qmake. I get the following error :
      Unknown module(s) in QT: webengine
      When i compile the same app in windows 10, it works. I noticed that windows10 was using MSVC compiler. When I change the compiler to mingw, web engine is again not found.
      So my questions :

      • does qt web engine is only compiled on MSVC ( microsoft visual studio compiler ) ?
      • how to have MSVC in linux then ?
      • if not possible, how to compile web engine in a linux environment since it is supported according to the doc : https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#linux

      Thank you very much for your answers !

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @axelito said in Qt Web Engine compilation in linux (Ubuntu Desktop 22) [Urgent]:

      So my questions :

      • does qt web engine is only compiled on MSVC ( microsoft visual studio compiler ) ?

      No, it works on other platforms too.

      • how to have MSVC in linux then ?

      You can't.

      • if not possible, how to compile web engine in a linux environment since it is supported according to the doc : https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#linux

      Yes, but you don't need to. Just instal it:

      sudo apt install libqt5webengine5
      

      But the recommended way to get Qt is to use the official installer https://www.qt.io/download

      (Z(:^

      1 Reply Last reply
      2
      • O Offline
        O Offline
        odelaune
        wrote on last edited by
        #3

        And probably also
        sudo apt install qtwebengine5-dev
        will be useful.

        1 Reply Last reply
        3
        • axelitoA Offline
          axelitoA Offline
          axelito
          wrote on last edited by
          #4

          @sierdzio
          OK thanks for your answer. Indeed, I reinstalled Qt with online installer and now gcc compiler can detect and compile qtwebengine binaries.
          Except now my app is a blank screen ( it should render a web view of www.qt.io) and the following error :
          /home/axel/Qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so: .dynsym local symbol at index 3 (>= sh_info of 3)

          any idea ? thanks !

          mrjjM 1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            No idea, sorry

            (Z(:^

            1 Reply Last reply
            0
            • axelitoA axelito

              @sierdzio
              OK thanks for your answer. Indeed, I reinstalled Qt with online installer and now gcc compiler can detect and compile qtwebengine binaries.
              Except now my app is a blank screen ( it should render a web view of www.qt.io) and the following error :
              /home/axel/Qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so: .dynsym local symbol at index 3 (>= sh_info of 3)

              any idea ? thanks !

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @axelito

              Hi
              I think you are seeing this
              https://bugreports.qt.io/browse/QTBUG-80964

              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