The visual sdudio + Qt5.12 made packaged into a single exe

On GitHub downloaded a qt program, less likely because the C ++, qt after installation, modification and a series of encoding operations can finally run.

Exe generated at runtime dependency dll or many image files directly copied to not run on another computer, you may rely on a packaged into a single exe dll file, as follows.

tool: 

1. Enigma Virtual Box virtual file packaging tool

2.Qt 5.12.3 (MSVC 2017 64-bit) 

Automatic tape are the mounting Qt.

 

 

 

step:

1. visual studio compile the release version of the exe file

 

 

 After debug build release folder, which by the target exe file.

 

 

 2. Copy this file to another target exe empty folder

 

 

 3. This exe dependent dll file Qt 5.12.3 (MSVC 2017 64-bit) to pull the document 00

Open Qt 5.12.3 (MSVC 2017 64-bit), a command prompt is:

 

 

 Change directory to 00 folders, perform windeployqt flowers.exe (target exe files), this will be dependent dll pulled into this folder.

 

 After executing folder contents:

 

 Click flowers.exe after pulling finished dll is executed, if not pull unenforceable, suggested that the lack dll.

4. Enigma Virtual Box tool flowers.exe dependent dll and packaged into a single file exe

Enigma Virtual Box open the tool, select the exe and dll dependencies to be packaged:

 

 

 

 Central exe file folder remove:

 

 Check compression options:

 

 5. Run packing

Click on the bottom right of the packaging, packaging tools to complete exit.

 

 

Then there will be a folder does not rely on a single dll exe file, so that you can copy directly to a single exe to run on other computers.

 

Guess you like

Origin www.cnblogs.com/panda-blog/p/12307986.html