Exe file does not run without QtCreator

你。 提交于 2019-11-27 13:18:46

Put your executable in a neutral directory, like a freshly created one your desktop. Then run dependency walker. It will show you the list of missing libraries. For a start Qt5Core.dll, libgcc_s_sjlj-1.dll and the one you specified will be one of the missing. You have to find them on your system, and copy one by one to this directory. Most of the missing will be in the directory you specified (C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin). If you cannot find the other ones edit the question with a list.

Note:

Types of missing files in the General case :

  • Qt libraries. If Qt was compiled as static, they should not appear
  • Misc libraries Qt depends on : OpenSSL for example. Not appearing if both Qt and this lib is static
  • Compiler libraries : ex, gcc libgcc_s_sjlj for the OP. They are usually dynamic and need to be copied if they are not already in the library search path.

Add "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin" to your path. Then the application should work.

Dont worry about the missing dll files. put your .exe file into the folder of this path : "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin"

you can run the .exe file now . it works fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!