开发者

Missing mingwm10.dll

I am coding a c++ project with Qt Creator. Everything is working fine (debug, release), but when I run the compiled .exe directly (go to exe file and run it) it says mingwm10.dll is missing.

What can I do about this proble开发者_如何学Gom?


Here is what you could do:

  • as chalup said, place you MINGW bin directory to you local/global PATH variable like that: My Computer|System Properties|Advenced|Environment Variables|System variables - select PATH string and press Edit button. After dialog appeared, add something like that - C:\MinGW\bin

  • Build you app without mingw, for example with Qt libraries 4.6.3 for Windows (VS 2008, 194 MB)

  • Just place mingwm10.dll into the directory with your executable file


You need to add the location of mingwm10.dll to your environment PATH variable.


You could also build your app statically if you want your application to function as a standalone .exe file.

http://www.formortals.com/how-to-statically-link-qt-4/


If you use Qt as LGPL, you should better accept a few DLLs with your EXE. It's not so bad, actually. Else you are free to compile Qt as a static library or to use Microsoft compilers. Removing "-mthreads" in all makefiles may help, byt may not, especially if you use exceptions between threads.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜