Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.5.0 FF
-
None
-
c2aa05991d (qt/qtbase/dev) c2aa05991d (qt/tqtc-qtbase/dev) 9c027ac7ab (qt/qtbase/6.4) 87a8f36ff7 (qt/qtbase/6.4.1) 9c027ac7ab (qt/tqtc-qtbase/6.4) 87a8f36ff7 (qt/tqtc-qtbase/6.4.1) 87a8f36ff7 (qt/tqtc-qtbase/tqtc/qtinsight-6.4), 6453d17a0 (6.4)
Description
When calling qt_add_translations, the build system is by default expected to a) call lrelease, and then b) put the generated .qm files into the resource system, with e.g.
qt_add_translations(i18n TS_FILES
translations/i18n_ar.ts
// ...
)
Anyhow, a CI run for an example on Windows shows that the order is not always enforced:
[1077/1280] cmd.exe /C "cd /D C:\Users\qt\work\qt\qttools_build\examples\linguist\i18n && C:\Users\qt\work\install\.\bin\rcc.exe --output C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/qrc_i18n_translations.cpp --name i18n_translations C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/i18n_translations.qrc --no-zstd" FAILED: examples/linguist/i18n/.rcc/qrc_i18n_translations.cpp C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/qrc_i18n_translations.cpp cmd.exe /C "cd /D C:\Users\qt\work\qt\qttools_build\examples\linguist\i18n && C:\Users\qt\work\install\.\bin\rcc.exe --output C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/qrc_i18n_translations.cpp --name i18n_translations C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/i18n_translations.qrc --no-zstd" RCC: Error in 'C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/.rcc/i18n_translations.qrc': Cannot find file 'C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/i18n_ar.qm' [1078/1280] cmd.exe /C "cd . && C:\CMake\bin\cmake.exe -E vs_link_exe --intdir=src\qdbus\qdbus\CMakeFiles\qdbus.dir\RelWithDebInfo --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo src\qdbus\qdbus\CMakeFiles\qdbus.dir\RelWithDebInfo\qdbus_autogen\mocs_compilation_RelWithDebInfo.cpp.obj src\qdbus\qdbus\CMakeFiles\qdbus.dir\RelWithDebInfo\qdbus.cpp.obj src\qdbus\qdbus\CMakeFiles\qdbus.dir\RelWithDebInfo\RelWithDebInfo\qdbus_resource.rc.res /out:bin\qdbus.exe /implib:src\qdbus\qdbus\RelWithDebInfo\qdbus.lib /pdb:bin\qdbus.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL:NO /subsystem:console -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE -OPT:REF -OPT:ICF -GUARD:CF C:\Users\qt\work\install\lib\Qt6DBus.lib C:\Users\qt\work\install\lib\Qt6Xml.lib C:\Users\qt\work\install\lib\Qt6Core.lib mpr.lib userenv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." [1079/1280] cmd.exe /C "cd /D C:\Users\qt\work\qt\qttools_build\examples\linguist\i18n && C:\Users\qt\work\qt\qttools_build\.qt\bin\qt_setup_tool_path.bat C:/Users/qt/work/qt/qttools_build/bin/lrelease.exe /Users/qt/work/qt/qttools/examples/linguist/i18n/translations/i18n_ar.ts -qm C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/i18n_ar.qm" Updating 'C:/Users/qt/work/qt/qttools_build/examples/linguist/i18n/i18n_ar.qm'...
Note that , in step 1077 , rcc.exe is called before lrelease.exe is called in step 1079.
Attachments
Issue Links
- relates to
-
QTBUG-107687 [REG 6.3.1 -> 6.3.2] qt_add_resources with .qm translation files no longer rebuild generated .qrc when .qm files change
- Closed
For Gerrit Dashboard: QTBUG-108113 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
438676,9 | CMake: Fix qt_add_resources missing dependency regression | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441130,11 | CMake: Add auto test for qt_add_resources dependency rebuilding | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441310,2 | CMake: Fix qt_add_resources missing dependency regression | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
441311,2 | CMake: Fix qt_add_resources missing dependency regression | 6.4.1 | qt/qtbase | Status: MERGED | +2 | 0 |
446603,2 | CMake: Add auto test for qt_add_resources dependency rebuilding | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |