User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/installing_yarp_in_debian.meta failed
tutorials:installing_yarp_in_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:installing_yarp_in_debian [2019/04/23 22:09] admintutorials:installing_yarp_in_debian [2022/09/20 00:08] (current) – external edit 127.0.0.1
Line 6: Line 6:
   * Add this line to .bashrc   * Add this line to .bashrc
  
 +<code bash>
   export YARP_DATA_DIRS=${HOME}/local/share/yarp   export YARP_DATA_DIRS=${HOME}/local/share/yarp
 +</code>
  
   * Dependencies:   * Dependencies:
  
-  sudo apt-get install git 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-qtmultimedia qtmultimedia5-dev qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings+<code bash> 
 +  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 
 +</code>
  
 +==== Compilation and Installation ====
  
-==== Compilation ==== +<code bash yarp_installer.sh> 
- +cd ~/local/src/ 
-  cd ~/local/src/ +git clone git://github.com/robotology/yarp.git 
-  git clone git://github.com/robotology/yarp.git +cd yarp 
-  cd yarp +mkdir build 
-  mkdir build +cd 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 .. 
-  ccmake ../ +make -j10 
- +make install 
-  * Press "c" to configure for the first time. If you get any errors, correct them all now! +cd ~/local/DIR 
-  * Set the CMAKE_INSTALL_PREFIX to /home/user/local/DIR/yarp, activate CREATE_DEVICE_LIBRARY_MODULES, CREATE_GUIS, and YARP_COMPILE_BINDINGS  +xstow yarp 
-  * Press "c" to reconfigure. If you get any errors, correct them all now! Then press "c" again. +</code>
-  * Set CREATE_PYTHON, and ENABLE_YARPMOD_OPENCV_GRABBER +
-  * Unset YARP_COMPILE_TESTS +
-  * Press "c" and then "g" +
-  * Compile: +
- +
-  make -j10 +
-   +
-==== Installation ==== +
-   +
-  cd ~/local/src/yarp/build +
-  make install +
-  cd ~/local/DIR +
-  xstow yarp +
- +
-  * If you have trouble compiling try to checkout to a previous commit around September 17 2015 +
-  * In case you had ROS (ignore if you don't know what ROS is): +
- +
-  xstow swig-wx +
-  xstow opencv2+
  
 ==== Test the installation ==== ==== Test the installation ====
  
-  * In one console run yarpserver3+  * In one console run  
 +<code bash> 
 +yarpserver 
 +</code>
   * Connect a webcam to one of the usb ports of the computer   * Connect a webcam to one of the usb ports of the computer
   * In another console run:    * In another console run: 
 +<code bash>
   yarpdev --verbose --device opencv_grabber   yarpdev --verbose --device opencv_grabber
- +</code> 
-  * In another console run: yarpview +  * In another console run: 
-  * In another console run: yarp connect /grabber /yarpview/img:+<code bash> 
 +  yarpview 
 +</code> 
 +  * In another console run: 
 +<code bash>  
 +yarp connect /grabber /yarpview/img:
 +</code>
   * To test yarp in python:   * To test yarp in python:
-  * Open ipython and then: 
  
-  import yarp +  python -c "import yarpbuffer=yarp.BufferedPortBottle();"
-  buffer=yarp.BufferedPortBottle()+
  
-  * You should not get any errors in the last two commands+  * You should not get any errors with any command
  
 ==== Update YARP ==== ==== Update YARP ====
Line 69: Line 60:
 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.  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. 
  
 +<code bash yarp_updater.sh>
   cd ~/local/DIR   cd ~/local/DIR
   xstow -D yarp   xstow -D yarp
Line 78: Line 70:
   cd ~/local/DIR   cd ~/local/DIR
   xstow yarp   xstow yarp
 +</code>
tutorials/installing_yarp_in_debian.1556057381.txt.gz · Last modified: 2022/09/20 00:08 (external edit)