Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to build QtWebEngine with Python3?

    QtWebEngine
    2
    2
    1357
    Loading More Posts
    • 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.
    • jiapei1000
      jiapei1000 last edited by 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

      A nobyd in computer vision

      eyllanesc 1 Reply Last reply Reply Quote 0
      • eyllanesc
        eyllanesc @jiapei1000 last edited by eyllanesc

        @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 Reply Quote 2
        • First post
          Last post