标题:Qt/E-4.X.X 运行时出现段(Segmentation Fault)错误的解决办法~~ (转)
作者:mikejoy
日期:2009-09-16 17:04
内容:
Qt/E-4.X.X 运行时出现段(Segmentation Fault)错误的解决办法~
很多朋友移植qte-4.5.2,都使用了友善提供的交叉编译器,但运行时经常会出现段错误,
建议使用openmoko提供的编译器试下,同样是eabi的,版本为4.1.2
http://www.qtopia.net/modules/mydownloads/singlefile.php?lid=38
经测试,运行时不会有段错误
good luck!
#1 [suchenpl 09-17 11:24]
楼主,你是怎么编译的,我在fedora9下编译qt4.5.2过不去会出现错误,用原本的4.3.2可以编译过但程序下到板上会段错误
#2 [mikejoy 09-17 11:29]
引用第1楼suchenpl于2009-09-17 11:24发表的:
楼主,你是怎么编译的,我在fedora9下编译qt4.5.2过不去会出现错误,用原本的4.3.2可以编译过但程序下到板上会段错误
你是用链接的编译器 4.1.2 编译qt4.5.2吗? 是没有通过吗?
#3 [suchenpl 09-17 11:55]
是用链接的编译器 4.1.2 编译qt4.5.2,./configure 能过,make就过不了了,如下错误
:0: note: candidates are: void* operator new(unsigned int)
make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] 错误 1
make[1]: Leaving directory `/opt/qte-4.5.2/src/corelib'
make: *** 错误 2
是不是缺少什么,楼主你是在什么环境下编的
#4 [mikejoy 09-17 18:32]
Sorry!
I got the same error like you and I am trying to find out the problem,but failed.
Maybe it has some libs missing .
I'll try try,if you solve the error ,just tell me .
Thank you !
#5 [suchenpl 09-18 08:42]
哈哈,过了,我之前是把编译器解压后直接copy到/usr/local/arm/4.1.2,后面我就直接解压到根目录下,完了是在/opt/toolchains/arm920t-eabi,gedit~/.bashrc添加上此路径,然后再编译,done!