Qt environment variable configuration, error resolution

Qt environment variable configuration and error resolution

Before running the exe file generated by Qt, the computer environment variables need to be configured, otherwise an error will be reported, and the dll file is missing.

Cannot continue to execute code because qt5cored.dll cannot be found
Unable to locate program input point
Unable to locate program input point_ZdaPvj in dynamic link library

The solution is as follows:
Right-click "This Computer", select Properties, search for "Environment Variables" in the search bar, and select "Edit System Environment Variables", as shown in the figure below: Click

Environment Variables:

Be sure to pay attention here, select Path in the system variables , and click Edit

Add Qt environment variables, and fill in the bin folder under the Qt installation directory (here, find the path according to your installation directory, just copy and paste) **Note: Be sure to put mingw53_32\bin first, or move all Qt environment variables up, otherwise an error will be reported**

So far, the environment variables have been added, and the Qt program can be run happily!

Guess you like

Origin blog.csdn.net/qq_31460605/article/details/124695305
Recommended