Difference between revisions of "Ubuntu14"
(→Ubuntu 14.10) |
(→Ubuntu 14.10) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 36: | Line 36: | ||
<pre> | <pre> | ||
− | sudo apt-get install qt5-default qt5-qmake | + | sudo apt-get install qt5-default qt5-qmake libqt5multimedia5 libqt5multimedia5-plugins qtmultimedia5-dev |
</pre> | </pre> | ||
Line 68: | Line 68: | ||
<pre> | <pre> | ||
+ | cd | ||
git clone git://github.com/alexlee188/ghpsdr3-alex | git clone git://github.com/alexlee188/ghpsdr3-alex | ||
</pre> | </pre> | ||
Line 82: | Line 83: | ||
Then: | Then: | ||
<pre> | <pre> | ||
− | autoreconf -i && ./configure | + | autoreconf -i && ./configure && make -j4 |
</pre> | </pre> | ||
Latest revision as of 15:27, 4 January 2015
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 libqt5multimedia5 libqt5multimedia5-plugins qtmultimedia5-dev
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:
cd 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 && 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