Difference between revisions of "QtRadio Installation"

From Ghpsdr3 SDR project
Jump to: navigation, search
(graphical installation)
(Ubuntu 11.10)
Line 57: Line 57:
 
<li>Click on the name 'ghpsdr3' in order to select it and press the 'Install' button
 
<li>Click on the name 'ghpsdr3' in order to select it and press the 'Install' button
 
</ul>
 
</ul>
 +
 +
If the program refuses to install ghpsdr3 complaining that the repository is not found, close it, start a terminal (Ctrl+Alt+T), run '''sudo apt-get update''' and retry with ''Ubuntu Software Center''.
 +
<br>
  
 
You will then find the QtRadio app in the ''Applications'', ''Internet menu.'' If you have the ''Hamradio'' menu installed you will find it there also.<br>
 
You will then find the QtRadio app in the ''Applications'', ''Internet menu.'' If you have the ''Hamradio'' menu installed you will find it there also.<br>

Revision as of 18:58, 14 November 2011

Installation on Linux

The instructions below are for Debian based distributions like Ubuntu but you should be able to compile on any Linux distribution with the correct libraries installed.


Installation from PPA

For Ubuntu Users there is a ppa for the binaries produced from the master branch, maintained by Andrea. Supported versions are: Ubuntu Lucid, Ubuntu Natty, Ubuntu Oneiric, and known to work, Linux Mint 11

At the time of this writing, (Nov 12 2011) PPA release 1.7 is online.

This is the easiest way to install QtRadio, dspserver and the softrock server. The code base is taken from the master branch and in the "about" panel there is some additional information in order to show where the source is coming from.

text mode installation

In order to add this repository to your apt system (U11.10, U11.04, U10.04) enter the following commands in a terminal.

sudo add-apt-repository ppa:andrew-montefusco/ghpsdr3
sudo apt-get update
sudo apt-get install ghpsdr3
graphical installation
Ubuntu 11.04 and older
  • Start the Synaptic Package Manager from the System->Administration menu
  • From the menu Settings select Repositories, a dialog box Software Sources will be shown
  • On the first pane Ubuntu Software check the Community-maintaned Open Source Software (universe) tick
  • On the second pane Other Software click on the add button, and, in the dialog software-properties-gtk enter
    ppa:andrew-montefusco/ghpsdr3
  • Back to the Software sources dialog, press Close
  • Press the Reload button on the top bar of main window
  • Press the Section button (bottom left pane) and next select Amateur Radio and, on the right pane, the ghpsdr3 package
  • Press Apply button on the top bar: answer yes, if so requested, in order to install the required dependencies


Ubuntu 11.10
  • Open the Ubuntu Software Center (from the 'shopper' icon on the left bar)
  • Maximize the window, on the top bar the program menu will be shown
  • Select the menu Edit->Software Sources, a dialog box Software Sources will be shown
  • On the first pane Ubuntu Software check the Community-maintaned Open Source Software (universe) tick
  • On the second pane Other Software click on the add button, and, in the dialog software-properties-gtk enter
    ppa:andrew-montefusco/ghpsdr3
  • Press Close
  • Back to the Software sources dialog, press Close again
  • Into the Search entry field (top right), write down 'ghpsdr3' and press Enter, or pull down the menu 'All Software', should be there too
  • Click on the name 'ghpsdr3' in order to select it and press the 'Install' button

If the program refuses to install ghpsdr3 complaining that the repository is not found, close it, start a terminal (Ctrl+Alt+T), run sudo apt-get update and retry with Ubuntu Software Center.

You will then find the QtRadio app in the Applications, Internet menu. If you have the Hamradio menu installed you will find it there also.
Subsequently you can use the Ubuntu software update process to update to the latest ppa version.
More information about Andrea's PPA is at https://launchpad.net/~andrew-montefusco/+archive/ghpsdr3

Installation from Git

Installing from git involves building or compiling from source. This is required if you want to use one of the various branches to work the "bleeding edge" branches like Alex's rxtx-event branch where the current (Nov 12 2011) TX work is being done. The PPA install is never more than a few days behind master so there is not much to gain from building from git unless you want to work with the source code your self.

Installing compiler and autotool

First off, install the compiler; depending on which distribution are you using, some or all of this stuff could be already installed:

sudo apt-get install make gcc g++
sudo apt-get install autoconf automake autotools-dev libtool

Installing prerequisite packages

Ubuntu 11.04 and older

First of all, you have to check that the universe repository is enabled. Please see the procedure in the previous section #graphical installation .

Next, you will need the following packages installed:

sudo apt-get update
sudo apt-get install \
libqt4-opengl-dev \
qtmobility-dev \
libusb-0.1-4 \
libusb-dev \
libfftw3-dev \
portaudio19-dev \
libpulse-dev \
libsamplerate0-dev \
libusb-1.0-0-dev \
libconfig8-dev \
libtool
Ubuntu 11.10

First of all, you have to check that the universe repository is enabled. Click on the gear shaped icon (bottom into left side bar): the System Settings menu will shown, click on Software Sources and finally check the Community-maintaned Open Source Software (universe) tick. Next, submit the following commands into a terminal window:

sudo apt-get update
sudo apt-get install \
libqt4-opengl-dev \
qtmobility-dev \
libusb-0.1-4 \
libusb-dev \
libfftw3-dev \
portaudio19-dev \
libpulse-dev \
libsamplerate0-dev \
libusb-1.0-0-dev \
libconfig8-dev \
libtool \
xdg-utils

Installing Git

Now you can install git

sudo apt-get install git

Cloning the repository

How to build the latest rxtx-event branch on Ubuntu 11.04

First a new libevent will need to be downloaded and installed, then the actual QtRadio source can be downloaded and built.

Obtaining an up-level libevent library

For the rxtx-event branch of the software, you will also need a version of libevent that is newer than what is available from the Ubuntu distribution. Go to synaptic and completely remove the stock libevent (v1.4) from Ubuntu. (Completely remove is an uninstall option in Synaptic. Additional dependent libraries may also be removed)

Then download the new version from:

http://libevent.org/

libevent-2.0.15-stable.tar.gz

wget https://github.com/downloads/libevent/libevent/libevent-2.0.15-stable.tar.gz

Move the tarball from the Downloads directory to a working directory. A suggestion is to create a src directory within your home directory and move it there. Uncompress and follow the instructions to build and install:

cd
tar -zxvf libevent-2.0.15-stable.tar.gz
cd libevent-2.0.15-stable
./configure
make
sudo make install
sudo ldconfig

Installing codec2 low bit rate audio encoding and decoding

We are adding a low bit rate audio codec called codec 2 to QtRadio/dspserver. You need to download and build the codec2 library. See:

http://www.rowetel.com/blog/?page_id=452

If you don't have subversion installed you will need to get it

sudo apt-get install subversion

Now go get codec2 using subversion

cd
svn co https://freetel.svn.sourceforge.net/svnroot/freetel/codec2
cd codec2
autoreconf -i
./configure
make
sudo make install
sudo ldconfig

Building the rxtx-event branch

This branch is the latest code that contains both RX and TX capability.

Create a new directory or cd to the ~/src directory created for libevent and cd into it.

git clone git://github.com/alexlee188/ghpsdr3-alex

Depending on your Internet connection thorughput, it will take several minute to download. cd into the new directory ghpsdr3-alex:

cd ghpsdr3-alex
git checkout rxtx-event

You are now working with Alex's latest and greatest!

autoreconf -i
./configure
make -j4 all
sudo make install

(If you do not want to actually install the executable binaries, skip the sudo make install and just cd into the following directories and run them from there)

Terminal 1
$ cd ghpsdr3-alex/trunk/src/softrock
$ ./softrock ...options ...

Terminal 2
$ cd ghpsdr3-alex/trunk/src/dspserver
$ ./dspserver  ..options...

Terminal 3
$ cd ghpsdr3-alex/trunk/src/QtRadio
$ ./QtRadio

Refresh to a Newer Version

To pull a new version to build

$ git pull
$ make all
$ sudo make install

Installation on Windows

See QtRadio on Windows