Build from source on Windows
Prerequisites
Required components to compile LimeSuiteNG project:
Visual Studio Build Tools 2022 components:
MSVC v143 - VS 2022
Windows 11 SDK
Conda packages:
conda-build
conda-forge-pinning
vs2022_win-64
cmake
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.