Win10 system running Qt program prompts did not find mingwm10.dll solution

  

Recent feedback from Qt4 programmers recently. Win10 system running Qt program prompts “ did not find mingwm10.dll” What should I do? They said that they double-clicked the *.exe file generated by Qt compilation, but they reported an error <; mingwm10.dll was not found, so this program failed to start. Reinstalling the app may fix this issue", how do I fix this? Below, Xiaobian will introduce you to two solutions to this problem. Let's go and have a look!

First, the solution to the symptoms:

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

Two: 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, the Qt4 Gui program relies 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-> Attribute->Advanced-> Environment Variable, and "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 an example of Qt4.5.3, where C:\\Qt\\2009.04 should be replaced with your Qt installation path.

Note that 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 content is Xiaobian for everyone to bring about the win10 system running Qt program prompts did not find mingwm10.dll” problem solution. You can choose one of the methods to operate according to your needs! Hope can help everyone!

Copyright © Windows knowledge All Rights Reserved