wiki:Developing your own applications

Version 14 (modified by Ben, 3 years ago) (diff)

--

disclaimer: this article is work in progress and I am learning as I write

Here I will write how to begin developing your own applications for SHR, using the familiar Hello World program as an example. I will use Vala as the programming language which should be familiar and easy to understand for people with Java experience.

This guide assumes that the reader has already succussfully built SHR using the instructions at Building SHR.

  1. - Creating a source folder
    $ cd /path/to/shr/build
    $ mkdir my_first_app
    
  1. - Writing Hello World in Vala


Create a file called my_first_app.vala and insert the following text:

class Demo.HelloWorld : GLib.Object
{
    public static int main(string[] args)
    {
        stdout.printf("Hello, World\n");
        return 0;
    }
}
  1. Set up autotools
    todo
    
  1. Add a bitbake recipe
    todo
    
  1. Build a package
    todo