Project

General

Profile

BuildInstructionsPage » History » Version 1

zecke, 04/22/2017 04:23 PM

1 1 zecke
2 1 zecke
= O B S O L E T E =
3 1 zecke
4 1 zecke
In late 2013/early 2014 OP25 was migrated from svn to git.  At the same time two other major changes 
5 1 zecke
were made (GNU Radio 3.7 API, which is not backward compatible; and automake was removed and replaced
6 1 zecke
with cmake).  This page contains instructions for building the old SVN and GR3.6 version of OP25.
7 1 zecke
8 1 zecke
See the new install page
9 1 zecke
10 1 zecke
= Getting and Building OP25 =
11 1 zecke
This page describes how you can get the latest version of OP25 and build it for your computer.
12 1 zecke
13 1 zecke
== Installing the Pre-requisites ==
14 1 zecke
Before doing anything you'll need to make sure you have all the pre-requisite software installed. At the very minimum this will include:
15 1 zecke
 * Subversion -- Revision control software to access the source code repository
16 1 zecke
 * g++ -- The GNU C++ compiler,
17 1 zecke
 * make -- GNU Make,
18 1 zecke
 * GNURadio (Release 3.6 or later) -- The free software digital signal processing toolkit and
19 1 zecke
 * autoconf+automake -- So you can create the configure script and makefiles.
20 1 zecke
 * [http://itpp.sourceforge.net IT++] A library of communications-related code.
21 1 zecke
22 1 zecke
The details on what you need to obtain and how you do so vary between GNU/Linux distributions. Its easiest on Debian (and derived distributions such as Ubuntu) and can be quite painful on some distributions. Your mileage probably varies so feel free to document the process thoroughly. We get the pre-requisites installed with one command on Ubuntu as follows:
23 1 zecke
24 1 zecke
{{{
25 1 zecke
sudo apt-get -y install swig g++ automake libtool python-dev libfftw3-dev \
26 1 zecke
libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries \
27 1 zecke
libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \
28 1 zecke
libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
29 1 zecke
python-cheetah python-lxml doxygen qt4-dev-tools \
30 1 zecke
libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools libitpp-dev \
31 1 zecke
bison flex libgtk2.0-dev libpcap-dev
32 1 zecke
}}}
33 1 zecke
34 1 zecke
== Downloading the Source Code ==
35 1 zecke
Now you should be ready to get the source code. The best way to do this is using Subversion:
36 1 zecke
37 1 zecke
{{{
38 1 zecke
svn co http://op25.osmocom.org/svn/trunk op25
39 1 zecke
}}}
40 1 zecke
41 1 zecke
This should create a directory named 'op25' containing the latest version of the source files.
42 1 zecke
43 1 zecke
== Compiling ==
44 1 zecke
Compiling and installing OP25 requires you run the following commands:
45 1 zecke
46 1 zecke
{{{
47 1 zecke
cd op25/blocks
48 1 zecke
./bootstrap && ./configure && make
49 1 zecke
make check
50 1 zecke
sudo make install
51 1 zecke
}}}
52 1 zecke
53 1 zecke
Of course, you won't get away with it that easily! There are probably going to be compile errors and such that require you to install missing packages. Please make a careful note of the packages you need to install and problems you encounter. Then you can update this Wiki page to help others following after. For people without a login for the Wiki you can [mailto:op25-help@sedition.org.au email me] with your notes. Developers can request a Wiki/Subversion login (with your preferred username/password).
54 1 zecke
55 1 zecke
== Compiling the imbe_vocoder block ==
56 1 zecke
57 1 zecke
For the most part, you can follow the directions in the INSTALL file.  Don't forget to run the bootstrap script prior to running configure.  You may also be able to get some extra speed by enabling some additional gcc optimizations.  Here's one possible build sequence:
58 1 zecke
{{{
59 1 zecke
cd op25/imbe_vocoder
60 1 zecke
sh bootstrap
61 1 zecke
./configure CXXFLAGS="-O3"
62 1 zecke
make
63 1 zecke
sudo make install
64 1 zecke
}}}
65 1 zecke
66 1 zecke
Note: the 'decoder' block (see above) must have previously been installed prior to building this block.
67 1 zecke
68 1 zecke
== Compiling the repeater block ==
69 1 zecke
70 1 zecke
First, compile the imbe_vocoder block (see above).  Then do
71 1 zecke
{{{
72 1 zecke
cd op25/repeater
73 1 zecke
sh bootstrap
74 1 zecke
./configure
75 1 zecke
make
76 1 zecke
sudo make install
77 1 zecke
}}}
78 1 zecke
79 1 zecke
80 1 zecke
== Build instructions for the Linux novice ==
81 1 zecke
82 1 zecke
[BeginnersBuildDeprecated These directions for beginners] might be of help to those without a background in Linux to get the project up and running, or even those with experience who are running into a wall getting a piece to build.  
Add picture from clipboard (Maximum size: 48.8 MB)