qtwebsockets_en.qm: No such file or directory
Unsolved
General and Desktop
-
Hi Im building Qt6.24 (LTS) from source on Ubuntu 20.04, and encountered this error at the very last phase of compiling.
Updating '/home/zq/qt6-static-build/build/qtbase/./translations/qtwebsockets_en.qm'... lrelease error: cannot create '/home/zq/qt6-static-build/build/qtbase/./translations/qtwebsockets_en.qm': No such file or directory make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/build.make:70: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts] Error 1 make[1]: *** [CMakeFiles/Makefile2:95024: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
I searched this post on this forum about exact the same issue and followed the last post to add this option:
-no-feature-translation
But I then encountered new errors about the translation feature:
/home/zq/Qt/6.2.4/Src/qttools/src/linguist/lconvert/main.cpp:124:17: error: aggregate ‘QTranslator translator’ has incomplete type and cannot be defined 124 | QTranslator translator; | ^~~~~~~~~~ /home/zq/Qt/6.2.4/Src/qttools/src/linguist/lconvert/main.cpp:125:17: error: aggregate ‘QTranslator qtTranslator’ has incomplete type and cannot be defined 125 | QTranslator qtTranslator; | ^~~~~~~~~~~~ /home/zq/Qt/6.2.4/Src/qttools/src/linguist/lconvert/main.cpp:130:13: error: ‘class QCoreApplication’ has no member named ‘installTranslator’ 130 | app.installTranslator(&translator); | ^~~~~~~~~~~~~~~~~ /home/zq/Qt/6.2.4/Src/qttools/src/linguist/lconvert/main.cpp:131:13: error: ‘class QCoreApplication’ has no member named ‘installTranslator’ 131 | app.installTranslator(&qtTranslator); | ^~~~~~~~~~~~~~~~~
Has this issue been solved since that post? How should I proceed? Thanks.