Difference between revisions of "Ubuntu14"

From Ghpsdr3 SDR project
Jump to: navigation, search
(Created page with "===== Ubuntu 14.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 Setting...")
 
(Ubuntu 14.10)
Line 1: Line 1:
 
===== Ubuntu 14.10 =====
 
===== Ubuntu 14.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-maintained Open Source Software (universe) tick. Next, submit the following commands into a terminal window:
+
Make sure that your systems is up to date:
  
 
<pre>
 
<pre>
 
sudo apt-get update
 
sudo apt-get update
 
sudo apt-get upgrade
 
sudo apt-get upgrade
sudo apt-get install \
+
</pre>
 +
 
 +
Install the tools:
 +
 
 +
<pre>
 +
sudo apt-get install make gcc g++ autoconf automake autotools-dev libtool git subversion
 +
</pre>
 +
 
 +
Install the prerequisite packages:
 +
 
 +
<pre>
 +
sudo apt-get -y install \
 
libusb-0.1-4 \
 
libusb-0.1-4 \
 
libusb-dev \
 
libusb-dev \
Line 24: Line 35:
 
Install Qt5 from Ubuntu repository:
 
Install Qt5 from Ubuntu repository:
  
 +
<pre>
 
sudo apt-get install qt5-default qt5-qmake qtmobility-dev libqtmultimediakit1
 
sudo apt-get install qt5-default qt5-qmake qtmobility-dev libqtmultimediakit1
 +
</pre>
 +
 +
Even the original package can be used, it is found at
 +
 +
http://www.qt.io/download-open-source/
 +
 +
In case, check that the Qt5 library is the current one:
 +
 +
<pre>
 +
$ qmake -v
 +
QMake version 3.0
 +
Using Qt version 5.3.0 in /usr/lib/x86_64-linux-gnu
 +
</pre>
  
 
Build and install codec-2:
 
Build and install codec-2:
Line 60: Line 85:
 
</pre>
 
</pre>
  
If this step is unsuccessfull, report on the mailing list providing the text of the error and teh config.log file as found in ghpsdr3-alex/ directory.
+
If this step is unsuccessfull, report on the mailing list providing the text of the error and the config.log file as found in ghpsdr3-alex/ directory.
  
 
Otherwise, install it:
 
Otherwise, install it:
Line 67: Line 92:
 
</pre>
 
</pre>
  
The default configure above builds with debug and default Qt4 version in your PC.  For optimized executable,
+
The default configure above builds with debug and default Qt5 version in your PC.   
you need to specify options specific to your system.  See the sample shell scripts that replaces the above
+
For optimized executable, you need to specify options specific to your system.  See the sample shell scripts that replaces the above
 
./configure step:
 
./configure step:
  

Revision as of 13:06, 13 December 2014

Ubuntu 14.10

Make sure that your systems is up to date:

sudo apt-get update
sudo apt-get upgrade

Install the tools:

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

Install the prerequisite packages:

sudo apt-get -y install \
libusb-0.1-4 \
libusb-dev \
libfftw3-dev \
portaudio19-dev \
libpulse-dev \
libsamplerate0-dev \
libusb-1.0-0-dev \
libconfig8-dev \
xdg-utils \
libortp-dev \
gcc-multilib \
libssl-dev \
libevent-dev \
cmake 

Install Qt5 from Ubuntu repository:

sudo apt-get install qt5-default qt5-qmake qtmobility-dev libqtmultimediakit1

Even the original package can be used, it is found at

http://www.qt.io/download-open-source/

In case, check that the Qt5 library is the current one:

$ qmake -v
QMake version 3.0
Using Qt version 5.3.0 in /usr/lib/x86_64-linux-gnu

Build and install codec-2:

svn co https://svn.code.sf.net/p/freetel/code/codec2 codec2
cd codec2
mkdir build_linux
cd build_linux
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
sudo make install
sudo ldconfig


Download the source code from git:

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 master

Then:

autoreconf -i && ./configure.sh && make -j4

If this step is unsuccessfull, report on the mailing list providing the text of the error and the config.log file as found in ghpsdr3-alex/ directory.

Otherwise, install it:

sudo make install

The default configure above builds with debug and default Qt5 version in your PC. For optimized executable, you need to specify options specific to your system. See the sample shell scripts that replaces the above ./configure step:

./alex-conf.sh                  if you have problems finding codec2
./alex-avx-conf.sh              for building with i3,i5 and i7 cpu's supporting Advanced Vector Extensions (AVX)
./alex-openmp-conf.sh           for building with i3,i5 and i7 cpu's and OpenMP support
./alex-sse3-conf.sh             for building with SSE3 capable cpu's
./alex-openmp-sse3-conf.sh      for building with SSE3 cpaable cpu's and OpenMP support