Question

I have this simple program with its sources in a 'src' folder and the includes in the 'inc' folder. Normally i compile this with:

gcc -I../inc *.c

This leaves 'a.out' as program which works fine on that pc.

But how do i compile this for my BeagleBone Black (ARM)? With this i am thinking about:

gcc (some arguments to crosscompile for arm) -I../inc *.c
Was it helpful?

Solution

Since you say you can use make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm uImage you should have arm gnueabi toolchain available at your disposal. It should be then as easy as calling it like

arm-linux-gnueabi-gcc -I../inc *.c
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top