标题:菜鸟请教 Segmentation fault 问题
作者:xwcmx
日期:2008-07-05 23:07
内容:
想在俺的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
#include
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
hello.show();
return a.exec();
}
#1 [wf361 08-05 18:30]
可能你交叉编译工具的glibc库跟你根文件系统中的glibc库不同?