#################################################################################### # # # STEPS TAKEN IN AN ATTEMPT TO BUILD Qt6 AND OBTAIN LOCALISATION TEMPLATES # # # #################################################################################### # # On PClinuxOS (qt 5.15) added: # qt6 (6.7.3) # qt6-devel (6.7.3) # cmake # node-js # ninja # GPerf # # The instructions on # https://wiki.qt.io/Building_Qt_6_from_Git # Note that unlike the rest of Qt, the translations still use a forward-merging branch model, # so you should target the oldest branch you find still relevant first. # Create and enter qt-sources directory... $ mkdir qt6 $ cd qt6 # Fetch the qt6 sources: # Top level repository... $ git clone --branch v6.7.3 git://code.qt.io/qt/qt5.git . 2>&1 | tee ../qt6-clone-log.txt # Create and enter parallel build directory $ mkdir ../qt6-build # Get the submodule source code... $ perl init-repository --module-subset=default,-qtwebengine --codereview-username kizito 2>&1 | tee ../qt6-submodules-log.txt # Patches: # qtbase/util/locale_database/testlocales/localemodel.cpp with the additional lines for Luganda and the other missing languages... $ cd qtbase/util/locale_database/testlocales $ patch localemodel.cpp < localemodel-ganda-patch.txt # NOTE: The '+ { 2, 81 }, //Abkhazian/Georgia' failed, presumably because '{ 41, 81 }, // Georgian/Georgia' was present. # qttools/src/linguist/lupdate/clangtoolastreader.cpp. The patch is from the pclinuxos qttools6-6.7.3 srpm. $ cd qttools/src/linguist/lupdate $ patch clangtoolastreader.cpp < 0001-lupdate-clang-Fix-deprecation-warning-with-llvm-18.patch # qttools/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp. The patch is from the pclinuxos qttools6-6.7.3 srpm. $ cd qttools/src/qdoc/qdoc/src/qdoc $ patch clangcodeparser.cpp < 0001-QDoc-Adapt-to-breaking-changes-in-LLVM-19.patch # qttools/src/linguist/linguist/CMakeLists.txt. The patch is from the pclinuxos qttools6-6.7.3 srpm. $ cd qttools/src/linguist/linguist $ patch CMakeLists.txt < call-find_package-printsupport.patch # Configure the build... $ cd ../qt6-build $ ../qt6/configure -opensource -confirm-license -nomake examples -nomake tests -submodules qttranslations,qttools,qtbase 2>&1 | tee ../qt6-configure-log.txt # Build the sources... $ cmake --build . --parallel 2>&1 | tee ../qt6-build-log.txt # Go to the translations directory in the parallel build area... $ cd qttranslations # Parse the code for new translated messages. # This is where the trouble occured. $ /usr/lib64/qt6/bin/qt-cmake . -G Ninja; ninja ts-untranslated 2>&1 | tee ../../qt6-language-template-log.txt