Hallo Andreas

Am 19.08.2013 um 11:50 schrieb Hofer Andreas <[email protected]>:

> Hi,
> 
> is it possible to to compile linuxcnc on a x86 host platform for an ARM 
> Target platform?
> 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.

I dont know which branch you started from; please use 
https://github.com/mhaberler/linuxcnc/tree/unified-build-candidate-2

then proceed like so

sh autogen.sh
./configure --with-rt-preempt --with-platform=beaglebone 

You do not need a reference to kernel source with any of the userland threads 
builds (xenomai, rt-preempt, posix).


> 1.) sh autogen.sh
> 2.) ./ configure --with-threads=rt-preempt-user
> --> Error:
> "checking for RT dir... configure: error: RT not found.  Specify:
>     --with-realtime=<path>
> or use
>     --enable-simulator
> to build without a realtime system."
> 
> I think here the script is searching the actual kernel, but on my host 
> machine i have no rt-kernel installed.

some time ago it did. Not any more.

> 
> When i give the path from kernel source like,
> $ ./configure --with-realtime= 
> /media/Datas/ARM-Kernel/panda-linux-3.8.13-rt/
> 
> Also a error occurs like:
> "checking for RT dir... configure: error: You must supply a path for 
> --with-realtime.
> "
> 
> If there any way to give the configure script the target rt-kernel source?
> 
> I think when i have the right configuration, i can compile with:
> sudo make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi

That's a good question - I would be interested in cross-building too since 
building on-target is pretty lame

The compiler aint enough, you need a filesystem with the target prerequisite 
packages installed; no idea how to do that


- Michael


> 
> thx
> andi
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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