Cross Compile Player with Gearbox

From The Player Project

(Difference between revisions)
Jump to: navigation, search
Line 55: Line 55:
-
I am using local source in this recipe instead of svn, you must download the gearbox source and place it in your directory so that bitBake can find it. Otherwise you can edit the recipe to use svn.
+
I am using local source in this recipe instead of svn, you must download the gearbox source and place it in your directory so that bitBake can find it. Otherwise you can edit the recipe to use svn. [http://docs.openembedded.org/usermanual/html/src_uri_variable.html OE svn]
Line 63: Line 63:
Once again I have customised the cMake variables, right now everything is off so change them to what you want.
Once again I have customised the cMake variables, right now everything is off so change them to what you want.
 +
For further explanation on the recipe refer to the [http://playerstage.sourceforge.net/wiki/Cross_Compile_Player_with_Openembedded_and_bitBake player recipe]
-
'''Once you have installed and packaged gearbox, run the player [http://playerstage.sourceforge.net/wiki/Cross_Compile_Player_with_Openembedded_and_bitBake recipe] with the relevant drivers turned on.'''  
+
 
 +
'''Once you have installed and packaged gearbox, run the [http://playerstage.sourceforge.net/wiki/Cross_Compile_Player_with_Openembedded_and_bitBake player recipe] with the relevant drivers turned on.'''  
On your embedded machine install the gearbox package then the player package and your set.
On your embedded machine install the gearbox package then the player package and your set.

Revision as of 03:57, 3 February 2010

This guide is a follow up of the Cross compiling Player with Openembedded and bitBake guide. If you are here you wish to install player with the gearbox drivers.

To get gearbox working with player you must install gearbox first. So if you already have player installed, delete all player files in your /usr/local directory.


Gearbox Recipe



DESCRIPTION = "Software tools and drivers for robot software"

LICENSE = ""

HOMEPAGE = "http://gearbox.sourceforge.net/"

DEPENDS = ""

PR = "r0"

SRC_URI = " \ file://gearbox-9.11.tar.gz \"


S="${WORKDIR}/gearbox-9.11"


inherit autotools pkgconfig


do_configure () {

cmake -DENABLE_LIB_BASICEXAMPLE=OFF -DENABLE_LIB_FLEXIPORT=OFF -DENABLE_LIB_GBXADVANCEDEXAMPLE=OFF -DENABLE_LIB_GBXGARMINACFR=OFF -DENABLE_LIB_GBXICEUTILACFR=OFF -DENABLE_LIB_GBXNOVATELACFR=OFF -DENABLE_LIB_GBXSERIALACFR=OFF -DENABLE_LIB_GBXSICKACFR=OFF -DENABLE_LIB_GBXSMARTBATTERYACFR=OFF -DENABLE_LIB_GBXUTILACFR=OFF -DENABLE_LIB_HOKUYO_AIST=OFF

}

do_compile() {

oe_runmake

}


do_install() {

oe_runmake install DESTDIR=${STAGING_DIR}/armv7a-angstrom-linux-gnueabi

oe_runmake install DESTDIR=${D}

}

FILES_${PN} = "/usr/local/lib/* \ /usr/local/include/* \ /usr/local/share/* \ "



I am using local source in this recipe instead of svn, you must download the gearbox source and place it in your directory so that bitBake can find it. Otherwise you can edit the recipe to use svn. OE svn


autotools is now on. autotools is very important as it installs the pkgconfig files to the staging directory so that when you install player afterwords, player can find the drivers.


Once again I have customised the cMake variables, right now everything is off so change them to what you want.

For further explanation on the recipe refer to the player recipe


Once you have installed and packaged gearbox, run the player recipe with the relevant drivers turned on.


On your embedded machine install the gearbox package then the player package and your set.

Personal tools