Cross Compile Player with Openembedded and BitBake

From The Player Project

The following is a simple guide on how to cross compile player using bitBake and Openembedded(OE) tools.

The author of this guide is new to Openembedded, bitBake and cross compiling in general so please feel free to edit, update or correct. The guide was tested on the Overo Gumstix with an iRobot Create and a Hokuyo Urg Laser.

Special thanks to Ash Charles, Geoffrey Biggs and Rich Mattes who helped me getting this working.

DEPENDS = "" This recipe uses a very simple config of player that does not require any dependencies, if you wanted for example to add playerv, you would first turn the cMake variable for playerv to on( -DBUILD_UTILS_PLAYERV=ON) then you would add the relevant dependency (DEPENDS = "gtk+") More

do_configure() Task configures cMake. I could not find a disable all drivers command so instead had to manually disable every driver that I didn't want, which is why the do_configure task is so packed and big. If you want to add a driver or change some cMake configuration find the relevant command variable and change it ie -DBUILD_SHARED_LIBS=ON or -DENABLE_DRIVER_BLOBTRACKER=ON

do_compile() Task runs make

do_install() Installs the targets to the ${D} (destination directory, which is a directory within your build environment)