| | 1 | = Getting started = |
| | 2 | |
| | 3 | PACPUS is a framework provided as source code so to use it you have to compile it by yourself. |
| | 4 | |
| | 5 | == Compilation, installation and test of PACPUS framework == |
| | 6 | |
| | 7 | Prerequisites |
| | 8 | |
| | 9 | This tutorial was validated with a Linux Mint 17.2 distribution. |
| | 10 | |
| | 11 | First you will need some third party software, run this command in a terminal: |
| | 12 | |
| | 13 | {{{ |
| | 14 | sudo apt-get install subversion build-essential libboost-all-dev cmake qt5-default qttools5-dev qttools5-dev-tools |
| | 15 | }}} |
| | 16 | |
| | 17 | Then we will get the code and compile it. |
| | 18 | |
| | 19 | {{{ |
| | 20 | cd ~ |
| | 21 | mkdir dev |
| | 22 | cd dev |
| | 23 | mkdir pacpus |
| | 24 | cd pacpus |
| | 25 | svn co https://devel.hds.utc.fr/svn/pacpusframework/trunk pacpusframework |
| | 26 | cd pacpusframework/build |
| | 27 | ./build_linux.sh |
| | 28 | }}} |
| | 29 | |
| | 30 | First cmake will prompt you the result of the project building: |
| | 31 | -- Configuring done |
| | 32 | -- Generating done |
| | 33 | Then the compîlation will start in release and debug modes. If succeeded the script will install the pacpus environment in /opt/pacpus |
| | 34 | |
| | 35 | TO finish we will check the working of the installation |
| | 36 | |
| | 37 | sudo chown -R $USER /opt/pacpus |
| | 38 | cd /opt/pacpus/0.2.0/bin |
| | 39 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../lib |
| | 40 | ./PacpusSensor |
| | 41 | |
| | 42 | If working you will see the PacpusSensor window on the screen. Of course, as we don't provide a XML configuration file, we will get some errors in the terminal. |
| | 43 | |
| | 44 | Let's to the next tutorial to know how to develop quickly a small application. |
| | 45 | |