Problems with the QT creator environment upgrade ~ Exited with code-1073741511

Source: Internet
Author: User

Because I want to take a postgraduate entrance exam, QT has been put down for a long time. In the past few days, the teacher has something to do. No way, I have to wait for a while...

After cooperating with others for development, many problems still occurred in the original environment. Today, the development environment has been upgraded. After all, it is still a newbie and has encountered many problems...

First:

[Starting D:/QT/myproj/client-Build-desktop/release/client.exe... d:/QT/myproj/client-Build-desktop/release/client.exe exited
With code-1073741511]

I encountered this problem when I checked the Internet: "I just uninstalled QT SDK 2009.01, installed a new version of the SDK, and then re-compiled the program with the new SDK, it is found that the compilation is successful, but it is automatically disabled when the executable file is executed. I checked it online and said it was a problem with the dynamic link library. In the online tutorial, add C:/QT/2010.04/QT/bin to the path of the system environment variable. However, the problem has not been solved (
There is a project on the left of the Creator, which can set the system environment, so you don't need to add the system environment yourself ). Later, I created a new project and then compiled and executed it. The error still exists. Finally, I wanted to go over some common libraries (such as qtgui) of QT for convenience. DLL, etc.) copied to the System32 folder, so when it is compiled and used, qt2009is used for execution. The problem is solved after the old QT dynamic link library in system32 is deleted.

Http://ess07615.blog.163.com/blog/static/5177271120108610124980/

"

I suddenly encountered this problem when I was just learning it.

"The program compiled by QT creator has a debug under its project folder.
Folder where the program's. EXE executable file exists. However, QT creator uses dynamic links by default,
The. dll file is required when the executable program is running. Click the generated .exe file, first
It may first display "mingwm10.dll not found, so this application failed to start"

So I put all the missing files in the C:/Windows/system directory. Then, when I reconfigure the environment, a problem occurs: "QT cannot mix incompatible QT Library (version 0x40602) with this library (version ox40703)" is because the library files of the previous SDK are incompatible with the new library files.

Solution: Find the files that were previously copied to the system folder (I used to do this, but it may be the modified environment variables). Fortunately, I made a record during my study:

Libgcc_s_dw2-1.dll
Qtcored4.dll... (Two)
Qtguid4.dll... (Two)
Mingwm10.dll

These files, kill

Then, if it is not too troublesome, you can put these files in the bin directory of the new version under the system file again (this problem may occur in the next upgrade). I will accept the suggestions directly, directly modify the environment variable C:/QT/4.7.3/bin

That's all...

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.