How to build from sources

First, get all submodules:

git submodule update --init --recursive

Ubuntu 20.04 and above

Install the dependencies:

sudo apt install extra-cmake-modules libsqlite3-dev libzip-dev qtbase5-dev libqt5svg5-dev libqt5texttospeech5-dev libproj-dev mesa-common-dev libglu1-mesa-dev

cd to the PprzGCS root, and build the needed libraries:

./build.sh libs

Now you should be able to build the app with:

./build.sh app

Ubuntu 18.04

Qt5

First, you need to install Qt5.12.0 or above.

Setup in your .bashrc the environnement variable Qt5_DIR for cmake to find Qt5:

export Qt5_DIR="/path/to/Qt/5.12.0/gcc_64/lib/cmake/Qt5"

Dependencies

Install the dependencies:

sudo apt install extra-cmake-modules libsqlite3-dev libzip-dev mesa-common-dev libglu1-mesa-dev

PROJ

Download and build proj (run these commands from the przGCS root directory):

curl -L https://github.com/OSGeo/PROJ/releases/download/6.3.1/proj-6.3.1.tar.gz | tar -xz -C ext
cmake -S ext/proj-6.3.1/ -B build/ext/proj -DPROJ_TESTS=OFF -DCMAKE_INSTALL_PREFIX=build/install
cmake --build build/ext/proj
cmake --install build/ext/proj

cd to the PprzGCS root, and build the needed libraries:

./build.sh libs

Now you should be able to build the app with:

./build.sh app

Running PprzGCS

To be able to run it from the paparazzi center, you need to add the build/pprzgcs directory to your $PATH. Adapt this command and add it to your .bashrc:

export PATH="/path/to/PprzGCS/build/pprzgcs:$PATH"

You should now be able to launch it from the Paparazzi center.

If you want to run it from the terminal, set the PAPARAZZI_HOME and the PAPARAZZI_SRC environment variables to your paparazzi path, then just run ./build/pprzgcs/pprzgcs