Re: Cross compile helloworld.c

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

 



On 26/06/13 18:19, Marc Glisse wrote:
On Wed, 26 Jun 2013, Burning Thumb wrote:

You know I thought this would be so easy, and maybe it is...

I'm running Ubuntu 13.04 on an intel machine and I want to cross compile helloworld.c so that the resulting binary will execute on Ubuntu on a powerpc machine.

Doesn't Ubuntu have a crossbuild-essential-powerpc package?

It has:  http://packages.ubuntu.com/raring/crossbuild-essential-powerpc

Burning Thumb, install that package. Then you will be able to compile your
hello world with:
 powerpc-linux-gnu-gcc helloworld.c -o helloworldppc

(ie. replace "gcc" with "powerpc-linux-gnu-gcc" in normal instructions
for compiling a program)





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux