Changes between Initial Version and Version 1 of setup


Ignore:
Timestamp:
04/20/16 10:30:34 (8 years ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup

    v1 v1  
     1[[PageOutline]]
     2
     3= Setup your computer =
     4
     5== Fl-AIR directory ==
     6
     7It is advised to put all Fl-AIR related stuffs in the same directory, for example $HOME/flair:
     8{{{
     9$ mkdir $HOME/flair
     10}}}
     11
     12Then add an evironement variable to your .bashrc with the path of this directory:
     13{{{
     14$ nano ~/.bashrc
     15}}}
     16and add
     17{{{
     18#!sh
     19# variable for Fl-AIR
     20export FLAIR_ROOT=$HOME/flair
     21}}}
     22reload the script
     23{{{
     24$ source ~/.bashrc
     25}}}
     26
     27All Fl-AIR documentation, scripts and CMakeLists.txt will use this variable.
     28
     29== Install packages ==
     30
     31Some additional packages are needed. Install them as follows:
     32* general packages:
     33{{{
     34$ sudo apt-get install subversion cmake
     35}}}
     36* an optional IDE (''Integrated Development Environment''), for example:
     37 * codeblocks (all Fl-AIR documentation is based on it):
     38{{{
     39sudo apt-get install codeblocks
     40}}}
     41 * or eclipse:
     42{{{
     43sudo apt-get install eclipse-cdt
     44}}}
     45
     46__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).
     47
     48== Codeblocks ==
     49
     50=== if Codeblocks is slow or crashes ===
     51
     52It seems that auto completion plugin of Codeblocks (version 12.11 and up) does not work very well with a cmake generated project.
     53One solution is to deactivate this plugin, another solution is to install an older version of Codeblocks (10.05), from [http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/ this page].
     54For example on a 64 bits computer:
     55{{{
     56$ cd
     57$ wget http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Linux%20%2864%20bit%29/codeblocks-10.05-1-debian-amd64.tar.bz2
     58$ tar -xjf codeblocks-10.05-1-debian-amd64.tar.bz2
     59$ cd amd64
     60$ sudo dpkg -i *.deb
     61$ cd ..
     62$ rm -rf amd64 codeblocks-10.05-1-debian-amd64.tar.bz2
     63}}}
     64
     65=== environment variables===
     66
     67When Codeblocks is not launched from command line, it does not read environment variables set in .bashrc.
     68This can make trouble when a CMakelists.txt is modified for example.
     69
     70Pour 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:
     71* key: IGEP_ROOT
     72* value: chemin vers votre dossier igep créé précédemment
     73
     74* key: OECORE_NATIVE_SYSROOT
     75* value: /opt/poky/1.5/sysroots/x86_64-pokysdk-linux (à adapter à votre installation de la toolchain)
     76
     77Enfin cliquer deux fois sur valider.
     78
     79== Use rtprio ==
     80
     81In 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:
     82{{{
     83$ sudo nano /etc/security/limits.conf
     84}}}
     85And add these lines:
     86{{{
     87your_user               soft    rtprio          99
     88your_user               hard    rtprio          99
     89}}}
     90then logout and login.