GNURadio: Compile GNURadio + UHD
Persiapan
Instalasi paket pendukung
sudo su apt update apt -y install libcppunit-dev python-cheetah doxygen \ libboost-all-dev python-sphinx libfftw3-dev python-numpy libqwt-dev \ libusb-dev libusb-dev libusb-1.0-0-dev libgsl-dev python-wxgtk3.0 git qtcreator \ bison flex automake \ libqwt-dev libqwt-doc libqwt-headers python3-guiqwt python3-qwt \ python-wxmpl python-wxtools python-wxversion \
Buat directory
mkdir -p /usr/local/src/SDR cd /usr/local/src/SDR
Upgrade CMAKE ke versi terakhir
sudo du apt remove --purge cmake cd /opt/ wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.sh chmod +x /opt/cmake-3.16.2-Linux-x86_64.sh # ketik Y 2x
sudo bash /opt/cmake-3.16.2-Linux-x86_64.sh sudo ln -s /opt/cmake-3.16.2-Linux-x86_64/bin/* /usr/local/bin sudo ln -s /opt/cmake-3.16.2-Linux-x86_64/bin/* /usr/bin cmake --version
Compile SWIG
sudo su sudo apt -y install bison flex automake cd /usr/local/src git clone https://github.com/swig/swig.git cd /usr/local/src/swig ./autogen.sh ./configure make make install
Compile UHD
WARNING: waktu compile lama
mkdir -p /usr/local/src/SDR cd /usr/local/src/SDR git clone https://github.com/EttusResearch/uhd cd /usr/local/src/SDR/uhd/ # git tag -l git checkout v3.15.0.0 cd host mkdir build cd build cmake ../ make make test sudo make install sudo ldconfig export LD_LIBRARY_PATH=/usr/local/lib
Compile GNURadio
debugging
export LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/
WARNING: waktu compile lama
cd /usr/local/src/SDR git clone --recursive https://github.com/gnuradio/gnuradio.git cd /usr/local/src/SDR/gnuradio git checkout maint-3.8 git submodule update --init --recursive mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../ make make test sudo make install sudo ldconfig