Build from source on Windows

Prerequisites

Required components to compile LimeSuiteNG project:

  1. Visual Studio Build Tools 2022 components:

    1. MSVC v143 - VS 2022

    2. Windows 11 SDK

  2. Conda packages:

    1. conda-build

    2. conda-forge-pinning

    3. vs2022_win-64

    4. cmake

    5. ninja

Optional components that add specific functionality:

  • SoapySDR : allows building of limesuiteng plugin for SoapySDR

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 LimeSuiteNG library. Additionally, GNURadio version flag can be supplied to install appropriate version of GNURadio and additional dependencies required to build gnuradio-limesuiteng plugin. 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 repository directory, create and enter build directory:

mkdir build && cd build

Configure LimeSuiteNG library 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" -DINSTALL_DEVELOPMENT=ON ..

Build suite:

cmake --build .

Built suite files are located in build\lib directory and executables are located in build\bin directory.

Installing the built software

Optionally library can be installed into system, installation requires to be ran with Administrative privileges.

Continuing on from the previous command block, execute:

cmake --install .

Tip

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