Important: Please read the Qt Code of Conduct -

Warnings - Build from source

  • Hi, all:

    I obtained the following warnings while building Qt from source. My OS env:

    1. OS: Ubuntu 20.04
    2. Python: 3.8.2
      ➜ ~ python --version Python 3.8.2
    3. Qt: qt-everywhere-src-5.15.1

    The warnings I obtained:

    Note: Also available for Linux: linux-clang linux-icc
    Note: The following modules are not being compiled in this configuration:
    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 '/opt'.
    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    1. Additionally, how can I reconfigure from scratch? ./configure clean didn't work .

    Thank you very much.

  • Lifetime Qt Champion


    Last question first: do out of source builds, this avoids polluting the sources and if something goes wrong juste nuke the folder and start from scratch.

    As for the warnings:

    • you do not seem to have clang installed
    • Python 2 is requested not 3

Log in to reply