title: How do I use bitbake to cross compile this simple program for beagleboard?
body: <p>I am trying to understand how I compile programs that will run on my beagle board. I need to compile some complex programs that I currently run in fedora, but understanding how to use Open Embedded and BitBake has proved troublesome. I think there have been some significant changes to openembedded recently and the directory structure of my OE installation doesn't even match what I am finding elsewhere online as far as tutorials and how-tos go.</p>
  
  <p>I followed the directions <a href="http://openembedded.org/wiki/OE-Core_Standalone_Setup" rel="noreferrer">here</a> for setting up OE-Core, which gave me the following directory structure:</p>
  
  <pre><code>[user@localhost ~]$ ls oe-core -al
  total 52
  drwxr-xr-x   9 user user 4096 May 13 13:31 .
  drwx------. 31 user user 4096 May 13 12:56 ..
  drwxr-xr-x   9 user user 4096 May 10 11:52 bitbake
  drwxrwxr-x   8 user user 4096 May 13 13:36 build
  drwxr-xr-x   8 user user 4096 May 13 13:33 .git
  -rw-r--r--   1 user user  165 May 10 11:51 .gitignore
  -rw-r--r--   1 user user  545 May 10 11:51 LICENSE
  drwxr-xr-x  21 user user 4096 May 10 11:51 meta
  drwxr-xr-x   4 user user 4096 May 10 11:51 meta-hob
  drwxr-xr-x   6 user user 4096 May 10 11:51 meta-skeleton
  -rwxr-xr-x   1 user user 1592 May 10 11:51 oe-init-build-env
  -rw-r--r--   1 user user  495 May 10 11:51 README
  drwxr-xr-x   8 user user 4096 May 10 11:51 scripts
  </code></pre>
  
  <p>I've tried to boil it down to an ultra-simplistic start. If I can figure out how to  BitBake this simple program I would be leaps and bounds ahead of where I currently am.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void main(int argc, char* argv[]) {
      printf("Hello World.\r\n");
  }
  </code></pre>
  
  <p>I'm finding that the <a href="http://openembedded.org/wiki/Main_Page" rel="noreferrer">OpenEmbedded website</a> is too immature to be of any use. For example, I found <a href="http://www.openembedded.org/wiki/How_to_create_a_bitbake_recipe_for_dummies" rel="noreferrer">this page</a> which doesn't tell me which files should contain the contents shown and has nothing more than 'TODO' marked in some of the sections.</p>
  
  <p>So if anybody has experience using BitBake, some pointers on how to cross-compile my simple program would be really helpful. Where do my recipe files go? How do I invoke them with bitbake? Thanks.</p>