程序如下:
#include "include/QtGui/qapplication.h"
#include "include/QtGui/qpushbutton.h"
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton hello("Hello world!");
hello.resize(100,30);
hello.show();
return app.exec();
}
经典的Hello程序~,但make却通不过,提示
[oneke@localhost Application]$ make
mipsel-linux-g++ -o test test.o -L/qt-3.3/lib -lqt-mt -lXext -lX11 -lm
/home/oneke/tools/mipseltools-gcc412-lnx26/bin/../lib/gcc/mipsel-linux/4.1.2/../../../../mipsel-linux/bin/ld: skipping incompatible /usr/lib/qt-3.3/lib/libqt-mt.so when searching for -lqt-mt
/home/oneke/tools/mipseltools-gcc412-lnx26/bin/../lib/gcc/mipsel-linux/4.1.2/../../../../mipsel-linux/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make: *** [test] Error 1
不知道是什么原因,而且那个/qt-3.3/lib -lqt-mt -lXext 不知道是怎么来的,我的环境变量没有设置这个
有高人可以帮我解决一下吗?不胜感激!!