qt-components-5.15.10

Introduction to qt5 components

These instructions show how to build additional Qt5 components beyond qt-alternate-5.15.10. They are not applicable if the full Qt-5.15.10 package has been built.

This package is known to build and work properly using an LFS 12.0 platform.

Package Information

Additional Downloads

qt5 components Dependencies

Required

qt-alternate-5.15.10

Recommended dependencies for qtimageformats

Recommended dependencies for multimedia

Installation of qt5 components

There are a few extra components needed for different packages in BLFS. These are qtimageformats, qtlocation, qtwebchannel, qtdoc, and qtmultimedia. Only those components specified for a specific package are needed. You only need to build the relevant component(s).

First, apply a patch to pull in the fixes curated by KDE for some of the modules listed above:

patch -Np1 -i ../qt-everywhere-opensource-src-5.15.10-kf5-1.patch

Next, if you are installing qtlocation, fix the build with GCC-13:

sed -e "/pragma once/a#include <cstdint>"                                      \
    -i qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp \
       qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp   \
       qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp

Install each desired component by running the following commands:

cd <component>
qmake <component>.pro
make

As the root user:

make install

Remove references to the build directory from installed library dependency (prl) files by running the following command as the root user:

find $QT5DIR/ -name \*.prl \
   -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

Contents

Installed Programs: None
Installed Libraries: libQt5<component>.so
Installed Directories: $QTDIR/qml/<component>, $QTDIR/lib/<component>, and $QTDIR/include/<component>