-
Notifications
You must be signed in to change notification settings - Fork 2
Installation details from scratch on a Linux based system
jeljaik edited this page Dec 1, 2014
·
2 revisions
- Install YARP and iCub
- Install YARP & iCub dependencies on Debian and Ubuntu:
- On Ubuntu, get the Adjective part of your release, e.g. for Ubuntu 14.04:
sudo sh -c 'echo "deb http://www.icub.org/ubuntu trusty contrib/science" > /etc/apt/sources.list.d/icub.list'
While for Debian Squeeze this would be:sudo sh -c 'echo "deb http://www.icub.org/debian squeeze contrib/science" > /etc/apt/sources.list.d/icub.list'
sudo apt-get update
sudo apt-get install icub-common
- On Ubuntu, get the Adjective part of your release, e.g. for Ubuntu 14.04:
- Get the source code:
- Install
git
:sudo apt-get install git
- Switch to where you store your code or software, e.g.
cd ~/software
-
pull
the YARP source code:git clone https://github.com/robotology/yarp.git
-
cd
back to~/software
. -
pull
the iCub source code:git clone https://github.com/robotology/icub-main.git
- Install
- At this point if you type
ls
in~/software
you should get among other software you might have the directories:icub-main
andyarp
. - Let us first configure
yarp
by going to its root directory:cd ~/software/yarp
, creating abuild
directorymkdir build
and usingcmake
/ccmake
to configure and compile the project. To installccmake
(graphical interface ofcmake
) entersudo apt-get install cmake-curses-gui
. Once installed, to configureyarp
for compilation, move to the build directorycd build
, enterccmake ../
and hitc
to do a first configuration of the project. In the list of options that appear make sure the following options areON
(by hittingEnter
):CREATE_GUIS
,CREATE_LIB_MATH
,CREATE_SHARED_LIBRARY
,INSTALL_WITH_RPATH
. Again hitc
until no stars*
appear and finallyg
to generate thecmake
files for compilation. - Finally compile
YARP
by issuing the commandmake
(always in thebuild
directory). - Install
YARP
by doingsudo make install
- Proceed in the same way to compile
iCub
, by going to its root directory, creating abuild
directory and enteringccmake ../
with at least the optionINSTALL_WITH_RPATH
ON
, and hittingc
until no stars*
show up, followed byg
. Compile by typingmake
and install withsudo make install
.
- Install codyco-superbuild.
- Get the dependencies. Boost, Eigen and tinyxml are dependencies that are not included in
icub-commons
. To install them, type:sudo apt-get install libeigen3-dev libboost-system-dev libboost-thread-dev libtinyxml-dev
- Get the source code, making sure you're back in
~/Software
and type `git clone https://github.com/robotology/codyco-superbuild.git'. - If you haven't configure your github account. You should do it at this point with
git config --global user.name FirstName LastName
andgit config --global user.email [email protected]
cd codyco-superbuild && mkdir build && cd build && ccmake ../
- We will assume from this point onwards that you have installed MATLAB in its default directory. If you haven't, please
- After the previous line you get a screen with CMake options in which you should activate the flag
CODYCO_USES_WBI_TOOLBOX
and then proceed as explained before until reaching the compilation. Different from the installation of YARP and iCub, you won't need to install by doingsudo apt-get install
.
- You will find it useful to define the following environmental variables (for further installation instructions described in the
README.md
of this project)CODYCO_SUPERBUILD_DIR
that points to thebuild
directory of codyco-superbuild,YARP_DIR
that points to thebuild
directory of your YARP installation.