| Prev: Windows - Installing from Sources | Up: Installation | Next: Mac - Installing from Sources |
|---|---|---|
Table of contents
In the following guide, we will assume that FARSA source files are in the SOURCES_DIR directory, that the building process will make use of makefiles and will happen in the BUILD_DIR directory and that FARSA will be installed in the INSTALL_DIR directory. You can put those directories wherever you want, but we suggest you to follow these guidelines:
Install the following programs:
All the programs and libraries above should be available with any recent Linux distribution. The easiest way to install them is generally through your distribution package manager.
Add the following environment variables (they are not necessary if you install FARSA in system paths, such as /usr or /usr/local):
:::INI
FARSA_DIR=INSTALL_DIR
PATH=$FARSA_DIR/bin:$PATH
LD_LIBRARY_PATH=$FARSA_DIR/lib:$LD_LIBRARY_PATH
Download and extract the FARSA source code package farsa-x.y.z .zip or .tar.gz file (sourceforge.net) inside the SOURCES_DIR directory. Alternatively you can chekout code directly from the svn repository.
Generate the Makefiles for building FARSA using CMake with the following settings (i.e. run CMake, using SOURCES_DIR as that directory with source files and BUILD_DIR as the directory with binary files, press the CONFIGURE button, set the parameters specified below, and finally press the CONFIGURE and then the GENERATE buttons):
:::INI
CMAKE_INSTALL_PREFIX = INSTALL_DIR
USE_GSL = ON # Only if you installed GSL, otherwise set to OFF
EXPERIMENTAL_NEWTON_FROMSOURCE = ON
FARSA_USE_QT5 = OFF # If you have QT 4.x installed, set to ON if you have QT 5.x installed
Compile and install FARSA with the following commands (in a terminal):
:::bash
cd BUILD_DIR
make
make install
Note: if compilation fails with errors regarding SSE (like "SSE instruction set not enabled"), try adding the "-march=native" option to the CMAKE_CXX_FLAGS and CMAKE_C_FLAGS cmake variables. These variables are marked as advanced, and are not displayed by default. You can enable the visualization of those variables pressing "t" (if using ccmake) or by checking the "Advanced" checkbox (if using cmake-gui).
Support for the iCub robot in FARSA is now in a plugin, which needs to be compiled and installed. The plugin can be found in the farsa-plugins package (available here) or directly in the svn repository.
In order to compile the FARSA iCub plugin, you first need to install YARP and iCub. The instructions for both are provided at this page. The FARSA iCub plugin should work with versions of YARP following 2.3.62 and of iCub following 1.1.
Once the dependencies have been installed, you can compile and install the iCub plugin as any other plugin. The procedure is explained in this page. Remember to install the iCub plugin so that it can be used by other plugins depending on it.
If everything went well, you should now be able to start the total99 executable simply by double-clicking on the executable present into INSTALL_DIR/bin.
Manual: Home
Manual: Installation
Manual: MacSources
Manual: WindowsSources
Anonymous