Executing cross compiled c on the Red Pitaya
Posted: Wed Jul 08, 2015 1:36 pm
I wrote a basic hello world c program for the Red Pitaya - just as an initial proof it would work.
The program;
Can't be much wrong with that?!
After that I compiled it with the latest arm cross compiler I could find - arm-linux-gnueabi-gcc;
After this I'm scp-ing it across to the Red Pitaya from my Linux box;
Then I ssh into the red pitaya and try to execute the compiled file;
However, I'm met with the error;
Does it think it's supposed to be a shell script of something?
Thanks!
The program;
Code: Select all
#include <stdio.h>
main()
{
printf("hello red pitaya\r\n");
}
After that I compiled it with the latest arm cross compiler I could find - arm-linux-gnueabi-gcc;
Code: Select all
arm-linux-gnueabi-gcc hello_red_pitaya.c -o hello_red_pitaya
Code: Select all
scp hello_red_pitaya root@192.168.1.100:/root
Then I ssh into the red pitaya and try to execute the compiled file;
Code: Select all
./hello_red_pitaya
Code: Select all
sh ./hello_red_pitaya: not found
Thanks!