![]() |
Confused with scratchbox
Hello
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 |
Re: Confused with scratchbox
Quote:
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. |
Re: Confused with scratchbox
Quote:
|
Re: Confused with scratchbox
Quote:
hope this helps, Craig... |
Re: Confused with scratchbox
Ok x86 can start the maemo gui, it's the primary use.
And thanks for the idea of LD_LIBRARY path, no need to start it directly on the device, only remotely from the scratchbox. I guess you have to set the DISPLAY variable to :0.0 for graphical stuffs? Thanks you all for clarification so far! |
Re: Confused with scratchbox
Quote:
Wow I never thought of that its a good idea, I just tar it up and transfer to device. Not a bad Idea when you want to qucikly test something. I compile KDE and then transfer and pray :) It usually goes smoothly, 90+ source packages:D |
Re: Confused with scratchbox
Yeah and it's the other way around, my post was wrong (eventhough it could work but makes no real sense)
Your tablet access your scratchbox release directory. Saves a bit of time for debugging. Good for you penguinbait isnt it? Means we'll get kde4 in less than a few days? :D |
Re: Confused with scratchbox
Quote:
|
Re: Confused with scratchbox
Quote:
Back to the subject, I have a much more clearer view about the process, thank you all. If there are new ideas, please post again! |
Re: Confused with scratchbox
Quote:
I am looking in Kinfocenter at the processors Bogomips: 388.54 Features: swp half thumb fastmult vfp edsp java I had just finished compiling KDE as always I do not add any extra flags. I am considering recompiling everything again using the optimizations you point out. Two questions: 1) Do you think KDE would benefit from this, or only things like quake? 2) Would any of those other "Features" listed above be usefull? You input is greatly appreciated :D |
All times are GMT. The time now is 06:42. |
vBulletin® Version 3.8.8