Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot find libgcc_s_seh-1.dll after windeployqt
QtWS25 Last Chance

Cannot find libgcc_s_seh-1.dll after windeployqt

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 5.7k 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
    senmx
    wrote on last edited by senmx
    #1

    If you copy libgcc_s_seh-1.dll under Qt\5.15.2\mingw81_64\bin to the exe file directory and execute it, other errors will occur.
    Everything works fine in Qt Creator.
    0ceff535-cf96-4c94-a9fc-df8ace3c8c9a-image.png

    After copy libgcc_s_seh-1.dll:
    b9a31c4c-9e79-48c7-855a-555bdf206f5a-image.png

    ENV:

    win11
    Qt 5.15.2

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #6

      Hi, ok a 32-bit version of libgcc_s_seh-1.dll should exist somewhere on your PC since your program works fine when you start it in Qt Creator.

      You can try downloading ListDLLs from Sysinternals, start your program in Qt Creator, open a CMD window and run listdlls in it.
      In the list of DLLs should be the path to where the 32-bit version of ibgcc_s_seh-1.dll is on your PC.

      S 1 Reply Last reply
      0
      • hskoglundH Online
        hskoglundH Online
        hskoglund
        wrote on last edited by
        #2

        Hi, 0xc000007b means there's a mixup of 32-bit and 64-bit .dlls, so instead try copy libgcc_s_seh-1.dll from Qt\5.15.2\mingw81\bin (i.e. the 32-bit version of MinGW).

        S 1 Reply Last reply
        0
        • hskoglundH hskoglund

          Hi, 0xc000007b means there's a mixup of 32-bit and 64-bit .dlls, so instead try copy libgcc_s_seh-1.dll from Qt\5.15.2\mingw81\bin (i.e. the 32-bit version of MinGW).

          S Offline
          S Offline
          senmx
          wrote on last edited by senmx
          #3

          @hskoglund Has been copied this dll, then occurs 0xc000007b.

          1 Reply Last reply
          0
          • hskoglundH Online
            hskoglundH Online
            hskoglund
            wrote on last edited by hskoglund
            #4

            Hi, even if you copy it from Qt\5.15.2\mingw81_32\bin (and not from Qt\5.15.2\mingw81_64\bin)?

            *Edit": I forgot that the 32-bit MinGW installation is called mingw81_32 and not just mingw81, sorry

            S 1 Reply Last reply
            0
            • hskoglundH hskoglund

              Hi, even if you copy it from Qt\5.15.2\mingw81_32\bin (and not from Qt\5.15.2\mingw81_64\bin)?

              *Edit": I forgot that the 32-bit MinGW installation is called mingw81_32 and not just mingw81, sorry

              S Offline
              S Offline
              senmx
              wrote on last edited by
              #5

              @hskoglund Tks, there is no such file in 32-bit, but in 64-bit.

              1 Reply Last reply
              0
              • hskoglundH Online
                hskoglundH Online
                hskoglund
                wrote on last edited by
                #6

                Hi, ok a 32-bit version of libgcc_s_seh-1.dll should exist somewhere on your PC since your program works fine when you start it in Qt Creator.

                You can try downloading ListDLLs from Sysinternals, start your program in Qt Creator, open a CMD window and run listdlls in it.
                In the list of DLLs should be the path to where the 32-bit version of ibgcc_s_seh-1.dll is on your PC.

                S 1 Reply Last reply
                0
                • S Offline
                  S Offline
                  senmx
                  wrote on last edited by
                  #7

                  Tks, the one I found is the one I copied in the beginning.
                  231ab6af-03e0-48f5-8abb-e50b2924b142-image.png

                  1 Reply Last reply
                  0
                  • hskoglundH hskoglund

                    Hi, ok a 32-bit version of libgcc_s_seh-1.dll should exist somewhere on your PC since your program works fine when you start it in Qt Creator.

                    You can try downloading ListDLLs from Sysinternals, start your program in Qt Creator, open a CMD window and run listdlls in it.
                    In the list of DLLs should be the path to where the 32-bit version of ibgcc_s_seh-1.dll is on your PC.

                    S Offline
                    S Offline
                    senmx
                    wrote on last edited by
                    #8

                    @hskoglund Solved. I found that it is okay to copy all the dependencies in mingw81_64 directly, and then slowly delete some unnecessary ones.

                    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