Build from source

Prerequisites

Required components to compile gnuradio-limesuiteng plugin:

  1. Visual Studio Build Tools 2022 (version 17.14) components:

    1. MSVC v143 - VS 2022

    2. Windows 11 SDK

  2. Conda packages:

    1. conda-build

    2. conda-forge-pinning

    3. gnuradio=3.10.9.2

    4. boost=1.82

    5. vs2022_win-64

    6. LimeSuiteNG (Manually built and installed)

    7. cmake

    8. ninja

Warning

External Python and numpy installations that are not related to any conda environment can interfere with build process. It is advised to remove these components or temporarily disable environment variables that point to their locations in PC file system.

Warning

It is advised to use a manually built and installed LimeSuiteNG library in conda environment to avoid build process problems.

Note

MSVC version must be equal or higher than compiler version that was used to build gnuradio. To check compiler compatibility use gnuradio-config-print --cxx inside activated conda environment with installed gnuradio.

Compilation

Activate your conda enivronment:

conda activate -n <environment name>

Hint

Check out radioconda and conda environment set up process. See Radioconda environment.

Install all necessary build components by executing the following script in repository root directory:

conda_deps.bat --v <required-gnuradio-version>

Script will check the conda environment for missing packages and install all conda packages required to build gnuradio-limesuiteng plugin alongside requested GNURadio version. Example:

conda_deps.bat --v 3.10.11.0

After successful component install restart radioconda prompt and activate your conda environment. This will setup appropriate build environment variables. Clone repository:

git clone <repository url>

Enter plugin directory:

cd <repo root>\plugin\gr-limesuiteng

Create and enter build directory:

mkdir build && cd build

Run cmake to configure build files:

cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DGR_PYTHON_DIR="%CONDA_PREFIX%\Lib\site-packages" ..

Build plugin:

cmake --build .

Install plugin into conda environment:

cmake --install .

Tip

To uninstall plugin from conda environment use: cmake -P cmake_uninstall.cmake command inside the build directory.

Check out Plugin demonstration section for plugin demonstration.