Qt exe file generation

        When we don't want others to see the source code and only allow others to use it, we can package our project into an .exe file to run independently. The packaged software does not need to be in the configuration environment, DLL placement and other issues.       

        After the Qt project is completed normally, an exe file will be generated in the folder, but the following error will occur when changing the file, and it cannot be used directly.

         We need to do something about this:

① First open the folder where the project is located to find the corresponding exe file.

②Copy it to an empty folder for subsequent sending to others for application, and copy the path.

          

③Open Qt 5.9.9 (MinGW 5.3.0 32-bit), and note that the name is consistent with the one displayed in the project folder.

④ Enter the code in Qt 5.9.9 (MinGW 5.3.0 32-bit):

cd bin
windeployqt 之前复制的路径

⑤ After waiting for the end of the operation, double-click the exe file in the folder to run it. 

 

Guess you like

Origin blog.csdn.net/weixin_58351753/article/details/127459838