qt creator 4.84.8.4 helloworld 程序运行不了?

新建QT GUI应用,QT Creator运行不了
[问题点数:30分]
新建QT GUI应用,QT Creator运行不了
[问题点数:30分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2011年8月 移动平台大版内专家分月排行榜第二2011年7月 移动平台大版内专家分月排行榜第二2011年3月 移动平台大版内专家分月排行榜第二
2012年8月 移动平台大版内专家分月排行榜第三2012年7月 移动平台大版内专家分月排行榜第三
2013年8月 移动平台大版内专家分月排行榜第二2013年4月 移动平台大版内专家分月排行榜第二
2013年5月 移动平台大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。Qt Creator 4.8.4. windows 7 - 64bit installation - Stack Overflow
to customize your list.
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
I have some difficulties with QT, which I need for school for some GUI applications.
I have recently done these steps:
1) mingw-get-inst-.exefrom
installed to C:\MinGW\ with default settings.
2) Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB) from
installed to C:\Qt\
with default settings. Here an error occurs:
!!!There is a problem with your MinQW instalation
!!!g++ not found in c:\MinGW\bin\
!!!Do you still want to continue? Yes
I checked c:\MinGW\bin\ there is no such file
3) Qt Creator 2.6.0 for Windows (51 MB)also from
installed to C:\Qt\gtcreator-2.6.0 with default settings
4) Run the QT IDE
5) Open project or create new project. Another error occurs here
!!!No valid kits fond.
Qt Creator uses the invalid kit Desktop to parse the project.
6) Open Options->Build & Run->Kits (But I don't know how should I set Kits and where to find them).
7) Can you also help me, how to set Qt version
(Options->Buid&Run->Qt Version)? Where do I find qmake.exe?
I also didn't find how to create GUI Application. There is no such option in New File or Project...
Thanks for help.
9,767104265
Precompiled Qt (MinGW) is only win32 (not win64).
Precompiled Qt is compiled with MinGW-g++ 4.4 and won't work with other.
You have to download this one:
//// Edit: With this version of MinGW, gdb won't work (it's not python-enabled). Although QtSDK is depracted (and you won't find it on qt-project.org), I highly recommend downloading this online installer and, during the selection of components mark only MinGW. It will come with folder named "pythongdb".
(You may need to register. It's free.)
Add "Compiler" by g++.exe
Add "Qt Version" by qmake.exe.
Add "Kit" with Compiler and Qt Version configured above. You can try to change debugger from CDB to GDB.
2,36621332
When you installed mingw, did you select the C++ compiler? It is not selected by default but you need it. Re-run the wizard and select that.
The kit is not valid because the C++ compiler cannot be found: try to install it first. If you still cannot setup this read the manual: . It is very complete.
qmake.exe is in *qt_directory*/bin/qmake.exe.
5,52663469
Try this out:
(Since the mingw-w64 project on sourceforge.net is moving to mingw-w64.org i suggest to use )
It works for me.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledqt装好后运行一个类似helloworld之类的程序_百度知道在qt creator上编译程序不通过_百度知道1816人阅读
Qt的***配置请参考本博客本分类下的其他相关文章,本文主要整理在调试时候遇到的问题和解决方法供遇到同样问题的同学参考。由于我之前也没有任何Qt的开发基础,做的也是硬件方面设计,所以这方面基础还是比较薄弱,这儿主要记录摸索过程中的一点心得体会。
Qt的***和初步配置请参见:
本文的软件环境:
Win7 32bit (XP 32bit)
Qt Creator 2.6.1 (Qt Creator 2.7.0)
摸索了一段时间的Qt和OpenCV,3个平台都有涉及,最大的问题还在于资源过于分散,版本之间很多地方还是有差异的,对于我这样的初学者还是有点麻烦的。
今天使用到Qt的调试这块,遇到了点小问题,这里简单记录。
在进行调试的时候Qt Creator提示调试器未设置,在之前的的配置中也没有留意,于是重新来看看,我用的是MinGW,于是通过自动检测就得到了下图所示的设置
程序检测到了位于D:\mingw\bin\gdb.exe的调试器,本来觉得这样就可以了,但是在调试的时候发现压根没法运行,提示如下:
无奈,只能在找找法子,通过查找发现,在之前的Qt Creator中,是以一个Qt SDK的整体来提供的,里面就包括了MinGW和调试器,而且也无需配置,现在的新版本都是分散***的,所以就需要自己单独再找找了。网上的一个说法是2.5以上的版本必须使用7.2 IIRC版以上的GDB,需要需要自己单独下载,这里我找到两个下载地址。
内容粘贴如下:
Building GDB
For Windows
A msys Environment with MinGW is required to build the GDB on Windows.&
If it is missing&&[sourceforge.net]&and
install it to your system.
Go to qt-creator/dist/gdbThe directory has 3 Makefiles:&linux,&osx&and&mingw. Use the one that corresponds to your host os.In case you need additional targets, edit the line starting with ‘targets=’ in the Makefile.Run:
make -f Makefile.&linux|osx|mingw&
Extract qtcreator-gdb-&gdb version&-&host&.tar.gz
To test GDB just run the executable and type:
python print 23
When the GDB prints “23” everything works fine.
&[origin.releases.qt-project.org]&[get.]
Categories:
这段文字想说明什么内容看的不是很明白,而且我压根没找到qt-creator/dist/gdb 这个路径存在,我下载了Downloads中的,文件名为qtcreator-gdb-7.4-MINGW32_NT-6.1-i686.tar.gz,直接用winRAR解压,文件夹内容如下:
重新配置Qt Creator将调试器定位到这个目录中的gdb-686-pc-mingw32.exe如下图所示,再次调试,能够进行调试。
另外一个下载地址&同样能够下载这个文件。
Linux相关设置有对应的文件,下载地址如下:&这里并没有测试。
本文转自:/emouse/archive//2933557.html
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:342500次
积分:4554
积分:4554
排名:第4442名
原创:102篇
转载:22篇
评论:204条
(1)(1)(2)(1)(2)(1)(1)(1)(1)(2)(4)(2)(2)(1)(2)(3)(5)(1)(4)(2)(2)(4)(1)(4)(1)(1)(3)(1)(4)(2)(7)(6)(2)(4)(22)(2)(12)(2)(4)(1)

参考资料

 

随机推荐