[Balloon] Cross compiling for Balloon

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: balloon
Subject: [Balloon] Cross compiling for Balloon
Hi All

I'm trying to find out "the right way" to cross compile for balloon.

I started with a small program
xx.c:
#include <stdio.h>
main()
{
  while(1){
    printf("x\n");
    sleep(2);
  }
}


I cross-compiled that with
arm-linux-gnueabi-gcc xx.c -o xx_arm

which gave a binary of around 5kbytes. I copied that onto Balloon and tried to
run it and got:
-sh: ./xx_arm not found
even though it was there and had x permissions. I suspect some missing shared
library linking...

I then rebuilt with:
arm-linux-gnueabi-gcc --static xx.c -o xx_arm
which gave a 555kbytes binary which ran.

What's the magic to get shared library building working?

Thanks

Charles