Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

windeploy misses libgcc_s_seh-1.dll



  • Hello
    I've built a QtQuick application using Desktop Qt 5.12.6 MinGW 64 bits toolkit.
    The application of course works well when I launch it from Qt creator but I now want to use it as standalone application.

    I tried to use Qt\5.12.6\mingw73_64\bin\windeployqt.exe --quick . but when I try to execute it, I get a dialog because libgcc_s_seh-1.dll is not found.

    Here are the copied dlls:

    11/03/2014  11:54         4 173 928 D3Dcompiler_47.dll
    09/11/2019  20:59            30 328 libEGL.dll
    12/05/2018  02:28           116 238 libgcc_s_dw2-1.dll
    09/11/2019  20:59         3 982 456 libGLESV2.dll
    12/05/2018  02:28         1 557 006 libstdc++-6.dll
    12/05/2018  02:28            47 104 libwinpthread-1.dll
    14/06/2016  13:00        20 923 392 opengl32sw.dll
    27/12/2019  18:32         6 395 512 Qt5Core.dll
    09/11/2019  20:59         6 519 416 Qt5Gui.dll
    09/11/2019  20:59         1 716 344 Qt5Network.dll
    09/11/2019  21:29         4 210 296 Qt5Qml.dll
    09/11/2019  21:29         4 111 992 Qt5Quick.dll
    09/11/2019  21:09           352 888 Qt5Svg.dll
    09/11/2019  20:59         5 661 304 Qt5Widgets.dll                                                                                                                                                
    

    I tried to find and copy libgcc_s_seh-1.dll by hand from Qt\Tools\mingw730_64\opt\bin or Qt\Tools\mingw730_64\bin or Qt\Tools\mingw730_64\x86_64-w64-mingw32\lib but the application crashes.

    What to do?



  • It's probably missing some other dll. Use the tool bellow to check for all your dependencies.

    http://www.dependencywalker.com/



  • @AlainBo said in windeploy misses libgcc_s_seh-1.dll:

    Qt\5.12.6\mingw73_64\bin\windeployqt.exe --quick .

    So I used dependency walker and it also finds libgcc_s_seh-1.dll as direct dependency. dependency

    So I don't understand why windeploy doesn't see it?

    I tried to execute windeploy with verbose level 2 and nothing more about that lib.

    Regards,



  • I gave up using windeploy long ago. Put libgcc_s_seh-1.dll in the same directory as your .exe and run Dependency Walker again. Now you should pay attention to the dependencies of your dependencies. Maybe libgcc_s_seh-1.dll itself requires another dll, or maybe one of your Qt dlls does.


Log in to reply