Program developed with Qt crashes at startup on some Windows machines?



  • This post is deleted!

  • Moderators

    Sounds like a usual Windows deployment problem. Go through the list:

    • make sure you run Dependency Walker on the problematic machine and in profile mode, not just a static preview.
    • confirm that you're not mixing debug and release dlls
    • confirm that you're not mixing dll versions (happens often when you update to new version), you can check the version in the property page of your dlls
    • confirm that you're deploying compiler specific runtime dlls (some computers might have them already installed by other software which would explain your symptoms)
    • confirm that the plugins are not placed in plugins subdirectory (common mistake)
    • make sure there's no Qt in the PATH environment variable on neither your nor the problematic machine
    • if you can, post here a file listing or a screenshot of your deployment folder


  • @Chris-Kawa Thank you very much for replying!
    I was unable to attach an image so typing the folder structure here:

    C:\Program Files\MyApp\bin\libgcc_s_seh-1.dll
    C:\Program Files\MyApp\bin\libstdc++-6.dll
    C:\Program Files\MyApp\bin\libwinpthread-1.dll
    C:\Program Files\MyApp\bin\Qt5Core.dll
    C:\Program Files\MyApp\bin\Qt5Gui.dll
    C:\Program Files\MyApp\bin\Qt5Network.dll
    C:\Program Files\MyApp\bin\Qt5Widgets.dll
    C:\Program Files\MyApp\bin\MyApp.exe
    C:\Program Files\MyApp\bin\platforms\qwindows.dll

    I will try to use dependency walker on one of the affected computers later today, as I do not have access right now.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.