| 227 | | |
| | 227 | Run 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 === |
| | 237 | Enter the third party recipes folder: |
| | 238 | {{{ |
| | 239 | $ cd /path/to/shr/build/shr-unstable/openembedded/recipes/openmoko-3rdparty |
| | 240 | }}} |
| | 241 | |
| | 242 | Create a file called '''myfirstgui_0.1.bb''' and insert the following text: |
| | 243 | {{{ |
| | 244 | DESCRIPTION = "A GUI hello world program written in Vala" |
| | 245 | PR = "r0" |
| | 246 | DEPENDS = "libeflvala elementary" |
| | 247 | |
| | 248 | S = "${WORKDIR}/myfirstgui" |
| | 249 | |
| | 250 | SRC_URI = "file:///home/bt4/personal/openmoko/shrbuild/myfirstgui" |
| | 251 | |
| | 252 | inherit autotools vala |
| | 253 | }}} |
| | 254 | |
| | 255 | Note: 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 | |
| | 264 | You 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 | |
| | 266 | In order to test your program, simply install this package on your phone and run "/usr/bin/myfirstgui". |
| | 267 | |