On 8/19/2013 4:50 AM, Hofer Andreas wrote:
> Hi,
> 
> is it possible to to compile linuxcnc on a x86 host platform for an ARM 
> Target platform?

Yes, it is possible to compile LinuxCNC for the ARM on an x86 platform.

I do this when building the MachineKit images from scratch, which
happens on an x86 system.  You can find the build scripts (based on
Robert C. Nelson's excellent work) on github:

https://github.com/cdsteinkuehler/omap-image-builder

Basically, an ARM root filesystem is built on the x86 system, and you
chroot into that in order to compile.  The fact that all the executable
files in the chroot are for the ARM instead of the x86 is handled by
transparent qemu system emulation.  The "magic bit" is copying the qemu
static emulation into /usr/bin on the chroot image:

https://github.com/cdsteinkuehler/omap-image-builder/blob/master/scripts/chroot.sh#L136

...once you do this, you can chroot into the ARM root filesystem on your
x86 machine and uname -a will tell you you're running an ARM CPU!

> I have installed the codesourcery toolchain.
> Crosscompiling some Hello World application for ARM ist no problem, but 
> when i do this on linuxcnc there come some errors.

Cross-compiling is another thing entirely.  You will probably have to
seriously work on the LinuxCNC build scripts if you want to be able to
actually cross-compile (ie: build with native x86 tools, but generate
ARM executable code).

-- 
Charles Steinkuehler
[email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to