Missing mingwm10.dll

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

What can I do with this problem?

+6
c ++ qt qt-creator
source share
4 answers

Here is what you could do:

  • as chalup said, put the MINGW bin directory in your local / global PATH variable: My computer | System Properties | Taken | Environment variables | System variables - select PATH and click Change . After the dialog appears, add something like this: C: \ MinGW \ bin

  • Create an application without mingw, for example Qt-library 4.6.3 for Windows (VS 2008, 194 MB)

  • Just put mingwm10.dll in the directory with the executable

+6
source share

You can also create your application statically if you want your application to function as a standalone .exe file.

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

+3
source share

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

+2
source share

If you use Qt as LGPL, you are better off accepting a few dlls with your exe. This is actually not so bad. Alternatively, you can compile Qt as a static library or use Microsoft compilers. Removing "-mthreads" in all makefiles can help, byt cannot, especially if you use exceptions between threads.

+1
source share

All Articles