Add make cmake and cmake to package dependencies + bring IDEs and codeblock one level down authored by Antoine Lima's avatar Antoine Lima
...@@ -29,21 +29,13 @@ reload the script: ...@@ -29,21 +29,13 @@ reload the script:
# Install packages # Install packages
Install python needed by the toolchains installation scripts: Run the following command to install every tool required to compile and run flair code:
`sudo apt install python` ```sh
sudo apt install python-is-python3 git mesa-utils libgl1-mesa-dev build-essential cmake
If it is not available install the following package: ```
`sudo apt install python-is-python3`
Install g++ to compile simulator and ground station: (flair does not use the toolchain for these programs to avoid problems with opengl):
`sudo apt install g++`
Install glxinfo needed to detect your graphic driver (for simulator):
`sudo apt install mesa-utils libgl1-mesa-dev` ## IDE (Optional)
Install an optional IDE (*Integrated Development Environment*), for example: Install an optional IDE (*Integrated Development Environment*), for example:
* CodeLite (all Flair documentation is based on it): * CodeLite (all Flair documentation is based on it):
...@@ -60,9 +52,9 @@ Install an optional IDE (*Integrated Development Environment*), for example: ...@@ -60,9 +52,9 @@ Install an optional IDE (*Integrated Development Environment*), for example:
`sudo apt-get install codeblocks codeblocks-contrib` `sudo apt-get install codeblocks codeblocks-contrib`
# Codeblocks ### Codeblocks
## if Codeblocks is slow or crashes #### 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. 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](http://sourceforge.net/projects/codeblocks/files/Binaries/10.05). One solution is to deactivate this plugin, another solution is to install an older version of Codeblocks (10.05), from [this page](http://sourceforge.net/projects/codeblocks/files/Binaries/10.05).
...@@ -77,7 +69,7 @@ $ cd .. ...@@ -77,7 +69,7 @@ $ cd ..
$ rm -rf amd64 codeblocks-10.05-1-debian-amd64.tar.bz2 $ rm -rf amd64 codeblocks-10.05-1-debian-amd64.tar.bz2
``` ```
## environment variables #### environment variables
When Codeblocks is not launched from command line, it does not read environment variables set in .bashrc. 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. This can make trouble when a CMakelists.txt is modified for example.
... ...
......