Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6.1.2 build error with Qt Translations
Forum Updated to NodeBB v4.3 + New Features

Qt 6.1.2 build error with Qt Translations

Scheduled Pinned Locked Moved Solved Qt 6
3 Posts 2 Posters 947 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SamerAfach
    wrote on last edited by SamerAfach
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SamerAfach
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chenz
        wrote on last edited by
        #3

        I also just ran into this issue - ninja will delete the TS files when "cleaning" (e.g. when being invoked via cmake --build . --clean-first).

        Seems weird that it would touch anything in the source tree.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved