Now with the installation combination: QT Creator (2.6.2) + MinGW (online installation) + QT (4.8.6)
Install the mingw First, then install QT, then install QT Creator, after installation, the construction is not available, but also to set Oh! My machine is Win7 i3 64-bit installation is installed according to 32-bit.
1. QT:: Error: Can't open file "D:\Qt\2010.05\qt\lib\qtmaind.lib" I had this problem today. Tangled half a day, the whole day, finally solved!!!
WORKAROUND: Tools-Options-build and run-build suite, you should choose the Desktop (default). Click on it to see what the compiler box chooses? By default, M is selected. V.. C + + (86). Change it to: MinGW on it. The premise is that you installed the MinGW.
- The debugger is not configured to use a public Microsoft symbol server. This is the recommended way to get symbols for the operating system library.
https://msdn.microsoft.com/zh-cn/library/windows/desktop/ee416588 (v=vs.85). aspx
The downloaded version is 7.0.
Here is the version of 6.0, so with this URL, the above download down the installation, will error, installation can not;
https://www.microsoft.com/en-us/download/confirmation.aspx?id=3138
- 2 is a problem, I began to feel strange, but I read others blog so write, but others may use VS, but did not say, I use MinGW +qt-opensource-windows-x86+qt Creator (is written in accordance with the installation sequence), the use of the debugger, It should be gdb, but in the tool->. Component and run-to-build kit (KIT), point-and-click debugger Management then choose GDB Location, or you can not debug; later download CDB.exe, why do , because I wrote it in a two or three-in blog, so I did it, and it turned out to be wrong, because I guess he used vs. So the right thing is: QT Creator now use Python instead of the Qt Debug assistant, and MinGW's own GDB does not support python, so we need to support the Python gdb:
Http://qt-project.org/wiki/QtCreatorBuildGdb
http://download.qt-project.org/development_releases/prebuilt/gdb/
I chose the following, do download, the first download failed, the second time to succeed.
Download the corresponding binary gdb that supports Python here
XP Download Gdb-7.5-i686_winxp.zip
Win7 Download qtcreator-gdb-7.4-mingw32_nt-6.1-i686.tar.gz
Download down, is a folder, I copied the folder to the C:\MinGW\bin, hit the breakpoint can be debugged.
At this point, the environment was built successfully.
- Can not be written to the environment variable: C:\Qt\4.8.6\bin; C;\mingw\bin;
- QT development tool selection, generally do not choose Eclipse, why I do not know, seems to be because there is not a lot of QT library, no wonder my centos, with Eclipse to develop QT, adjusted, will always find the library, then in win, can use my installation method, To debug Linux programs, QT Creator also support Windows programs, but also can use the VS+QT library method, I do not use this method, so I do not know how to do.
At first, I was used under the Win7, install ECLIPSE+CDT+QT+MIGGW, but Eclipse built the project, has not been like online said, found QT, and then add group, just know, did not seem to do that.
- Good URL:
There is also a good blog to learn about QT:
http://blog.csdn.net/liang19890820/article/details/49894691
Under Win, compile the Linux program, then use the QT creator +MINGW development model
QT Creator is included with the Autotool tool, but to set it up, the relevant website is:
Http://doc.qt.io/qtcreator/creator-projects-autotools.html
TestDisk Qt Creator + MinGW +qt +gdb