![]() |
2010-04-17
, 11:44
|
Posts: 102 |
Thanked: 22 times |
Joined on Oct 2009
|
#2
|
![]() |
2010-04-20
, 12:08
|
Posts: 26 |
Thanked: 34 times |
Joined on Apr 2010
|
#3
|
![]() |
2010-05-21
, 04:14
|
Posts: 3 |
Thanked: 0 times |
Joined on May 2010
|
#4
|
Hi, I spent most of today setting up the maemo sdk/dev environment and managed to get an existing Qt app to build and run nicely in the emulator on Xephyr. However, when I transfer the executable onto my n900, it segfaults. Just that - "segmentation fault", with no additional details.
I'm somewhat baffledI tried again with a simple "Hello world" qt app and that one works flawlessly, so I must be doing at least most of the building/deploying procedures right. And the offending application works nicely on the emulator so the code should be mostly alright too(?). Any idea what might be the cause of the segfault? How different is the emulator environment from the one in the actual n900?
![]() |
2010-05-21
, 07:44
|
Posts: 26 |
Thanked: 34 times |
Joined on Apr 2010
|
#5
|
![]() |
2010-05-21
, 08:24
|
|
Posts: 63 |
Thanked: 41 times |
Joined on Feb 2010
@ Moscow
|
#6
|
char Buff[3]; short Num = *(short*)(Buff+1);
![]() |
2010-05-21
, 10:35
|
|
Posts: 1,665 |
Thanked: 1,649 times |
Joined on Jun 2008
@ Praha, Czech Republic
|
#7
|
![]() |
2010-05-21
, 19:57
|
Posts: 3 |
Thanked: 0 times |
Joined on May 2010
|
#8
|
Do you "make distclean" before changing targets?
Do you have right Qt on your device? SDK uses 4.6.2, but there is only 4.5.3 in repos. Try libqt4-maemo5 and qmake from its directory (somewhere in /opt) for Armel target.
Do you have any odd things in your program? For example:
will work fine on X86 processors but will crash on ARM.Code:char Buff[3]; short Num = *(short*)(Buff+1);
![]() |
2010-05-22
, 04:22
|
Posts: 195 |
Thanked: 108 times |
Joined on Feb 2010
@ SF Bay Area, United States
|
#9
|
3. Is there a compatibility flag on qmake that I can use to generate binaries that link with earlier versions of QT?
[sbox-FREMANTLE_ARMEL: ~] > /opt/qt4-maemo5/bin/qmake [sbox-FREMANTLE_ARMEL: ~] > make
![]() |
2010-05-26
, 16:20
|
Posts: 3 |
Thanked: 0 times |
Joined on May 2010
|
#10
|
I'm somewhat baffled