welcome: please sign in
location: Diff for "UsingRobotpkg"
Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2008-08-11 16:42:12
Size: 1755
Editor: 2001:660:6602:0:20a:e4ff:fe26:de06
Comment: copy from internal wiki
Revision 6 as of 2013-02-27 14:00:03
Size: 1810
Editor: mallet
Comment: Fix old paths to softs.laas
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Robotpkg is a set of build and packaging tools, inspired by [http://pkgsrc.se/ pkgsrc], designed to build and install OpenRobots packages. [[http://robotpkg.openrobots.org/|Robotpkg]] is a set of build and packaging tools, inspired by [[http://pkgsrc.se/|pkgsrc]], designed to build and install !OpenRobots packages.
Line 7: Line 7:
 * Decide in which directory you'll install OpenRobots. We'll assume `/usr/local/openrobots` in this document.  * Decide in which directory you'll install !OpenRobots. We'll assume `${HOME}/openrobots` in this document.
Line 10: Line 10:
mkdir -p /usr/local/openrobots mkdir -p ${HOME}/openrobots
Line 13: Line 13:
 * clone the [http://git.or.cz git] repository for robotpkg to your work space:  * clone the [[http://git.or.cz|git]] repository for robotpkg to your work space:
Line 16: Line 16:
cd /usr/local/openrobots cd ${HOME}/openrobots
Line 19: Line 19:
git clone git.laas.fr://git/robots/robotpkg git clone git://git.openrobots.org/git/robots/robotpkg
Line 26: Line 26:
  * set the ROBOTPKG_BASE environment variable to `/usr/local/openrobots`
  * add `/usr/local/openrobots/bin:/usr/local/openrobots/sbin` to your PATH
  * add `${HOME}/openrobots/bin:${HOME}/openrobots/sbin` to your PATH
  * add a definition of `PKG_CONFIG_PATH` with ${HOME}/openrobots/lib/pkgconfig as its value.
Line 32: Line 32:
setenv PATH /usr/local/openrobots/bin:/usr/local/openrobots/sbin:$PATH
setenv ROBOTPKG_BASE /usr/local/openrobots
setenv PATH ${HOME}/openrobots/bin:${HOME}/openrobots/sbin:$PATH
setenv PKG_CONFIG_PATH ${HOME}/openrobots/lib/pkgconfig
Line 39: Line 39:
export PATH=/usr/local/openrobots/bin:/usr/local/openrobots/sbin:$PATH
export ROBOTPKG_BASE=/usr/local/openrobots
export PATH=${HOME}/openrobots/bin:${HOME}/openrobots/sbin:$PATH
export PKG_CONFIG_PATH=${HOME}/openrobots/lib/pkgconfig
Line 43: Line 43:
 * Run the `bootstrap` script from `/usr/local/openrobots/src/robotpkg/bootstrap/`  * Run the `bootstrap` script from `${HOME}/openrobots/src/robotpkg/bootstrap/`
Line 46: Line 46:
cd /usr/local/openrobots/src/robotpkg/bootstrap
./bootstrap --prefix=/usr/local/openrobots
cd ~/openrobots/src/robotpkg/bootstrap
./bootstrap --prefix=${HOME}/openrobots
Line 55: Line 55:
cd /usr/local/openrobots/src/robotpkg/hardware/platine-genom cd ${HOME}/openrobots/src/robotpkg/hardware/platine-genom

Using robotpkg to build openrobots

Robotpkg is a set of build and packaging tools, inspired by pkgsrc, designed to build and install OpenRobots packages.

Getting robotpkg

  • Decide in which directory you'll install OpenRobots. We'll assume ${HOME}/openrobots in this document.

    mkdir -p ${HOME}/openrobots
  • clone the git repository for robotpkg to your work space:

    cd ${HOME}/openrobots
    mkdir src
    cd src
    git clone git://git.openrobots.org/git/robots/robotpkg

Bootstrapping

  • edit your shell startup file :
    • add ${HOME}/openrobots/bin:${HOME}/openrobots/sbin to your PATH

    • add a definition of PKG_CONFIG_PATH with ${HOME}/openrobots/lib/pkgconfig as its value.

    • If you're using [t]csh this can be done by adding the following to ${HOME}/.login:

      # OpenRobots
      setenv PATH ${HOME}/openrobots/bin:${HOME}/openrobots/sbin:$PATH
      setenv PKG_CONFIG_PATH ${HOME}/openrobots/lib/pkgconfig
    • If you're using bash or ksh, add the following to ${HOME}/.profile:

      # OpenRobots
      export PATH=${HOME}/openrobots/bin:${HOME}/openrobots/sbin:$PATH
      export PKG_CONFIG_PATH=${HOME}/openrobots/lib/pkgconfig
  • Run the bootstrap script from ${HOME}/openrobots/src/robotpkg/bootstrap/

    cd ~/openrobots/src/robotpkg/bootstrap
    ./bootstrap --prefix=${HOME}/openrobots

Building modules

  • Go to the sub-directory of robotpkg corresponding to the package you want and run make install. For instance

    cd ${HOME}/openrobots/src/robotpkg/hardware/platine-genom
    make install

    will install the platine module and all its dependencies (pocolibs, genom, hardlib, etc.)

OpenrobotsWiki: UsingRobotpkg (last edited 2014-02-14 16:02:26 by mallet)