Project

General

Profile

Installation » History » Version 4

ptrkrysik, 07/06/2018 11:05 AM
Correcting links from Github Markdown to Redmine's Textile

1 2 ptrkrysik
h1. Manual compilation and installation
2 1 ptrkrysik
3 4 ptrkrysik
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.
4 1 ptrkrysik
5 4 ptrkrysik
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.
6 1 ptrkrysik
7 2 ptrkrysik
h2. Debbian-based distributions (Debian Testing, Ubuntu >=16.04, Kali Rolling Edition) 
8 1 ptrkrysik
9
First install all needed prerequisites with following command:
10
11 3 ptrkrysik
<pre>
12 1 ptrkrysik
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
13
    cmake \
14
    autoconf \
15
    libtool \
16
    pkg-config \
17
    build-essential \
18
    python-docutils \
19
    libcppunit-dev \
20
    swig \
21
    doxygen \
22
    liblog4cpp5-dev \
23
    python-scipy \
24
    gnuradio-dev \
25
    gr-osmosdr \
26
    libosmocore-dev
27 3 ptrkrysik
</pre>
28 1 ptrkrysik
29
Currently on Debian Testing and Kali Rolling execution of following command is needed:
30 3 ptrkrysik
<pre> sudo ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 </pre>
31 4 ptrkrysik
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.
32 1 ptrkrysik
33
Then download the *gr-gsm*'s source and build it with following commands:
34 3 ptrkrysik
<pre>
35 1 ptrkrysik
git clone https://git.osmocom.org/gr-gsm
36 4 ptrkrysik
cd gr-gsm
37
mkdir build
38
cd build
39
cmake ..
40
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/
41
make
42
sudo make install
43
sudo ldconfig
44 3 ptrkrysik
</pre>
45
46 4 ptrkrysik
To speedup compilation instead of "make" you can use parallel build <pre>make -j $nproc</pre> where "$nproc" is number of CPU cores. The "mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/" line is there because without it parallel build sometimes fails.
Add picture from clipboard (Maximum size: 48.8 MB)