Re: Cross-compiling for the N800

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Flynn wrote:
> Florian Boor wrote:
>   
>> Hi,
>>
>> Jason Edgecombe wrote:
>>
>>     
>>>> Syntax error: "(" unexpected
>>>>         
>> this looks like you try to run an x86 binary on your device. 
>>     
>
> That's what I thought.
>
>   
>> Check if you use the correct compiler. You can check with the "file" command what kind of binary
>> you built.
>>     
>
> It built an Intel 80386 binary. This is inside the scratchbox of the 
> maemo development vmware image in vmplayer.
>
> The question is, why? I assumed the entire purpose of the dev img was 
> that you could compile an ARM binary inside it. If all it can do is 
> compile 80386 binaries, I don't see the point of it.
>
> I used cc -o foo foo.c bar.c
> Is there some switch I need to specify to force it to cross-compile?
>
> ///Peter

I'd suggest reading the Scratchbox docs - you need to switch 
toolchains.  Right now you're using the i386 stuff so that you can build 
and test in a "simulated" N8X0.  Once you have it working the way you 
want, you switch "targets" and build again, which will give you an ARM 
binary.

Ryan

-- 
Ryan Pavlik
www.cleardefinition.com

#282  +  (442) -  [X]
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux