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. Crushes after deploying!
QtWS25 Last Chance

Crushes after deploying!

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
windowsdeploymentruntimedependenciesvcredist
10 Posts 3 Posters 5.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.
  • T Offline
    T Offline
    tansgumus
    wrote on 6 Aug 2017, 10:29 last edited by tansgumus 8 Jun 2017, 10:55
    #1

    Hello,

    My app crushes after deployment process because of runtime problem under windows 7 x64

    Using Dependency Walker I get these errors:

    [D? ]  API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL         Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL         Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-L1-1-0.DLL               Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL      Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL        Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL           Error opening file. The system cannot find the file specified (2).
    [D? ]  DCOMP.DLL                                      Error opening file. The system cannot find the file specified (2).
    [D? ]  GPSVC.DLL                                      Error opening file. The system cannot find the file specified (2).
    [D? ]  IESHIMS.DLL                                    Error opening file. The system cannot find the file specified (2).
    

    So I installed Visual C++ Redistributable for Visual Studio 2015 (shipped with Qt 5.9.1) but it didn't fix the issue.
    I tried to install Visual C++ Redistributable for Visual Studio 2017 (vc_redist.x86). Once again it didn't fix the issue :(

    May you please help me for creating a valid deployment.

    NOTE:

    • You can find full Dependency Walker log in this link
    • My app run perfectly just in case I run it in a machine has installed Qt!
    1 Reply Last reply
    0
    • T Offline
      T Offline
      tansgumus
      wrote on 6 Aug 2017, 10:59 last edited by
      #2

      I forgot to post my deployed package:

      .
      ├── audio
      │   └── qtaudio_windows.dll
      ├── bearer
      │   ├── qgenericbearer.dll
      │   └── qnativewifibearer.dll
      ├── canbus
      │   ├── qtpeakcanbus.dll
      │   ├── qtsysteccanbus.dll
      │   ├── qttinycanbus.dll
      │   └── qtvectorcanbus.dll
      ├── designer
      │   ├── qaxwidget.dll
      │   └── qquickwidget.dll
      ├── gamepads
      ├── generic
      │   └── qtuiotouchplugin.dll
      ├── geometryloaders
      │   ├── defaultgeometryloader.dll
      │   └── gltfgeometryloader.dll
      ├── geoservices
      │   ├── qtgeoservices_esri.dll
      │   ├── qtgeoservices_itemsoverlay.dll
      │   ├── qtgeoservices_mapbox.dll
      │   ├── qtgeoservices_mapboxgl.dll
      │   ├── qtgeoservices_nokia.dll
      │   └── qtgeoservices_osm.dll
      ├── iconengines
      │   └── qsvgicon.dll
      ├── imageformats
      │   ├── qgif.dll
      │   ├── qicns.dll
      │   ├── qico.dll
      │   ├── qjpeg.dll
      │   ├── qsvg.dll
      │   ├── qtga.dll
      │   ├── qtiff.dll
      │   ├── qwbmp.dll
      │   └── qwebp.dll
      ├── libEGL.dll
      ├── libgcc_s_dw2-1.dll
      ├── libGLESv2.dll
      ├── libmysql.dll
      ├── libstdc++-6.dll
      ├── libwinpthread-1.dll
      ├── mediaservice
      │   ├── dsengine.dll
      │   └── qtmedia_audioengine.dll
      ├── opengl32sw.dll
      ├── platforminputcontexts
      │   └── qtvirtualkeyboardplugin.dll
      ├── platforms
      │   ├── qminimal.dll
      │   ├── qoffscreen.dll
      │   └── qwindows.dll
      ├── playlistformats
      │   └── qtmultimedia_m3u.dll
      ├── position
      │   ├── qtposition_geoclue.dll
      │   ├── qtposition_positionpoll.dll
      │   └── qtposition_serialnmea.dll
      ├── Chekcer.exe
      ├── printsupport
      │   └── windowsprintersupport.dll
      ├── qmltooling
      │   ├── qmldbg_debugger.dll
      │   ├── qmldbg_inspector.dll
      │   ├── qmldbg_local.dll
      │   ├── qmldbg_messages.dll
      │   ├── qmldbg_nativedebugger.dll
      │   ├── qmldbg_native.dll
      │   ├── qmldbg_profiler.dll
      │   ├── qmldbg_quickprofiler.dll
      │   ├── qmldbg_server.dll
      │   └── qmldbg_tcp.dll
      ├── Qt53DAnimation.dll
      ├── Qt53DCore.dll
      ├── Qt53DExtras.dll
      ├── Qt53DInput.dll
      ├── Qt53DLogic.dll
      ├── Qt53DQuickAnimation.dll
      ├── Qt53DQuick.dll
      ├── Qt53DQuickExtras.dll
      ├── Qt53DQuickInput.dll
      ├── Qt53DQuickRender.dll
      ├── Qt53DRender.dll
      ├── Qt5Bluetooth.dll
      ├── Qt5Charts.dll
      ├── Qt5Concurrent.dll
      ├── Qt5Core.dll
      ├── Qt5DataVisualization.dll
      ├── Qt5DBus.dll
      ├── Qt5DesignerComponents.dll
      ├── Qt5Designer.dll
      ├── Qt5Gui.dll
      ├── Qt5Help.dll
      ├── Qt5Location.dll
      ├── Qt5Multimedia.dll
      ├── Qt5MultimediaQuick_p.dll
      ├── Qt5MultimediaWidgets.dll
      ├── Qt5NetworkAuth.dll
      ├── Qt5Network.dll
      ├── Qt5Nfc.dll
      ├── Qt5OpenGL.dll
      ├── Qt5Positioning.dll
      ├── Qt5PrintSupport.dll
      ├── Qt5Purchasing.dll
      ├── Qt5Qml.dll
      ├── Qt5QuickControls2.dll
      ├── Qt5Quick.dll
      ├── Qt5QuickParticles.dll
      ├── Qt5QuickTemplates2.dll
      ├── Qt5QuickTest.dll
      ├── Qt5QuickWidgets.dll
      ├── Qt5RemoteObjects.dll
      ├── Qt5Scxml.dll
      ├── Qt5Sensors.dll
      ├── Qt5SerialBus.dll
      ├── Qt5SerialPort.dll
      ├── Qt5Sql.dll
      ├── Qt5Svg.dll
      ├── Qt5Test.dll
      ├── Qt5TextToSpeech.dll
      ├── Qt5WebChannel.dll
      ├── Qt5WebSockets.dll
      ├── Qt5Widgets.dll
      ├── Qt5WinExtras.dll
      ├── Qt5Xml.dll
      ├── Qt5XmlPatterns.dll
      ├── renderplugins
      ├── sceneparsers
      │   ├── assimpsceneimport.dll
      │   ├── gltfsceneexport.dll
      │   └── gltfsceneimport.dll
      ├── sensorgestures
      │   ├── qtsensorgestures_plugin.dll
      │   └── qtsensorgestures_shakeplugin.dll
      ├── sensors
      │   └── qtsensors_generic.dll
      ├── sqldrivers
      │   ├── qsqlite.dll
      │   ├── qsqlmysql.dll
      │   ├── qsqlodbc.dll
      │   └── qsqlpsql.dll
      ├── texttospeech
      │   └── qtexttospeech_sapi.dll
      └── vcredist_msvc2015_x86.exe
      
      23 directories, 123 files
      
      K 1 Reply Last reply 6 Aug 2017, 11:08
      0
      • T tansgumus
        6 Aug 2017, 10:59

        I forgot to post my deployed package:

        .
        ├── audio
        │   └── qtaudio_windows.dll
        ├── bearer
        │   ├── qgenericbearer.dll
        │   └── qnativewifibearer.dll
        ├── canbus
        │   ├── qtpeakcanbus.dll
        │   ├── qtsysteccanbus.dll
        │   ├── qttinycanbus.dll
        │   └── qtvectorcanbus.dll
        ├── designer
        │   ├── qaxwidget.dll
        │   └── qquickwidget.dll
        ├── gamepads
        ├── generic
        │   └── qtuiotouchplugin.dll
        ├── geometryloaders
        │   ├── defaultgeometryloader.dll
        │   └── gltfgeometryloader.dll
        ├── geoservices
        │   ├── qtgeoservices_esri.dll
        │   ├── qtgeoservices_itemsoverlay.dll
        │   ├── qtgeoservices_mapbox.dll
        │   ├── qtgeoservices_mapboxgl.dll
        │   ├── qtgeoservices_nokia.dll
        │   └── qtgeoservices_osm.dll
        ├── iconengines
        │   └── qsvgicon.dll
        ├── imageformats
        │   ├── qgif.dll
        │   ├── qicns.dll
        │   ├── qico.dll
        │   ├── qjpeg.dll
        │   ├── qsvg.dll
        │   ├── qtga.dll
        │   ├── qtiff.dll
        │   ├── qwbmp.dll
        │   └── qwebp.dll
        ├── libEGL.dll
        ├── libgcc_s_dw2-1.dll
        ├── libGLESv2.dll
        ├── libmysql.dll
        ├── libstdc++-6.dll
        ├── libwinpthread-1.dll
        ├── mediaservice
        │   ├── dsengine.dll
        │   └── qtmedia_audioengine.dll
        ├── opengl32sw.dll
        ├── platforminputcontexts
        │   └── qtvirtualkeyboardplugin.dll
        ├── platforms
        │   ├── qminimal.dll
        │   ├── qoffscreen.dll
        │   └── qwindows.dll
        ├── playlistformats
        │   └── qtmultimedia_m3u.dll
        ├── position
        │   ├── qtposition_geoclue.dll
        │   ├── qtposition_positionpoll.dll
        │   └── qtposition_serialnmea.dll
        ├── Chekcer.exe
        ├── printsupport
        │   └── windowsprintersupport.dll
        ├── qmltooling
        │   ├── qmldbg_debugger.dll
        │   ├── qmldbg_inspector.dll
        │   ├── qmldbg_local.dll
        │   ├── qmldbg_messages.dll
        │   ├── qmldbg_nativedebugger.dll
        │   ├── qmldbg_native.dll
        │   ├── qmldbg_profiler.dll
        │   ├── qmldbg_quickprofiler.dll
        │   ├── qmldbg_server.dll
        │   └── qmldbg_tcp.dll
        ├── Qt53DAnimation.dll
        ├── Qt53DCore.dll
        ├── Qt53DExtras.dll
        ├── Qt53DInput.dll
        ├── Qt53DLogic.dll
        ├── Qt53DQuickAnimation.dll
        ├── Qt53DQuick.dll
        ├── Qt53DQuickExtras.dll
        ├── Qt53DQuickInput.dll
        ├── Qt53DQuickRender.dll
        ├── Qt53DRender.dll
        ├── Qt5Bluetooth.dll
        ├── Qt5Charts.dll
        ├── Qt5Concurrent.dll
        ├── Qt5Core.dll
        ├── Qt5DataVisualization.dll
        ├── Qt5DBus.dll
        ├── Qt5DesignerComponents.dll
        ├── Qt5Designer.dll
        ├── Qt5Gui.dll
        ├── Qt5Help.dll
        ├── Qt5Location.dll
        ├── Qt5Multimedia.dll
        ├── Qt5MultimediaQuick_p.dll
        ├── Qt5MultimediaWidgets.dll
        ├── Qt5NetworkAuth.dll
        ├── Qt5Network.dll
        ├── Qt5Nfc.dll
        ├── Qt5OpenGL.dll
        ├── Qt5Positioning.dll
        ├── Qt5PrintSupport.dll
        ├── Qt5Purchasing.dll
        ├── Qt5Qml.dll
        ├── Qt5QuickControls2.dll
        ├── Qt5Quick.dll
        ├── Qt5QuickParticles.dll
        ├── Qt5QuickTemplates2.dll
        ├── Qt5QuickTest.dll
        ├── Qt5QuickWidgets.dll
        ├── Qt5RemoteObjects.dll
        ├── Qt5Scxml.dll
        ├── Qt5Sensors.dll
        ├── Qt5SerialBus.dll
        ├── Qt5SerialPort.dll
        ├── Qt5Sql.dll
        ├── Qt5Svg.dll
        ├── Qt5Test.dll
        ├── Qt5TextToSpeech.dll
        ├── Qt5WebChannel.dll
        ├── Qt5WebSockets.dll
        ├── Qt5Widgets.dll
        ├── Qt5WinExtras.dll
        ├── Qt5Xml.dll
        ├── Qt5XmlPatterns.dll
        ├── renderplugins
        ├── sceneparsers
        │   ├── assimpsceneimport.dll
        │   ├── gltfsceneexport.dll
        │   └── gltfsceneimport.dll
        ├── sensorgestures
        │   ├── qtsensorgestures_plugin.dll
        │   └── qtsensorgestures_shakeplugin.dll
        ├── sensors
        │   └── qtsensors_generic.dll
        ├── sqldrivers
        │   ├── qsqlite.dll
        │   ├── qsqlmysql.dll
        │   ├── qsqlodbc.dll
        │   └── qsqlpsql.dll
        ├── texttospeech
        │   └── qtexttospeech_sapi.dll
        └── vcredist_msvc2015_x86.exe
        
        23 directories, 123 files
        
        K Offline
        K Offline
        koahnig
        wrote on 6 Aug 2017, 11:08 last edited by
        #3

        @tansgumus

        Is your development OS also Windows 7 64 bit?

        Vote the answer(s) that helped you to solve your issue(s)

        T 1 Reply Last reply 6 Aug 2017, 11:09
        2
        • K koahnig
          6 Aug 2017, 11:08

          @tansgumus

          Is your development OS also Windows 7 64 bit?

          T Offline
          T Offline
          tansgumus
          wrote on 6 Aug 2017, 11:09 last edited by
          #4

          @koahnig said in Crushes after deploying!:

          @tansgumus

          Is your development OS also Windows 7 64 bit?

          yes

          K 1 Reply Last reply 6 Aug 2017, 11:13
          1
          • T tansgumus
            6 Aug 2017, 11:09

            @koahnig said in Crushes after deploying!:

            @tansgumus

            Is your development OS also Windows 7 64 bit?

            yes

            K Offline
            K Offline
            koahnig
            wrote on 6 Aug 2017, 11:13 last edited by
            #5

            @tansgumus

            In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

            Other than that, did you install these dlls in the same folder as the .exe?

            Since I am not using msvc anymore, I am probably of no further help here.

            Vote the answer(s) that helped you to solve your issue(s)

            T 1 Reply Last reply 6 Aug 2017, 11:19
            1
            • K koahnig
              6 Aug 2017, 11:13

              @tansgumus

              In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

              Other than that, did you install these dlls in the same folder as the .exe?

              Since I am not using msvc anymore, I am probably of no further help here.

              T Offline
              T Offline
              tansgumus
              wrote on 6 Aug 2017, 11:19 last edited by tansgumus 8 Jun 2017, 11:20
              #6

              @koahnig said in Crushes after deploying!:

              @tansgumus

              In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

              I don't use MSVC. I use Qt open source version which means I use MinGW (already shipped with Qt for Windows)

              K 1 Reply Last reply 6 Aug 2017, 12:14
              0
              • T tansgumus
                6 Aug 2017, 11:19

                @koahnig said in Crushes after deploying!:

                @tansgumus

                In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

                I don't use MSVC. I use Qt open source version which means I use MinGW (already shipped with Qt for Windows)

                K Offline
                K Offline
                koahnig
                wrote on 6 Aug 2017, 12:14 last edited by
                #7

                @tansgumus

                Ah, sorry. My fault.

                Did you check out with dependency walker on your development machine?
                I guess you see the same error messages.

                Those seem to be the standard error messages nowadays for dependency walker.

                Do you see another error message?
                Or does your app simply crash?

                Vote the answer(s) that helped you to solve your issue(s)

                T 1 Reply Last reply 6 Aug 2017, 20:23
                0
                • K koahnig
                  6 Aug 2017, 12:14

                  @tansgumus

                  Ah, sorry. My fault.

                  Did you check out with dependency walker on your development machine?
                  I guess you see the same error messages.

                  Those seem to be the standard error messages nowadays for dependency walker.

                  Do you see another error message?
                  Or does your app simply crash?

                  T Offline
                  T Offline
                  tansgumus
                  wrote on 6 Aug 2017, 20:23 last edited by
                  #8

                  @koahnig said in Crushes after deploying!:

                  Do you see another error message?

                  No

                  Or does your app simply crash?

                  Simply crashes

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hskoglund
                    wrote on 6 Aug 2017, 21:07 last edited by
                    #9

                    Hi, googling finds many with the same problem, for example here
                    Just guessing, but perhaps you could try some of the suggestions in there...

                    T 1 Reply Last reply 8 Aug 2017, 09:40
                    1
                    • H hskoglund
                      6 Aug 2017, 21:07

                      Hi, googling finds many with the same problem, for example here
                      Just guessing, but perhaps you could try some of the suggestions in there...

                      T Offline
                      T Offline
                      tansgumus
                      wrote on 8 Aug 2017, 09:40 last edited by
                      #10

                      @hskoglund said in Crushes after deploying!:

                      Hi, googling finds many with the same problem, for example here
                      Just guessing, but perhaps you could try some of the suggestions in there...

                      Thanks for the link.
                      It seems this issue doesn't even solved in Stack Overflow :(

                      Any way, I did some of the suggestions mentioned in it.

                      1. Installed all redistributable package of x86 (cuz I built my app using Qt mingw53_32) for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist)
                      2. Installed all redistributable package of x64 for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist)

                      Nothing changed still see my app crashes without any logical reason!

                      Now I'm very sad because I can run my app only if I installed Qt on my machine which is impractical solution for deploying my app.

                      1 Reply Last reply
                      0

                      9/10

                      6 Aug 2017, 21:07

                      • Login

                      • Login or register to search.
                      9 out of 10
                      • First post
                        9/10
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved