-
Hi guys, when I attempt to build Qt with Visual Studio 2019 and Ninja, using this recipe (after starting the
x86 Native Tools Command Prompt for VS 2019
):> set QMAKESPEC=win32-msvc > set CL=/MP > configure -developer-build -confirm-license -opensource -platform %QMAKESPEC% -opengl desktop -static -static-runtime -nomake examples -nomake tests -mp -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -cmake-generator "Ninja" > ninja
I get these errors:
[6627/7670] cmd.exe /C "cd /D C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qttranslation...t/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm/assistant_ar.qm"FAILED: qttranslations/translations/CMakeFiles/updateqm-assistant_ar.ts qttranslations/translations/qm/assistant_ar.qm cmd.exe /C "cd /D C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qttranslations\translations && "C:\Program Files\CMake\bin\cmake.exe" -E make_directory C:/Qt/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm && C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qtbase\bin\lrelease.exe C:/Qt/Qt5_src/Qt6.1.2_src/qttranslations/translations/assistant_ar.ts -qm C:/Qt/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm/assistant_ar.qm" lrelease error: Cannot open C:/Qt/Qt5_src/Qt6.1.2_src/qttranslations/translations/assistant_ar.ts: The system cannot find the file specified. [6629/7670] cmd.exe /C "cd /D C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qttranslation...Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm/qtwebengine_pl.qm"Updating 'C:/Qt/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm/qtwebengine_pl.qm'... Generated 75 translation(s) (75 finished and 0 unfinished) [6630/7670] cmd.exe /C "cd /D C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qttranslation...rc/Qt6.1.2_32_VS2019/qttranslations/translations/qm/qtquickcontrols2_hu.qm"FAILED: qttranslations/translations/CMakeFiles/updateqm-qtquickcontrols2_hu.ts qttranslations/translations/qm/qtquickcontrols2_hu.qm cmd.exe /C "cd /D C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qttranslations\translations && "C:\Program Files\CMake\bin\cmake.exe" -E make_directory C:/Qt/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm && C:\Qt\Qt5_src\Qt6.1.2_32_VS2019\qtbase\bin\lrelease.exe C:/Qt/Qt5_src/Qt6.1.2_src/qttranslations/translations/qtquickcontrols2_hu.ts -qm C:/Qt/Qt5_src/Qt6.1.2_32_VS2019/qttranslations/translations/qm/qtquickcontrols2_hu.qm" lrelease error: Cannot open C:/Qt/Qt5_src/Qt6.1.2_src/qttranslations/translations/qtquickcontrols2_hu.ts: The system cannot find the file specified. [6640/7670] Linking CXX executable qtbase\bin\meshdebug.exe ninja: build stopped: subcommand failed.
I'm using latest ninja (1.10.2), and latest cmake (3.20.5), and latest Strawberry Perl (v5.32.1).
(Those errors are besides the errors with
small
variable name in qt3d, which I fixed myself in the code by renaming the variables.)Am I doing something wrong?
-
It seems that the qttranslations repository was somehow tainted by cmake or the build process and files were deleted. I went to that repo and cleaned it up with
git reset HEAD --hard
and it worked out when I built again.