Skip to content

2. Build Instructions

YUXIN LIU edited this page Nov 3, 2023 · 1 revision

System Requirement

We have tested NG-Scope on Ubuntu 16.04, 20.04 and 22.04. To guarantee the performance, we strongly recommend installing NG-Scope on these versions of Ubuntu. If you have tested on other versions of Ubuntu, please let us know.

Essential Libraries Requirement

  1. For example, on Ubuntu 16.04, we can install the required libraries via the following command:
sudo apt-get install cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev

Note that depending on your flavor and version of Linux, the actual package names may be different.

  1. We need to install the srsgui, a GUI tool for showing realtime results. On Ubuntu 16.04, we can install srsgui via the following commands:
git clone https://github.com/srsRAN/srsGUI.git
cd srsGUI  
mkdir build  
cd build  
cmake ../  
make  
sudo make install
  1. We also recommend to install gnuradio for the required VOLK. On Ubuntu, you can install gnuradio via the following commands:
sudo apt install gnuradio
sudo apt-get update
sudo apt install gnuradio

RF front-end Driver

We need to install the RF front-end driver. The required RF front-end depends on which kind of software-define-radio you use. We only tested NG-Scope on USRP, which requires UHD. We recommend to install UHD using the binaries provided by Ettus Research, via the following commands:

sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host

NG-Scope Installation

  1. Download and build NG-Scope:
git clone [email protected]:YaxiongXiePrinceton/NG-Scope.git
cd NG-Scope
mkdir build
cd build
cmake ../
make
make test
  1. Install NG-Scope:
sudo make install

Then call srsran_install_configs.sh script with either user or service as first parameter:

E.g. ./srsran_install_configs.sh user    // to install all config files to /root/.config/srsran
E.g. ./srsran_install_configs.sh service // to install all config files to /etc/srsran