当前位置:网站首页>QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial

QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial

2022-07-28 10:32:00 Bald but naturally

Qt Version
 Insert picture description here
Welcome to correct ~
Speak freely ~

One 、 take Debug Switch to Release, Recompile and run
 Insert picture description here
Two 、Release It will generate .exe file , stay project ——Build directory The directory of the generated files can be found in ( As shown in the figure below ), According to the directory, you can find .exe file .(.exe The file is in the release In the folder )
here .exe The file cannot be run , Because of the lack of Qt Components . Next we will Qt Components and .exe Put the files in a folder .
 Insert picture description here
3、 ... and 、 Create a new folder by yourself , Take what you found in the previous step .exe file copy To the new folder .
Pictured : I created a new folder on the desktop :105
 Insert picture description here
Four 、win10 Search under system Qt As shown in the figure below , Click to enter
 Insert picture description here
After entering, as shown in the figure
 Insert picture description here
5、 ... and 、 Enter the command line cd /d( Note blank space ) ,copy The newly created folder directory is pasted behind ( Note blank space ), enter
 Insert picture description here
6、 ... and 、 Enter the command line windeployqt + The program name , As shown in the figure
 Insert picture description here
7、 ... and 、 Go back to the new folder , appear Qt Library file . Now you can run .exe File without downloading Qt
 Insert picture description here
8、 ... and 、 download Enigma Virtual Box(baidu There is , Very small )

 Insert picture description here
The lower right corner “ file option ” Check the compressed file
 Insert picture description here
Select the main program with package ( That is, the above generated .exe file );
Select the save as path ;
Will need and .exe The file enclosed with the file is dragged into the middle , Directly drag the entire folder generated in the above steps . Pictured :
 Insert picture description here
Finally, execute the packet ,over!
As it comes ~
Praise it ~

原网站

版权声明
本文为[Bald but naturally]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207281015451276.html