Win10 can't run Qt program prompt "No mingwm10.dll found" What should I do?

  

Qt is a C++ graphical user interface application that is essential for Qt4 programmers. Recently, when a user double-clicks the *.exe file generated by Qt compilation under Win10 system, the system prompts: "I don't find mingwm10.dll", what should I do? Let's take a look at the specific solution.

First, the stopgap solution:

generated exe file copying \\ ** \\ qt under the \\ bin directory, and then double-click to run.

Second, the solution to the problem:

Add the path of the dll file on which the exe file depends to the environment variable of the operating system.

In general, Qt4 Gui programs rely on QtCore4.dll, QtGui4.dll and mingwm10.dll files, so add the path to these files to the environment variable.

Take Qt4.5.3 as an example. The specific method is: My Computer - "Properties - "Advanced -" environment variable, ""C:\\Qt\\2009.04\\mingw\\bin;C:\\Qt\\ 2009.04\\qt\\bin is added to the variable value of PATH, as shown below, and then press OK. You don't have to restart your computer. Double click on the exe file to run it.

Note: The above is Qt4.5.3 for example, where C: \\ Qt \\ 2009.04 should be replaced by your Qt installation path.

The order of the PATH values ​​is also influential. If it is reported, "Unable to locate the program input point _Z5qFreePV on the dynamic link library QtCore.dll" is that the order of these paths is a problem, please refer to the article on the Internet, it is easy to solve.

If a similar message is also reported, then the path to the dependent dll is not added to the PATH.

The above is Win10 can not run Qt program prompts "do not find mingwm10.dll" solution, if you encounter this error in the Win10 system running Qt program, follow the tutorial steps to solve.

Copyright © Windows knowledge All Rights Reserved