Difference between revisions of "Ubuntu14"
(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) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
===== Ubuntu 14.10 ===== | ===== Ubuntu 14.10 ===== | ||
− | + | 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: | ||
− | sudo apt-get install qt5-default qt5-qmake | + | <pre> |
+ | sudo apt-get install qt5-default qt5-qmake libqt5multimedia5 libqt5multimedia5-plugins qtmultimedia5-dev | ||
+ | </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 43: | Line 68: | ||
<pre> | <pre> | ||
+ | cd | ||
git clone git://github.com/alexlee188/ghpsdr3-alex | git clone git://github.com/alexlee188/ghpsdr3-alex | ||
</pre> | </pre> | ||
Line 57: | Line 83: | ||
Then: | Then: | ||
<pre> | <pre> | ||
− | autoreconf -i && ./configure | + | autoreconf -i && ./configure && make -j4 |
</pre> | </pre> | ||
− | If this step is unsuccessfull, report on the mailing list providing the text of the error and | + | 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 93: | ||
</pre> | </pre> | ||
− | The default configure above builds with debug and default | + | 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: | ||
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