Installation » History » Version 1
ptrkrysik, 07/06/2018 10:35 AM
Installation instructions of gr-gsm
1 | 1 | ptrkrysik | Manual compilation and installation |
---|---|---|---|
2 | ----------------------------------- |
||
3 | |||
4 | Currently manual method of installation is considered to be the easiest way to get newest version of *gr-gsm* up and running. The *gr-gsm* repository contains automatic tests of manual installation in form of [dockerfiles](https://github.com/ptrkrysik/gr-gsm/tree/development/tests/dockerfiles) that are built and executed by [Travis CI](https://travis-ci.org/ptrkrysik/gr-gsm/builds) continuous integration service. Travis CI informs if particular revision of *gr-gsm* builds and passes tests on a set of GNU/Linux distributions. History of the results can be checked on [the *gr-gsm*'s Travis CI page](https://travis-ci.org/ptrkrysik/gr-gsm/builds). |
||
5 | |||
6 | The instructions presented here are a version of [dockerfiles](https://github.com/ptrkrysik/gr-gsm/tree/development/tests/dockerfiles) with stripped instructions specific to docker and without running unit tests. This wiki might at some moment be behind installation procedures contained in the [dockerfiles](https://github.com/ptrkrysik/gr-gsm/tree/development/tests/dockerfiles) so in case of installation problems it is a good idea to look in there. |
||
7 | |||
8 | Debbian-based distributions (Debian Testing, Ubuntu >=16.04, Kali Rolling Edition) |
||
9 | ================================= |
||
10 | |||
11 | First install all needed prerequisites with following command: |
||
12 | |||
13 | ``` |
||
14 | apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
||
15 | cmake \ |
||
16 | autoconf \ |
||
17 | libtool \ |
||
18 | pkg-config \ |
||
19 | build-essential \ |
||
20 | python-docutils \ |
||
21 | libcppunit-dev \ |
||
22 | swig \ |
||
23 | doxygen \ |
||
24 | liblog4cpp5-dev \ |
||
25 | python-scipy \ |
||
26 | gnuradio-dev \ |
||
27 | gr-osmosdr \ |
||
28 | libosmocore-dev |
||
29 | ``` |
||
30 | |||
31 | Currently on Debian Testing and Kali Rolling execution of following command is needed: |
||
32 | ``` sudo ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 ``` |
||
33 | It is a workaround due to an [issue](https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145) with faulty libvolk installation on these systems at the moment. |
||
34 | |||
35 | Then download the *gr-gsm*'s source and build it with following commands: |
||
36 | ``` |
||
37 | git clone https://git.osmocom.org/gr-gsm |
||
38 | cd gr-gsm |
||
39 | mkdir build |
||
40 | cd build |
||
41 | cmake .. |
||
42 | # The parallel build sometimes fails when the .grc_gnuradio |
||
43 | # and .gnuradio directories do not exist |
||
44 | mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ |
||
45 | make #to speedup compilation you can use parallel build |
||
46 | #"make -j $nproc" where $nproc is number of CPU cores |
||
47 | sudo make install |
||
48 | sudo ldconfig |
||
49 | ``` |