Changes between Version 91 and Version 92 of Developing your own applications


Ignore:
Timestamp:
01/18/11 22:30:44 (3 years ago)
Author:
Ben
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developing your own applications

    v91 v92  
    225225}}} 
    226226 
    227  
     227Run the following commands: 
     228{{{ 
     229$ aclocal 
     230$ autoconf 
     231$ touch AUTHORS NEWS README ChangeLog 
     232$ automake --add-missing 
     233}}} 
     234 
     235 
     236=== 4. Adding a bitbake recipe === 
     237Enter the third party recipes folder: 
     238{{{ 
     239$ cd /path/to/shr/build/shr-unstable/openembedded/recipes/openmoko-3rdparty 
     240}}} 
     241 
     242Create a file called '''myfirstgui_0.1.bb''' and insert the following text: 
     243{{{ 
     244DESCRIPTION = "A GUI hello world program written in Vala" 
     245PR = "r0" 
     246DEPENDS = "libeflvala elementary" 
     247 
     248S = "${WORKDIR}/myfirstgui" 
     249 
     250SRC_URI = "file:///home/bt4/personal/openmoko/shrbuild/myfirstgui" 
     251 
     252inherit autotools vala 
     253}}} 
     254 
     255Note: For building from local sources you can also use "inherit srctree" as it's used in conf/local-builds.conf 
     256 
     257=== 5. Building a package === 
     258{{{ 
     259$ cd /path/to/shr/build/shr-unstable 
     260$ . setup-env 
     261$ bitbake myfirstgui 
     262}}} 
     263 
     264You should find that you now have an ipk package like this: /path/to/shr/build/shr-unstable/tmp/deploy/ipk/armv4t/myfirstgui_0.1-r0.6_armv4t.ipk 
     265 
     266In order to test your program, simply install this package on your phone and run "/usr/bin/myfirstgui". 
     267