Discuss the release of QT program in windows, libgcc_s_dw2-1.dll is very important

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.