Version 1 (modified by Sanahuja Guillaume, 7 years ago) ( diff )


Setup your computer

Fl-AIR directory

It is advised to put all Fl-AIR related stuffs in the same directory, for example $HOME/flair:

$ mkdir $HOME/flair

Then add an evironement variable to your .bashrc with the path of this directory:

$ nano ~/.bashrc

and add

# variable for Fl-AIR
export FLAIR_ROOT=$HOME/flair

reload the script

$ source ~/.bashrc

All Fl-AIR documentation, scripts and CMakeLists.txt will use this variable.

Install packages

Some additional packages are needed. Install them as follows:

  • general packages:
    $ sudo apt-get install subversion cmake
  • an optional IDE (Integrated Development Environment), for example:
    • codeblocks (all Fl-AIR documentation is based on it):
      sudo apt-get install codeblocks
    • or eclipse:
      sudo apt-get install eclipse-cdt

NB: last codeblocks version has problems with cmake and the code completion plugin. Thus it is recommended to install an older version manually (see next section).


if Codeblocks is slow or crashes

It seems that auto completion plugin of Codeblocks (version 12.11 and up) does not work very well with a cmake generated project. One solution is to deactivate this plugin, another solution is to install an older version of Codeblocks (10.05), from this page. For example on a 64 bits computer:

$ cd
$ wget
$ tar -xjf codeblocks-10.05-1-debian-amd64.tar.bz2
$ cd amd64
$ sudo dpkg -i *.deb
$ cd ..
$ rm -rf amd64 codeblocks-10.05-1-debian-amd64.tar.bz2

environment variables

When Codeblocks is not launched from command line, it does not read environment variables set in .bashrc. This can make trouble when a CMakelists.txt is modified for example.

Pour cela, aller dans le menu settings/environement settings de Codeblocks. Choisir environment variables dans les icônes à gauche. Cliquer sur Add et remplir de la façon suivante:

  • key: IGEP_ROOT
  • value: chemin vers votre dossier igep créé précédemment
  • value: /opt/poky/1.5/sysroots/x86_64-pokysdk-linux (à adapter à votre installation de la toolchain)

Enfin cliquer deux fois sur valider.

Use rtprio

In order to use the Framework without Xenoami, but with high priorities, you need to be root or to allow your user using the following file:

$ sudo nano /etc/security/limits.conf

And add these lines:

your_user		soft	rtprio		99
your_user               hard    rtprio          99

then logout and login.

Note: See TracWiki for help on using the wiki.