I am not familiar with the scratchbox environment, but phoneME requires compilation of code to target both x86 and ARM.
In some cases, you compile a piece of generated source code to x86, run it, and use its output to cross-compile to ARM (this is an oversimplification).