| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Setup your computer = |
| 4 | |
| 5 | == Fl-AIR directory == |
| 6 | |
| 7 | It is advised to put all Fl-AIR related stuffs in the same directory, for example $HOME/flair: |
| 8 | {{{ |
| 9 | $ mkdir $HOME/flair |
| 10 | }}} |
| 11 | |
| 12 | Then add an evironement variable to your .bashrc with the path of this directory: |
| 13 | {{{ |
| 14 | $ nano ~/.bashrc |
| 15 | }}} |
| 16 | and add |
| 17 | {{{ |
| 18 | #!sh |
| 19 | # variable for Fl-AIR |
| 20 | export FLAIR_ROOT=$HOME/flair |
| 21 | }}} |
| 22 | reload the script |
| 23 | {{{ |
| 24 | $ source ~/.bashrc |
| 25 | }}} |
| 26 | |
| 27 | All Fl-AIR documentation, scripts and CMakeLists.txt will use this variable. |
| 28 | |
| 29 | == Install packages == |
| 30 | |
| 31 | Some 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 | {{{ |
| 39 | sudo apt-get install codeblocks |
| 40 | }}} |
| 41 | * or eclipse: |
| 42 | {{{ |
| 43 | sudo 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 | |
| 52 | It seems that auto completion plugin of Codeblocks (version 12.11 and up) does not work very well with a cmake generated project. |
| 53 | One 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]. |
| 54 | For 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 | |
| 67 | When Codeblocks is not launched from command line, it does not read environment variables set in .bashrc. |
| 68 | This can make trouble when a CMakelists.txt is modified for example. |
| 69 | |
| 70 | 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: |
| 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 | |
| 77 | Enfin cliquer deux fois sur valider. |
| 78 | |
| 79 | == Use rtprio == |
| 80 | |
| 81 | 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: |
| 82 | {{{ |
| 83 | $ sudo nano /etc/security/limits.conf |
| 84 | }}} |
| 85 | And add these lines: |
| 86 | {{{ |
| 87 | your_user soft rtprio 99 |
| 88 | your_user hard rtprio 99 |
| 89 | }}} |
| 90 | then logout and login. |