Linux:Installation from sources old

From Wiki for iCub and Friends
Revision as of 14:40, 11 November 2011 by Lorenzo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The page contains instructions for compiling YARP and the iCub software. We recommend you get the required dependencies from the binary packages.

Getting all dependencies

Most of the dependencies are already available in the Linux distributions, in some cases (e.g. ipopt or ode in some distributions) we provide our own packages. Follow the step on this page to configure the sources.list.

Install only the package icub-common:

sudo apt-get install icub-common

Install CMake:

 sudo apt-get install cmake

Getting Subversion

Install subversion:

 sudo apt-get install subversion

If you are not familiar with svn we suggest at least you learn the basics. Some instructions are available from the sourceforge website:

A lot of more details (including a quick introduction) can be found instead here:

Important: if you are a developer and are planning to commit to the repository don't forget to configure svn. Follow this link: Subversion_client_flags.

Getting the YARP and iCub sources

Get the YARP sources. Pick a directory where you would like to install the sources, e.g. /home/user

 cd /home/user
 svn co

This will create a directory called yarp2 with all the sources.

  • Set the YARP_ROOT environment variable in your .bashrc to point to /home/user/yarp2.

Get the iCub sources. In the same directory (or elsewhere):

 svn co

This will create a directory iCub with all the sources.

Compile YARP

Create YARP makefiles

Compile YARP

Setup your environment

Compile iCub

Pick application directory

Create iCub makefiles

Compile iCub

Setup your environment