Don't like ads? PRO users don't see any ads ;-)
Guest

bballantine

By: a guest on Mar 12th, 2009  |  syntax: C  |  size: 2.58 KB  |  hits: 295  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //in my build directory, reinstate the build environment
  2. brian@sawfly:~/work/com.buglabs.build.oe$ source reinstate-build-env
  3.  
  4. ### Shell environment set up for Poky builds. ###
  5.  
  6. /home/brian/work/com.buglabs.build.oe/build:/home/brian/work/com.buglabs.build.oe/bitbake/:/home/brian/work/com.buglabs.build.oe/meta-bug/:/home/brian/work/com.buglabs.build.oe/meta:/home/brian/work/com.buglabs.build.oe/meta-oe:/home/brian/work/com.buglabs.build.oe/meta-jalimo
  7.  
  8. // run bitbake -c devshell <package name>
  9. // in this case I use gtk+ because it will automatically put me in the directory where I can find examples
  10. // but in general I can do bitbake -c devshell bug-image-production and then cd into wherever my sources are
  11. brian@sawfly:~/work/com.buglabs.build.oe$ bitbake -c devshell gtk+
  12. NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
  13. NOTE: Handling BitBake files: \ (1048/1048) [100 %]
  14. NOTE: Parsing finished. 1024 cached, 0 parsed, 24 skipped, 0 masked.
  15. NOTE: build 200903121646: started
  16.  
  17. OE Build Configuration:
  18. BB_VERSION        = "1.8.11"
  19. METADATA_REVISION = "6039"
  20. TARGET_ARCH       = "arm"
  21. TARGET_OS         = "linux-gnueabi"
  22. MACHINE           = "bug"
  23. DISTRO            = "poky"
  24. DISTRO_VERSION    = "3.1"
  25. TARGET_FPU        = "soft"
  26.  
  27. NOTE: Resolving any missing task queue dependencies
  28. NOTE: preferred version 2.5 of glibc not available (for item virtual/arm-poky-linux-gnueabi-libc-for-gcc)
  29. NOTE: Preparing runqueue
  30. NOTE: Executing runqueue
  31. NOTE: Running task 20 of 20 (ID: 2, /home/brian/work/com.buglabs.build.oe/meta/packages/gtk+/gtk+_2.12.7.bb, do_devshell)
  32. NOTE: package gtk+-2.12.7: started
  33. NOTE: package gtk+-2.12.7-r6: task do_devshell: started
  34.  
  35. // A new terminal window should open up and you'll be in the build directory of <package name>, in this case gtk
  36. // go into the helloworld example directory
  37. brian@sawfly:~/work/com.buglabs.build.oe/build/tmp/work/armv6-poky-linux-gnueabi/gtk+-2.12.7-r6/gtk+-2.12.7$ cd examples/helloworld
  38. // the next line is basically what you would do on any linux box, except I use the arm compiler with $CC
  39. brian@sawfly:~/work/com.buglabs.build.oe/build/tmp/work/armv6-poky-linux-gnueabi/gtk+-2.12.7-r6/gtk+-2.12.7/examples/helloworld$ $CC helloworld.c -o helloworld `pkg-config --cflags --libs gtk+-2.0`
  40. // now move it to the bug and yer done!
  41. brian@sawfly:~/work/com.buglabs.build.oe/build/tmp/work/armv6-poky-linux-gnueabi/gtk+-2.12.7-r6/gtk+-2.12.7/examples/helloworld$ scp helloworld root@bug:
  42. root@bug's password:
  43. helloworld                                    100% 9285     9.1KB/s   00:00