我用的开发包是QT4.4.1的版本,但对于QT的configure并不熟悉,在嵌入式系统里好像是直接使用Fremabuffer的吧,在configure可以去掉QVFB了吗?
我的configure命令是这样的(我使用的是君正的处理器):
./configure -static -no-qvfb -xplatform qws/linux-mips-g++ -embedded mips -release -L /home/oneke/tools/mipseltools-gcc412-lnx26/lib -big-endian
但我编译出来的库,进行应用程序的开发时却发现只能显示一个背景和一个鼠标指针,定义的控件如:按钮、标签项等都不能显示,在谷歌上也搜过,未果,巨郁闷~
下面贴出来的是我的程序源码:
#include <QApplication>
#include <QLabel>
int main(int argc, char **argv)
{
QApplication app(argc, argv, QApplication::GuiServer);
QLabel hello("Hello! \n");
hello.resize(100,30);
hello.show();
app.exec();
return app.exec();
}
不管怎么整就是不显示Label,我也试过Button,结果也是一样的,只有一个背景+鼠标指针
若能帮我解决这个问题,本人不胜感激~!