This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:tools:m2k:scopy:build-linux [22 Nov 2017 15:27] – Add libmatio to the dependencies Alexandra Trifan | university: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 |
\\ | \\ | ||
- | **Install | + | **Install |
< | < | ||
- | **sudo apt-get install | + | |
- | </ | + | </ |
+ | This will fetch the latest sources from GitHub to a " | ||
- | \\ | + | This following command will use system Qt version |
- | **Build and install Boost** | + | |
< | < | ||
- | **cd ~ | + | **scopy/CI/appveyor/install_ubuntu_deps.sh** |
- | wget https://netcologne.dl.sourceforge.net/project/ | + | </ |
- | 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/ |
- | cd boost_1_63_0 | + | |
- | ./bootstrap.sh --with-libraries=date_time, | + | |
- | ./b2 | + | |
- | sudo ./b2 install** | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | **Build and install Markdown** | + | |
< | < | ||
- | **cd ~ | + | **scopy/CI/appveyor/install_ubuntu_deps.sh /home/Adi/Qt/5.15.0/gcc_64** |
- | wget https://pypi.python.org/ | + | |
- | tar -xzvf Markdown-2.6.8.tar.gz | + | |
- | cd Markdown-2.6.8 | + | |
- | | + | |
- | sudo ./setup.py install** | + | |
- | </xterm> | + | |
- | + | ||
- | \\ | + | |
- | **Install Python header files** | + | |
- | < | + | |
- | **sudo apt-get install python-dev** | + | |
- | **sudo apt-get install python3-dev** | + | |
- | </xterm> | + | |
- | + | ||
- | \\ | + | |
- | **Build and install Cheetah** | + | |
- | < | + | |
- | **cd ~ | + | |
- | wget https:// | + | |
- | tar -xzvf Cheetah-2.4.4.tar.gz | + | |
- | cd Cheetah-2.4.4 | + | |
- | ./setup.py build | + | |
- | sudo ./setup.py install** | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | **Install libfftw3** | + | |
- | < | + | |
- | **sudo apt-get install libfftw3-dev** | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | **Build and install Volk** | + | |
- | < | + | |
- | **cd ~ | + | |
- | wget http:// | + | |
- | tar -xzvf volk-1.3.tar.gz | + | |
- | cd volk-1.3 | + | |
- | mkdir build && cd build | + | |
- | cmake .. | + | |
- | make | + | |
- | sudo make install** | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | **Build and install GNU Radio** | + | |
- | < | + | |
- | **cd ~ | + | |
- | git clone https:// | + | |
- | cd gnuradio | + | |
- | mkdir build && cd build | + | |
- | cmake -DENABLE_INTERNAL_VOLK: | + | |
- | make | + | |
- | sudo make install** | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | **Install libffi, libmount, libpcre, libglib, libsigc++, libglibmm, doxygen** | + | |
- | < | + | |
- | **sudo apt-get install libffi-dev libmount-dev libpcre3-dev libglib2.0-dev libsigc++-2.0-dev libglibmm-2.4-dev doxygen** | + | |
- | </ | + | |
| | ||
- | \\ | ||
- | **Build and install libsigrok** | ||
- | < | ||
- | **cd ~ | ||
- | git clone https:// | ||
- | cd libsigrok | ||
- | ./ | ||
- | ./configure --disable-all-drivers --enable-bindings --enable-cxx | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | | ||
- | \\ | ||
- | **Build and install libsigrokdecode** | ||
- | < | ||
- | **cd ~ | ||
- | wget http:// | ||
- | tar -xzvf libsigrokdecode-0.4.1.tar.gz | ||
- | cd libsigrokdecode-0.4.1 | ||
- | ./configure | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Install OpenGL development files** | ||
- | < | ||
- | **sudo apt-get install libglu1-mesa-dev** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Install curl** | ||
- | < | ||
- | **sudo apt-get install curl** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Build and install Qwt** | ||
- | |||
- | Before building Qwt, you need to check out your version of qmake. | ||
- | \\ | ||
- | Depending on the location of your Qt installation, | ||
- | |||
- | 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: | ||
- | < | ||
- | Use | ||
- | **/ | ||
- | instead of | ||
- | **qmake** | ||
- | </ | ||
- | | ||
- | If the Qt version is less than 5, you can do the following: | ||
- | |||
- | export QT_SELECT=5 | ||
- | |||
- | Now we can build and install Qwt: | ||
- | < | ||
- | **cd ~ | ||
- | git clone https:// | ||
- | cd qwt | ||
- | git checkout qwt-6.1-multiaxes | ||
- | gedit qwtconfig.pri** | ||
</ | </ | ||
- | Change QWT_INSTALL_PREFIX | + | This should install all of the dependencies required |
- | < | + | |
- | **qmake qwt.pro | + | |
- | make | + | |
- | sudo make install** | + | |
- | </ | + | |
- | \\ | ||
- | **Build and install Qwt Polar** | ||
- | < | ||
- | **cd ~ | ||
- | wget https:// | ||
- | tar xvjf qwtpolar-1.1.1.tar.bz2 | ||
- | cd qwtpolar-1.1.1 | ||
- | curl -o qwtpolar-qwt-6.1-compat.patch https:// | ||
- | patch -p1 < qwtpolar-qwt-6.1-compat.patch | ||
- | gedit qwtpolarconfig.pri** | ||
- | </ | ||
- | |||
- | Change QWT_POLAR_INSTALL_PREFIX to /usr/local and remove the line: | ||
- | | ||
- | < | ||
- | **qmake qwtpolar.pro | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | |||
- | **Install libusb** | ||
- | < | ||
- | **sudo apt-get install libusb-1.0-0-dev** | ||
- | </ | ||
- | |||
- | **Build and install libiio** | ||
- | < | ||
- | **cd ~ | ||
- | git clone https:// | ||
- | cd libiio && mkdir build && cd build | ||
- | cmake -DCMAKE_INSTALL_LIBDIR: | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Install flex** | ||
- | < | ||
- | **sudo apt-get install flex** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Install bison** | ||
- | < | ||
- | **sudo apt-get install bison** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Install libad9361** | ||
- | < | ||
- | **cd ~ | ||
- | git clone https:// | ||
- | cd libad9361-iio | ||
- | mkdir build && cd build | ||
- | cmake .. | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Build and install the IIO blocks for GNU Radio** | ||
- | < | ||
- | **cd ~ | ||
- | git clone https:// | ||
- | cd gr-iio | ||
- | mkdir build && cd build | ||
- | cmake .. | ||
- | make | ||
- | sudo make install** | ||
- | </ | ||
- | |||
- | \\ | ||
===== Building Scopy ===== | ===== Building Scopy ===== | ||
- | <xterm> | + | If you are using a custom Qt version set -DCMAKE_PREFIX_PATH to the <Qt installation folder>/lib/cmake. If you are using the system version don't set the -DCMAKE_PREFIX_PATH. |
- | **git clone https://github.com/ | + | |
- | </ | + | |
- | This will fetch the latest sources from GitHub to a " | + | |
< | < | ||
**cd scopy | **cd scopy | ||
mkdir build && cd build | mkdir build && cd build | ||
- | cmake ..** | + | cmake -DCMAKE_PREFIX_PATH=/ |
</ | </ | ||
If everything goes well, the output should be " | If everything goes well, the output should be " | ||
Line 259: | Line 43: | ||
**./scopy** | **./scopy** | ||
</ | </ | ||
+ | |||
+ | Alternatively you can open QtCreator from the Qt folder. Open, configure and build the project. | ||
**Return to [[university: | **Return to [[university: |