Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved libgcc_s_seg-1.dll was not found issue

    Installation and Deployment
    deployment
    2
    5
    277
    Loading More Posts
    • 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.
    • L
      lukutis222 last edited by

      Hello. I have been playing around with QT Creator for a few days and managed to create a very simple program. I have decided to test it and deploy it. I have followed this video:
      https://www.youtube.com/watch?v=rFHPOZoqzcg

      What I have done:

      1. Build the project in release configuration.
      2. Execute windeployqt.exe command in powershell
      PS C:\Qt\6.3.1\mingw_64\bin> .\windeployqt.exe "C:\Users\petrikas.lu\Desktop\WORK\QT\UTB\build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release\release\UTB_gui.exe"
      C:\Users\petrikas.lu\Desktop\WORK\QT\UTB\build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release\release\UTB_gui.exe 64 bit, release executable
      Adding Qt6Svg for qsvgicon.dll
      Direct dependencies: Qt6Core Qt6Gui Qt6SerialPort Qt6Widgets
      All dependencies   : Qt6Core Qt6Gui Qt6SerialPort Qt6Widgets
      To be deployed     : Qt6Core Qt6Gui Qt6SerialPort Qt6Svg Qt6Widgets
      Warning: Cannot find GCC installation directory. g++.exe must be in the path.
      Updating Qt6Core.dll.
      Updating Qt6Gui.dll.
      Updating Qt6SerialPort.dll.
      Updating Qt6Svg.dll.
      Updating Qt6Widgets.dll.
      Updating opengl32sw.dll.
      Updating D3Dcompiler_47.dll.
      Creating directory C:/Users/petrikas.lu/Desktop/WORK/QT/UTB/build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release/release/iconengines.
      Updating qsvgicon.dll.
      Creating directory C:/Users/petrikas.lu/Desktop/WORK/QT/UTB/build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release/release/imageformats.
      Updating qgif.dll.
      Updating qico.dll.
      Updating qjpeg.dll.
      Updating qsvg.dll.
      Creating directory C:/Users/petrikas.lu/Desktop/WORK/QT/UTB/build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release/release/platforms.
      Updating qwindows.dll.
      Creating directory C:/Users/petrikas.lu/Desktop/WORK/QT/UTB/build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release/release/styles.
      Updating qwindowsvistastyle.dll.
      Creating C:\Users\petrikas.lu\Desktop\WORK\QT\UTB\build-UTB_gui-Desktop_Qt_6_3_1_MinGW_64_bit-Release\release\translations...
      Creating qt_ar.qm...
      Creating qt_bg.qm...
      Creating qt_ca.qm...
      Creating qt_cs.qm...
      Creating qt_da.qm...
      Creating qt_de.qm...
      Creating qt_en.qm...
      Creating qt_es.qm...
      Creating qt_fa.qm...
      Creating qt_fi.qm...
      Creating qt_fr.qm...
      Creating qt_gd.qm...
      Creating qt_he.qm...
      Creating qt_hr.qm...
      Creating qt_hu.qm...
      Creating qt_it.qm...
      Creating qt_ja.qm...
      Creating qt_ko.qm...
      Creating qt_lv.qm...
      Creating qt_nl.qm...
      Creating qt_nn.qm...
      Creating qt_pl.qm...
      Creating qt_pt_BR.qm...
      Creating qt_ru.qm...
      Creating qt_sk.qm...
      Creating qt_tr.qm...
      Creating qt_uk.qm...
      Creating qt_zh_CN.qm...
      Creating qt_zh_TW.qm...
      PS C:\Qt\6.3.1\mingw_64\bin>
      
      
      

      In my release folder, Some new files were created:
      c45d3819-487f-4ffc-b228-4b9ddb03df6e-image.png

      I have tried to launch UTB_gui and get the following error:

      c053923b-8f98-4408-9267-519576349300-image.png

      Could someone clarify to me what could be the issue here?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @lukutis222 last edited by

        @lukutis222 Seems like you also need to copy libgcc_s_seh-1.dll into your app folder.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        L 1 Reply Last reply Reply Quote 0
        • L
          lukutis222 @jsulm last edited by

          @jsulm
          I figured that much. Is there any particular reason why I need to manually copy this file while others do not need to do that?

          Also, do you know where can I find this dll file?

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @lukutis222 last edited by jsulm

            @lukutis222 I don't know why it is not copied.
            You can find it in your MinGW installation, simply search for it in Windows Explorer.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            L 1 Reply Last reply Reply Quote 0
            • L
              lukutis222 @jsulm last edited by

              @jsulm
              I got it to work. Thank you very much :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post