QT Compile run error-cannot start this application because the computer is missing XXX.dll

Source: Internet
Author: User
Objective

The problem stems from the time I got back to the old computer when I was ready to write a QT application, and there were many similar solutions on the web. I also learn from others here. , but here, bloggers want to add something to their articles. OK, first look at the phenomenon of the problem:


The reason for this problem is that QT has failed to load the dynamic library when compiling the link dynamic library. Because the QT creator default value is dynamically linked, you need to link the dynamic library (. dll file) When you run the application. The cause of this problem is that the QT installation is incorrect or the environment variable is not configured correctly. workaround Place the corresponding XXX.dll file generated by the QT installation into the system directory: the 32-bit operating system is placed under the "C:\Windows\System32" directory, and the 64-bit operating system is placed in the "C:\Windows\SysWO W64 "directory; for example, my QT is installed in D:\ Under the qt-5.4.2 directory, copy all the XXX.dll files from the XXX.dll dynamic library under the Bin folder under the Qt-creator folder and the bin file in the MinGW compiler directory to the directory described above, as shown in the following figure:


OK, this way you can recompile and run your QT application.

Related Article

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.