• 4693阅读
  • 1回复

菜鸟请教 Segmentation fault  问题 [复制链接]

上一主题 下一主题
离线xwcmx
 

只看楼主 正序阅读 楼主  发表于: 2008-07-05
— 本帖被 XChinux 执行加亮操作(2008-07-05) —
想在俺的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();
}
离线wf361
只看该作者 1楼 发表于: 2008-08-05
可能你交叉编译工具的glibc库跟你根文件系统中的glibc库不同?
快速回复
限100 字节
 
上一个 下一个