According to the information on the Internet, the static version has been released successfully. Because a DLL file I use still depends on the core DLL file of QT, therefore, you still need to package several DLL files of QT to compile static files. The deploy static version is meaningless. I tried to release the dynamic link library version today and encountered a problem.
The imageformats and codecs directories are created under the program running directory, and relevant plugin DLL files are copied in. The program running still cannot display jpg images. Chinese characters are garbled. Obviously, plugin does not work. You can search the networks and QT assistants, and cannot solve the problem. If/qcoreapplication: addlibrarypath (qcoreapplication: applicationdirpath () + "/plugins") is used, this does not take effect.
Check the DLL on which my EXE file depends according to the dependency Walker tool recommended by QT assistant. No problem is found. Using the 360safe process viewer found that the EXE file is still dependent on the libgcc_s_dw2-1.dll, from the bin directory of QT to copy this file, the program runs normally.
I guess that the plug-in of qt4.6.0 needs to start the DLL file.
Where can I check similar materials?