[Lazarus] Cross-compiling -> MIPS

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Oct 29 17:48:37 CET 2012


SkyDiablo wrote:
> Am 29.10.2012 15:53, schrieb Lukasz Sokol:
>> You produced an /executable/ ?
>> Then why not just do
>>
>> ./helloWorld4MIPS
>>
>> in the dir where the binary is copied to ....?
>> (yes, dot-slash is needed unless you have this directory added to PATH)
>>
>> AFAIK, doing
>>
>> sh $file
>>
>> will attempt to run it as shell script, WHICH IT ISN'T ?
> 
> yes, i have tested this befor but now i realize what going on.
> 
> # chmod +x helloWorld4MIPS
> # ./helloWorld4MIPS
> 
> after this, NOTHING happens! no output and no shell-promt! now i have 
> look at "top" ->
> 
> process "helloWorld4MIPS" -> 100% CPU load!
> 
> this is the helloWorld Code:
> ================================
> program helloWorld4MIPS;
> begin
>   WriteLn('helloWorld');
> end.

A possibility there is that the FPC runtimes are incompatible with 
OpenWRT (assuming that that's what you're running on). I was running on 
Debian hosted by Qemu (on an x86 Debian system) which appeared OK.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list