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. How to build QtWebEngine with Python3?
QtWS25 Last Chance

How to build QtWebEngine with Python3?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 3.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.
  • jiapei1000J Offline
    jiapei1000J Offline
    jiapei1000
    wrote on last edited by jiapei1000
    #1

    My ENV:

    ➜  ~ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 20.04.2 LTS
    Release:	20.04
    Codename:	focal
    ➜  ~ python --version 
    Python 3.8.10
    ➜  ~ gcc --version
    gcc (GCC) 10.3.1 20210627
    Copyright (C) 2020 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    Note: Also available for Linux: linux-clang linux-icc
    
    Note: The following modules are not being compiled in this configuration:
        webenginecore
        webengine
        webenginewidgets
        pdf
        pdfwidgets
    
    WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
    
    Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
    On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
    On macOS, you can use Homebrew's llvm package.
    On Windows, you must set LLVM_INSTALL_DIR to the installation path.
    
    WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine.
    
    WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.
    
    WARNING: QtWebEngine will not be built.
    
    WARNING: QtPdf will not be built.
    
    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/usr/local/Qt-5.15.2'.
    
    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    

    In fact, even if I installed python2, I still failed to build QtWebEngine with the same above ERROR messages.

    It looks it's recommended to build QtWebEngine separately, for instance: https://www.linuxfromscratch.org/blfs/view/svn/x/qtwebengine.html

    Cheers
    Pei

    A nobody in computer vision & AI

    eyllanescE 1 Reply Last reply
    0
    • jiapei1000J jiapei1000

      My ENV:

      ➜  ~ lsb_release -a
      No LSB modules are available.
      Distributor ID:	Ubuntu
      Description:	Ubuntu 20.04.2 LTS
      Release:	20.04
      Codename:	focal
      ➜  ~ python --version 
      Python 3.8.10
      ➜  ~ gcc --version
      gcc (GCC) 10.3.1 20210627
      Copyright (C) 2020 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
      Note: Also available for Linux: linux-clang linux-icc
      
      Note: The following modules are not being compiled in this configuration:
          webenginecore
          webengine
          webenginewidgets
          pdf
          pdfwidgets
      
      WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
      
      Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
      On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
      On macOS, you can use Homebrew's llvm package.
      On Windows, you must set LLVM_INSTALL_DIR to the installation path.
      
      WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine.
      
      WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.
      
      WARNING: QtWebEngine will not be built.
      
      WARNING: QtPdf will not be built.
      
      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/usr/local/Qt-5.15.2'.
      
      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      

      In fact, even if I installed python2, I still failed to build QtWebEngine with the same above ERROR messages.

      It looks it's recommended to build QtWebEngine separately, for instance: https://www.linuxfromscratch.org/blfs/view/svn/x/qtwebengine.html

      Cheers
      Pei

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by eyllanesc
      #2

      @jiapei1000 1) QtWebEngine requires python2 because chromium requires it so you can't change it. 2) I have tried to compile QtWebEngine with ubuntu 20.04 but using ubuntu 18.04 with the same configuration I have been able to compile.

      To compile QtWebEngine you have to install some dependencies: https://wiki.qt.io/Building_Qt_5_from_Git

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      2

      • Login

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