BuildingAppsWithOe

= Building Applications using OpenEmbedded =

How to bake an Opie application
If you are writing your own Opie applications outside of the Opie tree, and you have BitBake / OpenEmbedded set up on your PC, you can use OE to cross-build and package your application for testing on a handheld very easily. Note: you will likely need to do a build of  or most of the base Opie packages before this will work.

Instructions
DESCRIPTION = "My application" SECTION = "opie/applications" PV = "0.1" APPNAME = "myapp" APPTYPE = binary
 * 1) Create a .bb file (can be located anywhere, does not have to be in your   dir) for your package with the following contents:

S = "/path/to/source/dir"

inherit opie

bitbake -b myapp.bb
 * Build the application:

Assuming your OE environment is set up correctly and the build succeeds, this will create a .ipk package in your  directory for your application.

Rebuilding
Each time you need to rebuild the application, run the following commands: bitbake -c clean -b myapp.bb bitbake -b myapp.bb

How to use the Opie standalone buildsystem to develop against an OpenEmbedded tree

 * 1) Grab BitBake and OpenEmbedded (see GettingStarted on the openembedded.org Wiki)
 * 2) Have a properly working setup and edited   w/ at least   and   set
 * 3)   in the Opie tree
 * 4) Choose "OpenEmbedded w/ OE build dir set below (TARGET_OE) (Option 5)" as target machine
 * 5) Specify your OpenEmbedded build dir, i.e.
 * 6) Answer all the rest - you may want to add more include paths pointing to inside the oe build tree for some additional dependencies, i.e. for libsword, libipkg, libxine, and libsqlite3.
 * 7)   and sanity check your answers
 * 8) build
 * 9) copy the binaries over or mount your build tree via NFS and   and
 * 1) copy the binaries over or mount your build tree via NFS and   and