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.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:installing_yarp_in_debian [2019/04/23 22:35] – [Install dependencies] amora | tutorials: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}/ | export YARP_DATA_DIRS=${HOME}/ | ||
+ | </ | ||
* Dependencies: | * Dependencies: | ||
- | | + | <code bash> |
+ | | ||
+ | </ | ||
+ | ==== Compilation and Installation ==== | ||
- | ==== Compilation ==== | + | <code bash yarp_installer.sh> |
- | + | cd ~/ | |
- | cd ~/ | + | git clone git:// |
- | git clone git:// | + | cd yarp |
- | cd yarp | + | mkdir build |
- | mkdir build | + | cd build |
- | cd build | + | cmake -D CMAKE_INSTALL_PREFIX=${HOME}/ |
- | | + | make -j10 |
- | + | make install | |
- | * Press " | + | cd ~/ |
- | * Set the CMAKE_INSTALL_PREFIX | + | xstow yarp |
- | * Press " | + | </ |
- | * Set CREATE_PYTHON, and ENABLE_YARPMOD_OPENCV_GRABBER | + | |
- | * Unset YARP_COMPILE_TESTS | + | |
- | * Press " | + | |
- | * Compile: | + | |
- | + | ||
- | make -j10 | + | |
- | + | ||
- | ==== Installation | + | |
- | + | ||
- | cd ~/ | + | |
- | make install | + | |
- | cd ~/ | + | |
- | 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 | ||
+ | </ | ||
* 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 | ||
- | + | </ | |
- | * In another console run: yarpview | + | * In another console run: |
- | * In another console run: yarp connect /grabber / | + | <code bash> |
+ | | ||
+ | </ | ||
+ | * In another console run: | ||
+ | <code bash> | ||
+ | yarp connect /grabber / | ||
+ | </ | ||
* To test yarp in python: | * To test yarp in python: | ||
- | * Open ipython and then: | ||
- | import yarp | + | |
- | | + | |
- | * You should not get any errors | + | * You should not get any errors |
==== 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 | ||
+ | </ |
tutorials/installing_yarp_in_debian.1556058958.txt.gz · Last modified: 2022/09/20 00:08 (external edit)