Table of Contents

Installing YARP in debian

Install dependencies

First follow Using xstow for local installations

  export YARP_DATA_DIRS=${HOME}/local/share/yarp
  sudo apt install git libgraphviz-dev libace-dev libreadline6-dev libgtkmm-2.4-dev swig libopencv-highgui3.2 libopencv-core3.2 libopencv-dev cmake-curses-gui python-dev qt5-default qtmultimedia5-dev qtdeclarative5-dev qml-module-qtquick-dialogs qml-module-qt-labs-settings qml-module-qtmultimedia libopenmpi-dev qml-module-qt-labs-folderlistmodel libqcustomplot-dev

Compilation and Installation

yarp_installer.sh
cd ~/local/src/
git clone git://github.com/robotology/yarp.git
cd yarp
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=${HOME}/local/DIR/yarp -D YARP_COMPILE_BINDINGS=ON -D CREATE_PYTHON=ON -D YARP_USE_PYTHON_VERSION=$(echo $(python --version) | tr -d a-zA-Z[:blank:]) -D CREATE_YARPDATADUMPER=OFF -D CREATE_GUIS=ON -D ENABLE_yarpmod_opencv_grabber=ON YARP_COMPILE_yarpviz=ON ..
make -j10
make install
cd ~/local/DIR
xstow yarp

Test the installation

yarpserver
  yarpdev --verbose --device opencv_grabber
  yarpview
yarp connect /grabber /yarpview/img:i
python -c "import yarp; buffer=yarp.BufferedPortBottle();"

Update YARP

We try to use the latest yarp version. So some programs may present issues if you stay with old versions. Here are the instructions to updar with the same cmake options.

yarp_updater.sh
  cd ~/local/DIR
  xstow -D yarp
  cd ~/local/src/yarp
  git pull
  cd build
  make -j10
  make install
  cd ~/local/DIR
  xstow yarp