AnsweredAssumed Answered

imx7-warp7 cross compiler

Question asked by Bheema Rao on Feb 18, 2017
Latest reply on Feb 21, 2017 by Bheema Rao

I am executing the below steps using imx7 warp7 board:
i have ported "core-image-machinetest" image into it and trying to cross compile a simple helloworld.c program into it.

i have installed arm-poky-linux-gnueabi-gcc from meta-toolchain and it is installed in /opt/poky/1.xx


i have created helloworld.c

#include <stdio.h>
int main (int argc, char **argv)
printf("Hello world !\n");
return 0;

and compiled using
$ arm-poky-linux-gnueabi-gcc -o helloworld helloworld.c

i was able to create executable file and tested the type also

$ file hello-world
hello-world: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped

but when executing on the target it is giving the below error

root@imx7s-warp:/usr# ./helloworld
-sh: ./helloworld: No such file or directory

have anybody faced similar issues.

is there any steps i have missed out or is there any procedure to be followed either in standalone or while yocto development package compile.