IMX Hello World: Difference between revisions
From Variscite Wiki
No edit summary |
|||
Line 3: | Line 3: | ||
[http://www.yoctoproject.org/docs/2.0/adt-manual/adt-manual.html Yocto Project Application Developer's Guide 2.0] | [http://www.yoctoproject.org/docs/2.0/adt-manual/adt-manual.html Yocto Project Application Developer's Guide 2.0] | ||
= = | = hello World C = | ||
<pre> | |||
$ mkdir ~applications | |||
$ cd applications | |||
$ gedit hello.c & | |||
#include <stdio.h> | |||
int main(int argc, char **argv) | |||
{ | |||
printf("Hello World\n"); | |||
return(0); | |||
} | |||
$ source /opt/poky/1.8/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi | |||
$CC -o hello hello.c | |||
</pre> |
Revision as of 11:26, 13 December 2015
VAR-SOM-MX6 - Hello World
Reference
Yocto Project Application Developer's Guide 2.0
hello World C
$ mkdir ~applications $ cd applications $ gedit hello.c & #include <stdio.h> int main(int argc, char **argv) { printf("Hello World\n"); return(0); } $ source /opt/poky/1.8/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi $CC -o hello hello.c