QT5 Publishing an EXE application under Windows cannot be performed by an issue solution

Source: Internet
Author: User

This solution focuses on solving the error as follows:

This application have requested the Runtime to terminate it on an unusual.

The error.

That

The error is that when a QT5 application is published, it is necessary to bring some. dll files to the file path where the EXE resides, such as:

Especially the platforms folder, to run under the Windows system, you must add this folder, and the name must be platforms, which should contain: Qminimald.dll and qwindowsd.dll two files, these. dll files in \qt\qt\5.3\mingw482_32\bin can be found under the drive letter, either copy them to the EXE path, or you will change the system path, So that EXE can find it to run the. dll file, change path I have not yet tried, and later try to update it.

Also, do not copy these. dll files to C:\Windows\System32, such as Libstdc++-6.dll, if you copy this file to System32, then you write the C + + program will not run, So do not put the system. dll files in place.

Also, when your application loads a file in the format of a response such as PNG, ICO, JPG, you need the appropriate plug-in support, you need to create a new plug-in DLL named Imageformats folder in the application directory and add a response. For example: If the program inside the ICO format icon file, you need to add qico.dll, otherwise, the program will not show the icon file when running.

Hopefully this solution will help you to answer your doubts.

QT5 Publishing an EXE application under Windows cannot be performed by an issue solution

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.