Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. windeployqt6.exe in Qt 6.7.2 does not deploy some gcc libs
Forum Updated to NodeBB v4.3 + New Features

windeployqt6.exe in Qt 6.7.2 does not deploy some gcc libs

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 4 Posters 1.0k 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.
  • G Offline
    G Offline
    Grek
    wrote on 13 Jul 2024, 12:35 last edited by
    #1

    I have been using GCC 11.2.0 (MinGW_64) with Qt 6.6.0 for a while but recently updated to Qt 6.7.2 but still using GCC 11.2.0.

    Previously I could just run windeployqt6.exe <bin dir> <build dir> to deploy all required libs for the application to work.
    When I updated to Qt 6.7.2, it misses these 3 dll files:

    • libgcc_s_seh-1.dll
    • libstdc++-6.dll
    • libwinpthread-1.dll

    It successfully copies all other required libraries.

    This seems to be an issue with windeployqt6.exe itself. It works if I use windeployqt6.exe from Qt 6.6.0 on an application built with 6.7.2 but not windeployqt6.exe from Qt 6.7.2 (using the same shell).

    Is there something else I have to add as argument or environment for windeployqt6.exe to work properly in 6.7.2?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cristian-adam
      wrote on 13 Jul 2024, 16:10 last edited by
      #2

      It's a bug in Qt 6.7.2, see the fix at https://codereview.qt-project.org/c/qt/qtbase/+/573521 G++ vs g++.

      Take a hexeditor from https://superuser.com/questions/14465/hex-editors-for-windows and open windeployqt6.exe, find the G++ entry and change to g++.

      Alternatively wait for Qt 6.7.3, or build your own Qt 😀

      G 1 Reply Last reply 13 Jul 2024, 16:44
      3
      • C cristian-adam
        13 Jul 2024, 16:10

        It's a bug in Qt 6.7.2, see the fix at https://codereview.qt-project.org/c/qt/qtbase/+/573521 G++ vs g++.

        Take a hexeditor from https://superuser.com/questions/14465/hex-editors-for-windows and open windeployqt6.exe, find the G++ entry and change to g++.

        Alternatively wait for Qt 6.7.3, or build your own Qt 😀

        G Offline
        G Offline
        Grek
        wrote on 13 Jul 2024, 16:44 last edited by
        #3

        @cristian-adam Thanks for the info!
        I did a quick google search for this kind of issue before posting but I guess my googling failed me :)

        1 Reply Last reply
        1
        • G Grek has marked this topic as solved on 13 Jul 2024, 16:45
        • G Grek has marked this topic as solved on 13 Jul 2024, 16:45
        • Y Offline
          Y Offline
          YxH.Aus
          wrote on 21 Oct 2024, 05:34 last edited by
          #4

          I am seeing similar if not the same issuing using Qt 6.7.3, the missing files are:

          • libunwind.dll
          • libc++.dll

          Copying those files from C:\Qt\6.7.3\llvm-mingw_64\bin fixes it.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Michael58
            wrote 13 days ago last edited by
            #5

            Same problem here with Qt 6.9.1: libunwind.dll and libc++.dll are missing. I believe it worked previously with Qt 6.8.0.
            And again, copying those files from C:\Qt\6.9.1\llvm-mingw_64\bin fixes it.
            Is it broken again or did I make a mistake?

            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