Home > other >  Win10 own demo compiled by the program after install QT start failure
Win10 own demo compiled by the program after install QT start failure

Time:11-29

In win10 install QT MingW edition, 64 - bit system started installing 5.9.0, installed after the issuance of running QT's own Demo, to boot failure (the Debug and Release all the failure), and no error message, behind me in the Debug Debug mode, prompt "QT during startup program exited with code 0 xc0000139", find *. Exe folder, double-click directly run *. Exe software prompts lack QT5core. DLL related dynamic library,
Use the Internet, need to configure the environment variables:
Searched the two solutions:

Method one: to modify environment variables, under the environment variable Path join Qt installation file {QtVersion} \ mingw53_32 \ bin, for example, I'm going to install Qt5.11.2 under E dish, my Path is to E: \ Qt \ 5.11.2 \ mingw53_32 \ bin, reference QT5 can also generate. Exe file, a lack of QT5core. DLL solution, this article

Method 2: all missing. DLL a copy into the compiler generates a directory, the basic process is: try to run - & gt; Remember the name of the DLL - & gt; Sure -- & gt; Found in the install directory. DLL - & gt; Copy and paste - & gt; Try to run again... This cycle,

After solved the couldn't find it. DLL problem, try to run again, and a new pit:

According to the method for environment variable Settings

Click run, no questions to answer, then go to *. Exe folder, change this phenomenon, prompt "the generated executable (.exe) appear open can't locate the program input point in the dynamic link library QtCore5. DLL",

And to search the Internet, according to the QT generated exe can't locate the program input point in the dynamic link library error reason is that there are multiple MGWIN, each under MGWIN \ bin \ has a libstdc++ - 6. Don't know the access that DLL cause program. DLL,
There are two solutions:
Method one:
Or said in the following article, the correct libstdc++ - 6. DLL copied,
https://blog.csdn.net/ze_202020/article/details/78524264
Method 2:
About can't locate in Qt program input point a way of problem solving:
Premise: properly configured qt environment variable
Front, and then put the qt environment variables as far as possible to avoid the program mistake other environment variables contained in the qt libraries (such as my qt environment variables in the front of the codeblocks environment variables, the result is a tragedy, to hurt me for so long,)
Ps: if you are unsure which program and qt libraries, can try slowly in the environment variables, once a time to move forward, to which software can be measured also includes qt libraries,

Method 2, however, does not work for me==, I use method a,
Will Tool \ mingW53_32 \ bin directory libstdc++ - 6. DLL dynamic library copy to *. Exe folder, double-click to run *. Exe software, successful, and then go to QtCreator, click "run", is also a success,
Here, the operation of the above methods are basically on the Internet to find, but later write programs can't put the libstdc++ - 6. Every time a DLL dynamic library copy to the target directory, too much trouble, and so on computer with everything. Exe search software search libstdc++ - 6. DLL dynamic library, really let me in C: \ Windows \ SysWoW64 directory issued by existing libstdc++ - 6. DLL dynamic libraries, and bold use Tool \ mingW53_32 \ bin directory libstdc++ - 6. DLL dynamic library to replace, *. Exe directory delete libstdc++ - 6. DLL dynamic library, run successfully,
To this problem is solved thoroughly, in this Posting record, in order to avoid the problems later to forget, also met the similar problem hope can give a little help,

Author: total drunk moon Nessa
Link: https://www.jianshu.com/p/38ffc6cff0f3
Source: Jane books
Copyright owned by the author, commercial reproduced please contact the author for authorization, non-commercial reprint please indicate the source,

CodePudding user response:

embarrassing, is originally wanted to record the process of solving the problem on the net, should be published to the microblogging plate, have never thought to the BBS plates, ah, nothing lost 20 points, too ashamed
  • Related