Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.3
-
None
-
PCLinuxOS distribution with Qt5.15 and Qt6.7.3 installed.
Qt6 installed as two packages:
Qt6 (6.7.3) and Qt6-devel (6.7.3)
Output from uname -srio:
Linux 5.2.21-pclos1 x86_64 GNU/Linux
-
-
1f883d935 (6.8)
Description
Whilst this problem was encountered with Qt 6.7.3 on Linux/X11 it may affect other versions of Qt6 and other platforms.
Situation:
Attempting to add Luganda (lg) translations to Qt6 (6.7.3) by following the instructions at https://wiki.qt.io/Qt_Localization
Actions:
- Clone and build Qt6 as per https://wiki.qt.io/Building_Qt_6_from_Git.
- Follow https://wiki.qt.io/Qt_Localization up to the instruction:
cd qttranslations; <qt-installation>/bin/qt-cmake . -G Ninja; ninja ts-<lang>
Since there was no obvious instruction for adding a new/as yet untranslated language in this Qt6 section I attempted to follow the logic in the Qt5 section and replace <lang> with 'untranslated'.
Expected result:
Translation file templates created in the qttranslations folder.
Actual result:
The ninja command returns a message that ends with:
-- Configuring done (0.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/muwawa/nls/Ebikyusibwa/Qt/build/qt6/qttranslations
ninja: error: unknown target 'ts-untranslated'
Using 'lg' instead of 'untranslated' produces a similar result. Using 'en' for English also produces the same sort of result.
NOTE:
- Attachment 0 is the full description of each step taken up to the failure point. It includes the path names and some patching that was required prior to the build. The patch files are attached and have '0001' prefixes.
- Attchment 1 is the log of the cloning.
- Attchment 2 is the log of the local repository initialisation
- Attachment 3 is configure log
- Attachment 4 is the Qt6 build log
- Attachment 5 is the log of the attempt to create the language templates