Open main menu

DAVE Developer's Wiki β

Changes

Software Manual (Diva)

924 bytes added, 10:38, 2 October 2014
m
Build a custom application
=== Build a custom application ===
Some users may prefer to cross-compile their applications outside of the Yocto flow. It maybe specifically useful and easier for new projects in their prototyping and proof-of-concept stages or for any smaller applications in general. This section will be completed way users don't have to worry about creating Yocto "recipes" for their applications and becoming familiar with the entire Yocto build system.In order to cross-compile an application, written in C/C++, the cross-toolchain provided with the DIVELK is required.Assuming that the environment variables have been configured with the <code>env.sh</code> script, developers can write a future release of this manualsimple "Hello world" application, called for example hello.c:<pre>#include <stdio.h>int main(){ printf("Hello world\n"); return 0;}</pre>To cross-compile it:<pre>$ arm-none-linux-gnueabi-gcc -o hello hello.c</pre>Copy the executable file to the root file system, and execute it from the Diva system:<pre>root@diva:~#./helloHello world</pre>
=== Build the graphics components ===