Deploying Qt C++ Application from Visual Studio qwindows.dll error

后端 未结 3 536
囚心锁ツ
囚心锁ツ 2020-12-10 15:58

I\'ve been googling for a solution to this issue and although I\'ve found many people sharing my problem none of their solutions work for me.

I wrote a C++ applicati

相关标签:
3条回答
  • 2020-12-10 16:33

    The release is likely missing a library/plugin or the library is in the wrong directory and or from the wrong directory.

    Qt intended answer: Use windeployqt.

    Qt comes with platform console applications that will add all dependencies (including ones like qwindows.dll and libEGL.dll) into the folder of your deployed executable. This is the intended way to deploy your application, so you do not miss any libraries (which is the main issue with all of these answers). The application for windows is called windeployqt. There is likely a deployment console app for each OS.

    0 讨论(0)
  • 2020-12-10 16:43

    If you are using libGLESv2.dll, then you must include libEGL.dll, too. You can't see that in depends.exe, don't know how the Qt developers managed to hide this. If your Qt is out of the box, then both Dlls are necessary even if you are not using OpenGL.

    Also, if your Qt is out of the box, you need to include also the three ic*.dll, which contain information for Unicode handling.

    0 讨论(0)
  • 2020-12-10 16:53

    You can see which DLLs are needed by looking at which ones are invoked when running Debug (F5) in Qt Creator. =Carl

    0 讨论(0)
提交回复
热议问题