让错误运行 [英] Getting Error wihile running

查看:61
本文介绍了让错误运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我使用Cygwin终端在netbeam中配置c ++。

i完成所有事情。但是当我运行测试项目时。



基本目录:...

c编译器..

c ++编译器...路径填充

.....



但是只有Qmake命令没有填充?每件事都填满





当我运行测试项目时。



显示#include< QtGui / QApplication>中的错误这行

QApplication应用程序(argc,argv);



如何查找Qmake命令?我要导入哪个文件的路径?

Hello i am configure c++ in netbeam using Cygwin Terminal.
i done every thing.But when i run the test project .

Base Directory :...
c compiler..
c++ compiler...path filled
.....

But only Qmake command is not filled? and every thing is filled


when i run test project.

showing error in #include <QtGui/QApplication> this line
QApplication app(argc, argv);

how to find Qmake command? path which file i want to import?

推荐答案

听起来你正试图在Cygwin下使用Netbeans来构建一个Qt应用程序?你也喜欢玩火吗?严重的是,正在采取艰难的做法到极致。



如果您需要在Cygwin下运行,那么首先使用本机gcc / g ++ Cygwin软件包在Cygwin下构建一个简单的示例C ++程序(No Qt)。 />


然后使用Netbeans项目构建的相同Hello World类型源代码。这可以确保您已经知道代码是正确的,因为它在Netbeans之外构建,因此任何错误都必须来自设置项目。



然后我会再次尝试相同的代码使用Qt''原生''IDE QtCreator。一旦你怀疑那么,然后尝试使用Qt创建者使用QApplication之类的Qt应用程序。



最后一旦它正常工作你应该能够构建一个Netbeans项目,它使用与Qt相同的后端编译器正确引用Qt头和构建,以便结果与预编译的Qt库成功链接。



这看起来像很多工作和很长一段路,但相信我,如果你实现它,你会比包括我在内的大多数人了解这个特殊的产品组合。



(而且玩杂耍火不再困难了:-))
It sounds like your''re trying to use Netbeans under Cygwin to build a Qt application? Do you juggle fire for fun as well? Seriously that is taking ''doing it the hard way'' to the extreme.

If you need to be running under Cygwin then first get a simple sample C++ program (No Qt) building under Cygwin using the native gcc/g++ Cygwin package.

Then have a go with the same ''Hello World'' type source code built with a Netbeans project. This ensures that you already know the code is correct because it builds outside Netbeans so any errors must be from setting up the project.

Then I would try the same code again using the Qt ''native'' IDE QtCreator. Once you''ve sussed that then try a Qt application that uses things like QApplication using Qt creator.

Finally once that''s working you should be able to build a Netbeans project that correctly references the Qt headers and builds using the same backend compiler as Qt so that the results will link successfully with precompiled Qt libraries.

This may seem like a lot of work and a long way round but believe me if you achieve it you''ll know vastly more than most people, including me, about this particular combination of products.

( And juggling fire will not seem difficult anymore :-) )


这篇关于让错误运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆