Skip to content
Marc L edited this page Aug 31, 2022 · 17 revisions

Build instructions

Building on Fedora

sudo dnf install fftw-devel cmake liquid-dsp-devel qt5-qtbase-devel
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
cmake ..
make -j4
sudo make install

Building on Debian-based distros

sudo apt-get install qt5-default libfftw3-dev cmake pkg-config libliquid-dev
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
cmake ..
make -j4
sudo make install

Building on Ubuntu 21.04 Hirsute

sudo apt-get update -y
sudo apt-get install qtbase5-dev libfftw3-dev cmake pkg-config libliquid-dev 
sudo apt-get install build-essential git
git clone https://github.com/miek/inspectrum.git
cd inspectrum/
mkdir build
cd build/
cmake ..
make -j4
sudo make install

Building on Ubuntu 18.04 Bionic LTS

sudo apt-get update -y
sudo apt-get install qt5-default libfftw3-dev cmake pkg-config libliquid-dev 
sudo apt-get install build-essential git
git clone https://github.com/miek/inspectrum.git
cd inspectrum/
mkdir build
cd build/
cmake ..
make -j4
sudo make install

Building on Linux Mint 18.03

Installing Inspectrum on Mint 18.03 is troublesome as `libliquid-dev` is not available for many variants. Hence the following is hack. You may try on Ubuntu as your own risk.

sudo apt-get update -y
echo "deb http://cz.archive.ubuntu.com/ubuntu artful main universe" | sudo tee -a /etc/apt/sources.list.d/temp.list
sudo apt-get update -y
sudo apt-get install libliquid-dev -y
sudo rm -f /etc/apt/sources.list.d/temp.list
sudo apt-get update -y #Top important! Otherwise system can break. We only take libliquid-dev from this repo.
sudo apt-get install qt5-default libfftw3-dev cmake pkg-config -y
git clone https://github.com/miek/inspectrum
cd inspectrum
mkdir build
cd build
cmake ..
make
sudo make install

Building on Ubuntu 16.04 Xenial

#install the dependencies
sudo apt-get update
sudo apt-get install qt5-default libfftw3-dev cmake pkg-config
#Install libliquid1d and libliquid1d-dev from Artful manually by extracting them directly
cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/liquid-dsp/libliquid1d_1.3.1-1_amd64.deb
dpkg -x libliquid1d_1.3.1-1_amd64.deb .

wget http://mirrors.kernel.org/ubuntu/pool/universe/l/liquid-dsp/libliquid-dev_1.3.1-1_amd64.deb
dpkg -x libliquid-dev_1.3.1-1_amd64.deb .

sudo cp  usr/lib/x86_64-linux-gnu/libliquid.* /usr/lib/x86_64-linux-gnu/
sudo cp -ar usr/include/liquid /usr/include/

#Install necessary tools for compilation
sudo apt-get install build-essential git

#Clone repository and compile the program
cd ~/Downloads
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
cmake ..
make
sudo make install
#Note: For the last step (sudo make install) **checkinstall** can be used instead for more benefits. 

Building on OSX - Homebrew

brew install qt5 fftw cmake pkg-config liquid-dsp
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
CMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake cmake .. -DCMAKE_CXX_FLAGS:STRING=-I/usr/local/opt/qt5/include ..
make install

Building on OSX - Macports

sudo port install qt5 fftw-3-single cmake pkgconfig liquid-dsp
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
cmake ..
make
sudo make install