Eclipse Build icon will compile and link our C++
source code. Screenshot 10 is the console log of
the walk TheDog project’s build process.
Although you can’t see all of the window
contents in Screenshot 5, you can still put
together some of what you see in Screenshot 10
to what you see in Screenshot 5.
You can see that the GCC C++ compiler
invocation string we entered in Screenshot 6 is
used to kick off the compiler (
arm-linux-gnueabi-g++). The cross compile options including the
C++ include path we specified in Screenshot 8
can also be identified in the console screen
capture. Once the source file walk TheDog is
built, the GCC C++ linker is invoked using
arm-linux-gnueabi-g++. You can also see that the
library path we added in Screenshot 9 is
referenced in the ARM linker command
The compilation and linking process
completed successfully and generated a binary
file called walk TheDog. To the left of the capture,
you can see the newly created walk TheDog
binary file has been placed in the default
workspace directory. The actual path to
walkTheDog is /home/fred/workspace/walkTheDog. This
path was established in the C++ project window captured
in Screenshot 2. A better view of
the ThinkPad local directory
structure exists in Screenshot 11.
Walking the Dog
We now have a binary file in
our ThinkPad workspace directory
that was built to run on the
BeagleBone. So, we have to move the binary file from the
ThinkPad workspace directory to the BeagleBone’s
; Screenshot 9. The ARMing procedure for the BeagleBone Black
libraries is identical to the process used to ARM the includes.
April 2014 71
; Screenshot 10. The compilation and linking steps captured here
follow the command structures, include pathing, and library pathing
we established in Screenshot 5.
; Screenshot 11. This is a shot of
the ThinkPad local workspace
directory structure. The Eclipse
IDE allows us to drag and drop
files between the ThinkPad
workspace directory and the
BeagleBone Black file system.
; Screenshot 12. I was able to create a new directory on the BeagleBone Black
from the Eclipse cross compilation session running on the ThinkPad
using the file and directory resources of Eclipse.