Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
university:tools:m2k:scopy:build-linux [22 Nov 2017 15:27] – Add libmatio to the dependencies Alexandra Trifanuniversity:tools:m2k:scopy:build-linux [24 Jul 2020 10:54] (current) – Updated Linux build guide Adrian Suciu
Line 4: Line 4:
  
 \\ \\
-**Install Qt 5 using an online or offline installer from the official Qt downloads page.**+**Install Qt 5 version (>5.12) using an online or offline installer from the official Qt downloads page.**
  
 \\ \\
-**Install git, cmake, libzip, autoconf, libtool and libxml**+**Install dependencies**
 <xterm> <xterm>
-     **sudo apt-get install git cmake libzip-dev autoconf libtool libxml2 libxml2-dev libmatio2 libmatio2-dev** +    **git clone https://github.com/analogdevicesinc/scopy.git** 
-</xterm>+</xterm>   
 +This will fetch the latest sources from GitHub to a "scopy" directory.
  
-\\ +This following command will use system Qt version
-**Build and install Boost**+
 <xterm> <xterm>
-    **cd ~ +    **scopy/CI/appveyor/install_ubuntu_deps.sh** 
-    wget https://netcologne.dl.sourceforge.net/project/boost/boost/1.63.0/boost_1_63_0.tar.gz +</xterm>  
-    tar -xzvf boost_1_63_0.tar.gz +or  if you want to use a custom version of Qt (the one you just installed) - scopy/CI/appveyor/install_ubuntu_deps.sh <path_to_qt_>  for example:
-    cd boost_1_63_0 +
-    ./bootstrap.sh --with-libraries=date_time,filesystem,program_options,regex,system,test,thread +
-    ./b2 +
-    sudo ./b2 install** +
-</xterm> +
- +
-\\ +
-**Build and install Markdown**+
 <xterm> <xterm>
-    **cd ~ +    **scopy/CI/appveyor/install_ubuntu_deps.sh /home/Adi/Qt/5.15.0/gcc_64**
-    wget https://pypi.python.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-2.6.8.tar.gz +
-    tar -xzvf Markdown-2.6.8.tar.gz +
-    cd Markdown-2.6.8 +
-    ./setup.py build +
-    sudo ./setup.py install** +
-</xterm> +
- +
-\\ +
-**Install Python header files** +
-<xterm> +
-    **sudo apt-get install python-dev** +
-    **sudo apt-get install python3-dev** +
-</xterm> +
- +
-\\ +
-**Build and install Cheetah** +
-<xterm> +
-    **cd ~ +
-    wget https://pypi.python.org/packages/cd/b0/c2d700252fc251e91c08639ff41a8a5203b627f4e0a2ae18a6b662ab32ea/Cheetah-2.4.4.tar.gz +
-    tar -xzvf Cheetah-2.4.4.tar.gz +
-    cd Cheetah-2.4.4 +
-    ./setup.py build +
-    sudo ./setup.py install** +
-</xterm> +
- +
-\\ +
-**Install libfftw3** +
-<xterm>   +
-    **sudo apt-get install libfftw3-dev** +
-</xterm> +
- +
-\\ +
-**Build and install Volk** +
-<xterm> +
-    **cd ~ +
-    wget http://libvolk.org/releases/volk-1.3.tar.gz +
-    tar -xzvf volk-1.3.tar.gz +
-    cd volk-1.3 +
-    mkdir build && cd build +
-    cmake .. +
-    make +
-    sudo make install** +
-</xterm> +
- +
-\\ +
-**Build and install GNU Radio** +
-<xterm> +
-    **cd ~ +
-    git clone https://github.com/gnuradio/gnuradio +
-    cd gnuradio +
-    mkdir build && cd build +
-    cmake -DENABLE_INTERNAL_VOLK:BOOL=OFF -DENABLE_GR_FEC:BOOL=OFF -DENABLE_GR_DIGITAL:BOOL=OFF -DENABLE_GR_DTV:BOOL=OFF -DENABLE_GR_ATSC:BOOL=OFF -DENABLE_GR_AUDIO:BOOL=OFF -DENABLE_GR_CHANNELS:BOOL=OFF -DENABLE_GR_NOAA:BOOL=OFF -DENABLE_GR_PAGER:BOOL=OFF -DENABLE_GR_TRELLIS:BOOL=OFF -DENABLE_GR_VOCODER:BOOL=OFF .. +
-    make +
-    sudo make install** +
-</xterm> +
- +
-\\ +
-**Install libffi, libmount, libpcre, libglib, libsigc++, libglibmm, doxygen** +
-<xterm> +
-    **sudo apt-get install libffi-dev libmount-dev libpcre3-dev libglib2.0-dev libsigc++-2.0-dev libglibmm-2.4-dev doxygen** +
-</xterm>+
          
-\\ 
-**Build and install libsigrok** 
-<xterm> 
-    **cd ~ 
-    git clone https://github.com/sschnelle/libsigrok/ 
-    cd libsigrok 
-    ./autogen.sh 
-    ./configure --disable-all-drivers --enable-bindings --enable-cxx 
-    make 
-    sudo make install** 
-</xterm> 
-     
-\\ 
-**Build and install libsigrokdecode** 
-<xterm> 
-    **cd ~ 
-    wget http://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-0.4.1.tar.gz 
-    tar -xzvf libsigrokdecode-0.4.1.tar.gz 
-    cd libsigrokdecode-0.4.1 
-    ./configure 
-    make 
-    sudo make install** 
-</xterm> 
- 
-\\ 
-**Install OpenGL development files** 
-<xterm> 
-    **sudo apt-get install libglu1-mesa-dev** 
-</xterm> 
- 
-\\ 
-**Install curl** 
-<xterm> 
-    **sudo apt-get install curl** 
-</xterm> 
- 
-\\ 
-**Build and install Qwt** 
- 
-Before building Qwt, you need to check out your version of qmake. 
-\\ 
-Depending on the location of your Qt installation, the output of the following command can be either the version of Qt or an error. 
- 
-    qmake --version 
- 
-If the output is an error it means you have a custom location for Qt. Please use the full path of qmake 5 in the following steps. 
-\\ 
-Example: 
-<xterm> 
-    Use 
-    **/opt/Qt/5.9.1/gcc_64/bin/qmake** 
-    instead of 
-    **qmake** 
-</xterm>     
-     
-If the Qt version is less than 5, you can do the following: 
- 
-    export QT_SELECT=5 
- 
-Now we can build and install Qwt: 
-<xterm> 
-    **cd ~ 
-    git clone https://github.com/osakared/qwt 
-    cd qwt 
-    git checkout qwt-6.1-multiaxes 
-    gedit qwtconfig.pri** 
 </xterm>  </xterm> 
  
-Change QWT_INSTALL_PREFIX to /usr/local +This should install all of the dependencies required to build Scopy.
-<xterm> +
-    **qmake qwt.pro +
-    make +
-    sudo make install** +
-</xterm>+
  
-\\ 
-**Build and install Qwt Polar** 
-<xterm> 
-    **cd ~ 
-    wget https://downloads.sourceforge.net/project/qwtpolar/qwtpolar/1.1.1/qwtpolar-1.1.1.tar.bz2 
-    tar xvjf qwtpolar-1.1.1.tar.bz2 
-    cd qwtpolar-1.1.1 
-    curl -o qwtpolar-qwt-6.1-compat.patch https://raw.githubusercontent.com/analogdevicesinc/scopy-flatpak/master/qwtpolar-qwt-6.1-compat.patch 
-    patch -p1 < qwtpolar-qwt-6.1-compat.patch 
-    gedit qwtpolarconfig.pri** 
-</xterm> 
- 
-Change QWT_POLAR_INSTALL_PREFIX to /usr/local and remove the line: 
-   QWT_POLAR_CONFIG += QwtPolarExamples  
-<xterm> 
-    **qmake qwtpolar.pro 
-    make 
-    sudo make install** 
-</xterm> 
- 
-**Install libusb** 
-<xterm> 
-    **sudo apt-get install libusb-1.0-0-dev** 
-</xterm> 
- 
-**Build and install libiio** 
-<xterm> 
-    **cd ~ 
-    git clone https://github.com/analogdevicesinc/libiio 
-    cd libiio && mkdir build && cd build 
-    cmake -DCMAKE_INSTALL_LIBDIR:STRING=lib -DINSTALL_UDEV_RULE:BOOL=OFF -DWITH_TESTS:BOOL=OFF -DWITH_DOC:BOOL=OFF -DWITH_IIOD:BOOL=OFF -DWITH_LOCAL_BACKEND:BOOL=OFF -DWITH_MATLAB_BINDINGS_API:BOOL=OFF .. 
-    make 
-    sudo make install** 
-</xterm> 
- 
-\\ 
-**Install flex** 
-<xterm> 
-    **sudo apt-get install flex** 
-</xterm> 
- 
-\\ 
-**Install bison** 
-<xterm> 
-    **sudo apt-get install bison** 
-</xterm> 
- 
-\\ 
-**Install libad9361** 
-<xterm> 
-    **cd ~ 
-    git clone https://github.com/analogdevicesinc/libad9361-iio 
-    cd libad9361-iio 
-    mkdir build && cd build 
-    cmake .. 
-    make 
-    sudo make install** 
-</xterm> 
- 
-\\ 
-**Build and install the IIO blocks for GNU Radio** 
-<xterm> 
-    **cd ~ 
-    git clone https://github.com/analogdevicesinc/gr-iio 
-    cd gr-iio 
-    mkdir build && cd build 
-    cmake .. 
-    make 
-    sudo make install** 
-</xterm> 
- 
-\\ 
 ===== Building Scopy ===== ===== Building Scopy =====
  
-<xterm> +If you are using a custom Qt version set -DCMAKE_PREFIX_PATH to the <Qt installation folder>/lib/cmakeIf you are using the system version don't set the -DCMAKE_PREFIX_PATH.
-    **git clone https://github.com/analogdevicesinc/scopy.git** +
-</xterm>   +
-This will fetch the latest sources from GitHub to a "scopy" directory. +
 <xterm> <xterm>
     **cd scopy     **cd scopy
     mkdir build && cd build     mkdir build && cd build
-    cmake ..**+    cmake -DCMAKE_PREFIX_PATH=/home/adi/Qt/5.15.0/gcc_64/lib/cmake ../**
 </xterm> </xterm>
 If everything goes well, the output should be "Configuring done" and "Generating done". If everything goes well, the output should be "Configuring done" and "Generating done".
Line 259: Line 43:
     **./scopy**     **./scopy**
 </xterm> </xterm>
 +
 +Alternatively you can open QtCreator from the Qt folder. Open, configure and build the project.
  
 **Return to [[university:tools:m2k:scopy|Scopy Main Page]]** **Return to [[university:tools:m2k:scopy|Scopy Main Page]]**
university/tools/m2k/scopy/build-linux.1511360875.txt.gz · Last modified: 22 Nov 2017 15:27 by Alexandra Trifan