How to build Qt6.7.3?

1. Download the Official Release

  • Qt 6.7.3 Archive
  • Extract under /opt/qt
    1
    2
    [14:49:18] lvision /opt/qt 
    $ tar xvf qt-everywhere-src-6.7.3.tar.xz

2. CMake Configuration with Generator Ninja

1
2
[14:47:52] lvision /opt/qt/qt-everywhere-src-6.7.3/build 
$ cmake -G "Ninja" ../

3. Build with Trivial Modifications

1
2
[14:51:43] lvision /opt/qt/qt-everywhere-src-6.7.3/build 
$ ccmake ../

The MOST important: Include /usr/include/litehtml in

4. Installation

1
2
[14:51:43] lvision /opt/qt/qt-everywhere-src-6.7.3/build 
$ ninja

and you'll get:

1
2
3
4
5
6
7
8
9
10
......
In function ‘fxcrt::RetainPtr<T> pdfium::MakeRetain(Args&& ...) [with T = CFX_ReadOnlySpanStream; Args = {span<const unsigned char>}]’,
inlined from ‘std::vector<UnsupportedFeature> CPDF_Metadata::CheckForSharedForm() const’ at ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.cpp:86:75:
../../../../../../qtwebengine/src/3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:210:23: note: returned from ‘void* operator new(std::size_t)’
210 | return RetainPtr<T>(new T(std::forward<Args>(args)...));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1323/1323] STAMP QtPdf.stamp
[10785/10857] Automatic MOC for target Pdf
AutoMoc: /opt/qt/qt-everywhere-src-6.7.3/qtwebengine/src/pdf/qpdflinkmodel_p.h: note: No relevant classes found. No output generated.
[10857/10857] Linking CXX shared module qtbase/qml/QtQuick/Pdf/libpdfquickplugin.so

Good, ALL passed.

Finally, do ninja install.

1
2
3
➜  ~ qmake --version
QMake version 3.1
Using Qt version 6.7.3 in /opt/qt/6/lib