Qt Compile in Release Mode

When try to running my Qt execution program, I have error message like “the program can’t start because QtCored4.dll is missing…

The Qt file with  “…d..” is a debug file requirement.
This error showed, because we compile our code in Debug mode. We need to change our *.pro file to make Qt Compile in Release mode. Please add this line :

CONFIG += release
CONFIG -=debug
CONFIG -=debug_and_release

and compile our code again with command “qmake” and “make”

This method will change our Qt Compile in release mode.

Add a Comment

Your email address will not be published. Required fields are marked *