想在俺的mpis开发板上使用 QT4,编译都没有啥问题,
下载到目标板上后,运行所有 QT 自带的例程,如 “textedit -qws”
提示错误: Segmentation fault ,程序无法运行(只有一个光标闪了一下)
但我自己写了一个简单的hello world程序可以运行,想问问各位大侠可能是什么原因?
我用的源码和编译选项:
qtopia-core-opensource-src-4.4.0
./configure -no-largefile -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-openssl -little-endian -embedded mips -embedded mips -xplatform qws/linux-mips-g++ -prefix /opt/qt/out/qt4.4 -depths 8,16,18,24,32
简单的“hello world”
#include <QApplication>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
hello.show();
return a.exec();
}