![]() |
2007-11-13
, 17:05
|
Posts: 2,102 |
Thanked: 1,309 times |
Joined on Sep 2006
|
#2
|
-mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp
The Following User Says Thank You to lardman For This Useful Post: | ||
![]() |
2007-11-13
, 17:26
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#3
|
That's fine, but note that if you define -mcpu=arm1136jf-s, qemu (used by scratchbox to emulate an ARM processor) won't be able to run the resulting binary (this may cause problems if intermediate binaries are used).
Personally I just use "-mfpu=vfp -mfloat-abi=softfp"
X86 target allows you to startup the maemo gui and see what an app will look like. I never use it, I perfer to test on the device.
![]() |
2007-11-13
, 17:57
|
Posts: 191 |
Thanked: 29 times |
Joined on Sep 2007
@ Ottawa
|
#4
|
So if you are just testing on the device (n800 in my case), there is no reason to use x86 at all? I have never used it?
![]() |
2007-11-13
, 18:20
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#5
|
![]() |
2007-11-14
, 01:23
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#6
|
I agree. I have NFS mounted my scratchbox machine:/directory and run the apps directly on my N800. Of course, if you need to install libs to run your app, then it is a little more fun. Usually I just point my LD_LIBRARY_PATH to the nfs dir as well.
hope this helps,
Craig...
![]() |
2007-11-14
, 15:04
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#7
|
![]() |
2007-11-14
, 15:19
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#8
|
The Following User Says Thank You to penguinbait For This Useful Post: | ||
![]() |
2007-11-14
, 17:59
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#9
|
![]() |
2007-11-16
, 23:44
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#10
|
That's fine, but note that if you define -mcpu=arm1136jf-s, qemu (used by scratchbox to emulate an ARM processor) won't be able to run the resulting binary (this may cause problems if intermediate binaries are used).
Personally I just use "-mfpu=vfp -mfloat-abi=softfp"
X86 target allows you to startup the maemo gui and see what an app will look like. I never use it, I perfer to test on the device.
I would like to port some application to these nice little toys. I managed to do several ones but I can't say I really understand what I'm doing. Also looking at the documentation on scratchbox didn't really answer my questions.
What I did for a simple package, an arch-independent software (let's start by simple things first)
1)use x86 target
2)grab dependencies
3)configure build run with xephyr
4)switch to arm target
5) reconfigure, rebuild all
6) upload to the device
It worked until now but I'm not sure
* Does this seem logical to you?
* On step 3 what I did is
CFLAGS="-O2 -fomit-frame-pointer -mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp"
Is that correct, usefull, or completly stupid?
* Can we run within the arm target?
* If yes, what's the use of x86 target?
* Where does qemu plays?
Any information from somebody who knows would greatly help me (or a link to a tutorial,..)
You don't need to answer to all questions in one go
Thanks a million