wiki:BeginnersBuildDeprecated
Last modified 4 years ago Last modified on 10/31/12 01:34:08

PLEASE NOTE - These instructions are outdated and only work with older versions of GNUradio, Ubuntu and OP25 - They will not work with current builds

These instructions were compiled in January 2010, and revised in April 2010 with a few minor changes. These directions are fairly explicit, so that even those with little Linux experience should be able to follow along. Please note you'll need a decent processor to get a discriminator tap decode to work -- I'd guess at least a dual core CPU running at 2.4GHz+. This isn't a project for your five year old laptop to tackle.

Here's what's worked for me, based on op25 svn revision 198:

  1. Install Ubuntu 9.10

Upon reboot, login and launch a terminal window (Applications -> Accessories -> Terminal), and run the rest of the following instructions from this window.

  1. The next commands will update your system with the latest patches:
    sudo apt-get upgrade
    sudo shutdown -r now
    
  1. After the system reboots, relaunch the terminal window as above and continue with these commands, which will install the gnuradio prerequisites:
sudo apt-get install gcc-4.1 g++-4.1 swig g++ automake libtool \
python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev \
fort77 sdcc sdcc-libraries libsdl1.2-dev python-wxgtk2.8 subversion \
git-core guile-1.8-dev libqt4-dev python-numpy ccache python-opengl \
libgsl0-dev python-cheetah python-lxml doxygen qt4-dev-tools \
libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools libitpp-dev \
libjack-dev texlive-latex-base
  1. This next part installs gnuradio:
mkdir ~/src; cd ~/src
wget ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.2.2.tar.gz
tar zxvf gnuradio-3.2.2.tar.gz
cd gnuradio-3.2.2
./configure
make -j 4 CC=gcc-4.1 CXX=g++-4.1
make check
sudo make install
  1. This part installs the gr-fsk4 demodulator:
cd ~/src
wget http://radiorausch.googlepages.com/gr-fsk4-22Apr08.tar.gz -O gr-fsk4-22Apr08.tar.gz
tar zxvf gr-fsk4-22Apr08.tar.gz
cd gr-fsk4
./bootstrap
./configure
make -j 4 CC=gcc-4.1 CXX=g++-4.1
sudo make install
  1. And this part will setup the op25 source.
cd ~/src
svn co http://op25.osmocom.org/svn/trunk@198 op25
cd op25/decoder
./bootstrap
./configure
make -j 4 CC=gcc-4.1 CXX=g++-4.1
sed -i 's/flow_graph/top_block/' src/python/qa_op25.py
make check
sudo make install

sudo cp /usr/local/include/gnuradio/swig/* /usr/include/gnuradio/swig 
sudo cp /usr/local/include/gnuradio/* /usr/include/gnuradio/ 

cd ~/src/op25/imbe_vocoder
./bootstrap
./configure CXXFLAGS="-O3"
make -j 4 CC=gcc-4.1 CXX=g++-4.1
sudo make install

echo -e "[wxgui]\nstyle=nongl\nfft_rate=4\n" > ~/.gnuradio/config.conf
  1. You should be done ready to run the app. Plug your scanner into the mic input. Launch the sound mixer (under System -> Preferences -> Sound) and make sure you can see the signal coming in from the discriminator tap of the scanner.
cd ~/src/op25/python
./audio_p25_rx.py -a

This last bit is up to you. Poke around the interface, read the rest of the wiki and mailing list, and, well, good luck!