-
Notifications
You must be signed in to change notification settings - Fork 462
Compile in Windows
- Install Visual Studio 2019 with Desktop development for C++ (Community edition is free - https://visualstudio.microsoft.com/vs/community/)
- Install Qt 5.15.x (including optional Qt Charts) for MSVC 2019 64-bit (https://www.qt.io/download-open-source)
- Install Boost (https://www.boost.org/users/download/)
- Install ninja (https://ninja-build.org/)
- Install cmake (https://cmake.org/download/) - May also be installed with Visual Studio
- Install git (https://git-scm.com/download/win)
- Install NSIS (https://nsis.sourceforge.io/Download)
- Make sure git, cmake, nsis and ninja are in your PATH environment variable.
Run Visual Studio shell: Start > Visual Studio 2019 > x64 Native Tools Command Prompt for VS 2019
Then:
cd %userprofile% (or wherever you want to build that has 10GB free space)
git clone https://github.com/f4exb/sdrangel.git
cd sdrangel
git submodule update --init --recursive
mkdir build
cd build
cmake -Wno-dev -G Ninja -DCMAKE_BUILD_TYPE=Release -DRX_SAMPLE_24BIT=ON -DCMAKE_PREFIX_PATH=C:\\Qt\\5.15.2\\msvc2019_64;C:\\boost_1_74_0 ..
ninja
ninja package
This will build the installer .exe
If you do not need support for some SDRs (or you have problems building their libraries), they can be disabled individually with -DENABLE_BLADERF=OFF -DENABLE_IIO=OFF -DENABLE_MIRISDR=OFF ... etc.
After an initial build of 'ninja package', rather than repeatedly building the installer, you can run SDRangel from the build directory, by just running 'ninja' to rebuild then '.\bin\sdrangel' to run.
Passing -DCMAKE_BUILD_TYPE=Debug
or -DCMAKE_BUILD_TYPE=RelWithDebInfo
(lighter but may be less precise) to the cmake command will create a version that is easier to debug for yourself or the maintainers.
To debug using Visual Studio, run:
devenv /DebugExe .\bin\SDRangel.exe
- Home
- Quick start
- Hardware requirements
- High DPI displays
- Compile in Linux
- Compile in Windows
- Compile in MacOS
- History and major releases
- Audio related
- Plugins
- Advanced
- Server and API