# SDR++, The bloat-free SDR software
![Screenshot](https://i.imgur.com/Ter2MQJ.png) SDR++ is a cross-platform and open source SDR software with the aim of being bloat free and simple to use. ![Build](https://github.com/AlexandreRouma/SDRPlusPlus/workflows/Build%20Binaries/badge.svg) * [Patreon](https://patreon.com/ryzerth) * [Discord Server](https://discord.gg/aFgWjyD) * [Reddit](https://www.reddit.com/r/sdrpp/) * IRC: `#sdrpp` ([libera.chat](https://libera.chat)) __**NO LONGER ACTIVE, JOIN DISCORD INSTEAD**__ ## Features * Multi VFO * Wide hardware support (both through SoapySDR and dedicated modules) * SIMD accelerated DSP * Cross-platform (Windows, Linux, OSX and BSD) * Full waterfall update when possible. Makes browsing signals easier and more pleasant * Modular design (easily write your own plugins) # Installing ## Nightly Builds Nightly builds contain the very latest features and bugfixes. They are usually just stable as [normal releases](https://github.com/AlexandreRouma/SDRPlusPlus/releases) but are available basically minutes to hours after a change has been pushed to the code. You can download them [here](https://www.sdrpp.org/nightly). It'll redirect you to the latest nightly on GitHub, scroll down to "Artifacts" and click on the version for your OS. GitHub currently requires an account for the files to be downloadable so make sure you are logged in. ## Windows Download the latest release from [the Releases page](https://github.com/AlexandreRouma/SDRPlusPlus/releases) and extract to the directory of your choice. To create a desktop shortcut, rightclick the exe and select `Send to -> Desktop (create shortcut)`, then, rename the shortcut on the desktop to whatever you want. ## Linux ### Debian-based (Ubuntu, Mint, etc) Download the latest release from [the Releases page](https://github.com/AlexandreRouma/SDRPlusPlus/releases) and extract to the directory of your choice. Then, run: ```sh sudo apt install libfftw3-dev libglfw3-dev libvolk2-dev libsoapysdr-dev libairspyhf-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev sudo dpkg -i sdrpp_debian_amd64.deb ``` If `libvolk2-dev` is not available, use `libvolk1-dev`. ### Arch-based Install from source following the instructions below. **WARNING: The sdrpp-git AUR package is no longer official, it is not recommended to use it.** ### Other There are currently no existing packages for other distributions, for these systems you'll have to [build from source](https://github.com/AlexandreRouma/SDRPlusPlus#building-on-linux--bsd). ## MacOS Download the app bundle from the latest [nightly build](https://www.sdrpp.org/nightly) ## BSD There are currently no BSD packages, refer to [Building on Linux / BSD](https://github.com/AlexandreRouma/SDRPlusPlus#building-on-linux--bsd) for instructions on building from source. # Building on Windows The preferred IDE is [VS Code](https://code.visualstudio.com/) in order to have similar development experience across platforms and to build with CMake using the command line. ## Install dependencies * [cmake](https://cmake.org) * [vcpkg](https://vcpkg.io) * [PothosSDR](https://github.com/pothosware/PothosSDR) (This will install libraries for most SDRs. You have to install it in `C:/Program Files/PothosSDR`) * [RtAudio](https://www.music.mcgill.ca/~gary/rtaudio/) (You have to build and install it in `C:/Program Files (x86)/RtAudio/`) After this, install the following dependencies using vcpkg: * fftw3 * glfw3 * zstd You are probably going to build in 64 bit so make sure vcpkg installs the correct versions using `.\vcpkg.exe install :x64-windows` ## Building using the command line **IMPORTANT:** Replace `` with vcpkg's install directory. ``` mkdir build cd build cmake .. "-DCMAKE_TOOLCHAIN_FILE=/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 16 2019" cmake --build . --config Release ``` ## Running for development ### Create a new configuration root directory ```bat ./create_root.bat ``` This will create the `root_dev` directory that will be used to save the configs of sdrpp and the modules. You will next need to edit the `root_dev/config.json` file to point to the modules that were built. If the file is missing in your folder run the application once and it will create one with default value -- see later on how to run the application. ### Run SDR++ from the command line From the top directory, you can simply run: ```bat ./build/Release/sdrpp.exe -r root_dev -c ``` Or, if you wish to run from the build directory e.g. `build/Release` and adapt the relative path to the `root_dev` folder: ```bat ./sdrpp.exe -r ../../root_dev -c ``` The optional `-c` argument is for keeping the console active in order to see the error messages. Because all the paths are relative, for the rest of the command line instructions we are going to assume you are running from the top directory using the former command. As mentioned previously you need to edit `root_dev/config.json` to add the modules that were built. From the default configuration file you need to add the paths in the `modules` section. Add to this list all the modules you wish to use. ```json ... "modules": [ "./build/radio/Release/radio.dll", "./build/recorder/Release/recorder.dll", "./build/rtl_tcp_source/Release/rtl_tcp_source.dll", "./build/soapy_source/Release/soapy_source.dll", "./build/audio_sink/Release/audio_sink.dll" ] ... ``` You also need to change the location of the resource and module directories, for development, I recommend: ```json ... "modulesDirectory": "root_dev/modules", ... "resourcesDirectory": "root_dev/res", ... ``` Remember that these paths will be relative to the run directory. ## Installing SDR++ If you choose to run SDR++ for development, you do not need this step. First, copy over the exe and DLLs from `build/Release/` to `root_dev`. Next you need to copy over all the modules that were compiled. To do so, copy the DLL file of the module (located in its build folder given below) to the `root_dev/modules` directory and other DLLs (that do not have the exact name of the module) to the `root_dev` directory. The modules built will be some of the following (Repeat the instructions above for all you wish to use): * `build/radio/Release/` * `build/recorder/Release/` * `build/rtl_tcp_source/Release/` * `build/spyserver_source/Release/` * `build/soapy_source/Release/` * `build/airspyhf_source/Release/` * `build/plutosdr_source/Release/` * `build/audio_sink/Release/` # Building on Linux / BSD ## Select which modules you wish to build Depending on which module you want to build, you will need to install some additional dependencies. Here are listed every module that requires addition dependencies. If a module enabled by default and you do not wish to install a particular dependency (or can't, eg. the BladeRF module on Debian Buster), you can disable it using the module parameter listed in the table below * soapy_source: SoapySDR + drivers for each SDRs (see SoapySDR docs) * airspyhf_source: libairspyhf * plutosdr_source: libiio, libad9361 * audio_sink: librtaudio-dev ## Install dependencies * cmake * fftw3 * glfw * libvolk * zstd Next install dependencies based on the modules you wish to build (See previous step) Note: make sure you're using GCC 8 or later as older versions do not have `std::filesystem` built-in. ## Building replace `` with the number of threads you wish to use to build ```sh mkdir build cd build cmake .. make -j ``` ## Create a new root directory ```sh sh ./create_root.sh ``` ## Running for development If you wish to install SDR++, skip to the next step First run SDR++ from the build directory to generate a default config file ``` ./sdrpp -r ../root_dev/ ``` Then, you will need to edit the `root_dev/config.json` file to point to the modules that were built. Here is an example of what it should look like: ```json ... "modules": [ "./build/radio/radio.so", "./build/recorder/recorder.so", "./build/rtl_tcp_source/rtl_tcp_source.so", "./build/soapy_source/soapy_source.so", "./build/audio_sink/audio_sink.so" ] ... ``` Note: You can generate this list automatically by running `find . | grep '\.so' | sed 's/^/"/' | sed 's/$/",/' | sed '/sdrpp_core.so/d'` in the build directory. You also need to change the location of the resource and module directories, for development, I recommend: ```json ... "modulesDirectory": "./root_dev/modules", ... "resourcesDirectory": "./root_dev/res", ... ``` Remember that these paths will be relative to the run directory. Of course, remember to add entries for all modules that were built and that you wish to use. Next, from the top directory, you can simply run: ``` ./build/sdrpp -r root_dev ``` Or, if you wish to run from the build directory, you will need to correct the directories in the config.json file, and then run: ``` ./sdrpp -r ../root_dev ``` ## Installing SDR++ To install SDR++, run the following command in your ``build`` folder: ```sh sudo make install ``` # Building on MacOS Warning: This is not for the faint of heart and the instructions are mostly untested. It is recommended to use the [nightly builds](https://www.sdrpp.org/nightly) instead. ## Install dependencies The dependencies are exactly the same as for linux, see that section for the core dependencies as well as the module list for the per-module dependencies. You will need to install the dependencies using Homebrew. Make sure to install portaudio as it'll be needed later. An example install command would be: ```sh brew install libusb fftw glfw airspy airspyhf portaudio hackrf rtl-sdr libbladerf codec2 zstd pip3 install mako ``` ### Install volk You will need to install volk from source. Follow the instructions on their repository. On M1 there are a few more manipulations needed. ## Build You will need a few special cmake argument on top of the linux ones. You will need to enable the portaudio sink modules `-DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON` and disable the usual rtaudio sink `-DOPT_BUILD_AUDIO_SINK=OFF` as well as the option to tell SDR++ that it will run as a MacOS bundle `-DUSE_BUNDLE_DEFAULTS=ON`. On MacOS versions older than Catalina (10.15), you will also need to use the internal std::filesystem as the OS can't provide it `-DOPT_OVERRIDE_STD_FILESYSTEM=ON`. Here is an example of build commands that will build almost all modules at the time of writing. You can always check the CI scripts for the latest arguments just in case but this should work. From the top of the SDRPlusPlus directory: ```sh mkdir build cd build cmake .. -DOPT_BUILD_SOAPY_SOURCE=OFF -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_AUDIO_SOURCE=OFF -DOPT_BUILD_AUDIO_SINK=OFF -DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DUSE_BUNDLE_DEFAULTS=ON -DCMAKE_BUILD_TYPE=Release make -j ``` ## Create bundle and install From the top of the SDRPlusPlus directory: ```sh sh make_macos_bundle.sh ./build ./SDR++.app ``` This will create a `SDR++.app` bundle that you can instal like any other MacOS app by dragging it into Applications. # Module List Not all modules are built by default. I decided to disable the build of those with large libraries, libraries that can't be installed through the package manager (or pothos) and those that are still in beta. Modules in beta are still included in releases for the most part but not enabled in SDR++ (need to be instantiated). ## Sources | Name | Stage | Dependencies | Option | Built by default| Built in Release | Enabled in SDR++ by default | |----------------------|------------|-------------------|--------------------------------|:---------------:|:-----------------------:|:---------------------------:| | airspy_source | Working | libairspy | OPT_BUILD_AIRSPY_SOURCE | ✅ | ✅ | ✅ | | airspyhf_source | Working | libairspyhf | OPT_BUILD_AIRSPYHF_SOURCE | ✅ | ✅ | ✅ | | bladerf_source | Working | libbladeRF | OPT_BUILD_BLADERF_SOURCE | ⛔ | ✅ (not Debian Buster) | ✅ | | file_source | Working | - | OPT_BUILD_FILE_SOURCE | ✅ | ✅ | ✅ | | hackrf_source | Working | libhackrf | OPT_BUILD_HACKRF_SOURCE | ✅ | ✅ | ✅ | | hermes_source | Beta | - | OPT_BUILD_HERMES_SOURCE | ✅ | ✅ | ✅ | | limesdr_source | Working | liblimesuite | OPT_BUILD_LIMESDR_SOURCE | ⛔ | ✅ | ✅ | | perseus_source | Beta | libperseus-sdr | OPT_BUILD_PERSEUS_SOURCE | ⛔ | ⛔ | ⛔ | | plutosdr_source | Working | libiio, libad9361 | OPT_BUILD_PLUTOSDR_SOURCE | ✅ | ✅ | ✅ | | rfspace_source | Working | - | OPT_BUILD_RFSPACE_SOURCE | ✅ | ✅ | ✅ | | rtl_sdr_source | Working | librtlsdr | OPT_BUILD_RTL_SDR_SOURCE | ✅ | ✅ | ✅ | | rtl_tcp_source | Working | - | OPT_BUILD_RTL_TCP_SOURCE | ✅ | ✅ | ✅ | | sdrplay_source | Working | SDRplay API | OPT_BUILD_SDRPLAY_SOURCE | ⛔ | ✅ | ✅ | | sdrpp_server_source | Working | - | OPT_BUILD_SDRPP_SERVER_SOURCE | ✅ | ✅ | ✅ | | soapy_source | Working | soapysdr | OPT_BUILD_SOAPY_SOURCE | ✅ | ✅ | ✅ | | spectran_source | Unfinished | RTSA Suite | OPT_BUILD_SPECTRAN_SOURCE | ⛔ | ⛔ | ⛔ | | spectran_http_source | Unfinished | - | OPT_BUILD_SPECTRAN_HTTP_SOURCE | ✅ | ✅ | ⛔ | | spyserver_source | Working | - | OPT_BUILD_SPYSERVER_SOURCE | ✅ | ✅ | ✅ | | usrp_source | Beta | libuhd | OPT_BUILD_USRP_SOURCE | ⛔ | ⛔ | ⛔ | ## Sinks | Name | Stage | Dependencies | Option | Built by default| Built in Release | Enabled in SDR++ by default | |--------------------|------------|--------------|------------------------------|:---------------:|:----------------:|:---------------------------:| | android_audio_sink | Working | - | OPT_BUILD_ANDROID_AUDIO_SINK | ⛔ | ✅ | ✅ (Android only) | | audio_sink | Working | rtaudio | OPT_BUILD_AUDIO_SINK | ✅ | ✅ | ✅ | | network_sink | Working | - | OPT_BUILD_NETWORK_SINK | ✅ | ✅ | ✅ | | new_portaudio_sink | Beta | portaudio | OPT_BUILD_NEW_PORTAUDIO_SINK | ⛔ | ✅ | ⛔ | | portaudio_sink | Beta | portaudio | OPT_BUILD_PORTAUDIO_SINK | ⛔ | ✅ | ⛔ | ## Decoders | Name | Stage | Dependencies | Option | Built by default| Built in Release | Enabled in SDR++ by default | |---------------------|------------|--------------|-------------------------------|:---------------:|:----------------:|:---------------------------:| | atv_decoder | Unfinished | - | OPT_BUILD_ATV_DECODER | ⛔ | ⛔ | ⛔ | | dmr_decoder | Unfinished | - | OPT_BUILD_DMR_DECODER | ⛔ | ⛔ | ⛔ | | falcon9_decoder | Unfinished | ffplay | OPT_BUILD_FALCON9_DECODER | ⛔ | ⛔ | ⛔ | | kgsstv_decoder | Unfinished | - | OPT_BUILD_KGSSTV_DECODER | ⛔ | ⛔ | ⛔ | | m17_decoder | Beta | - | OPT_BUILD_M17_DECODER | ⛔ | ✅ | ⛔ | | meteor_demodulator | Working | - | OPT_BUILD_METEOR_DEMODULATOR | ✅ | ✅ | ⛔ | | radio | Working | - | OPT_BUILD_RADIO | ✅ | ✅ | ✅ | | weather_sat_decoder | Unfinished | - | OPT_BUILD_WEATHER_SAT_DECODER | ⛔ | ⛔ | ⛔ | ## Misc | Name | Stage | Dependencies | Option | Built by default | Built in Release | Enabled in SDR++ by default | |---------------------|------------|--------------|-----------------------------|:----------------:|:----------------:|:---------------------------:| | discord_integration | Working | - | OPT_BUILD_DISCORD_PRESENCE | ✅ | ✅ | ⛔ | | frequency_manager | Working | - | OPT_BUILD_FREQUENCY_MANAGER | ✅ | ✅ | ✅ | | recorder | Working | - | OPT_BUILD_RECORDER | ✅ | ✅ | ✅ | | rigctl_client | Unfinished | - | OPT_BUILD_RIGCTL_CLIENT | ✅ | ✅ | ⛔ | | rigctl_server | Working | - | OPT_BUILD_RIGCTL_SERVER | ✅ | ✅ | ✅ | | scanner | Beta | - | OPT_BUILD_SCANNER | ✅ | ✅ | ⛔ | | scheduler | Unfinished | - | OPT_BUILD_SCHEDULER | ⛔ | ⛔ | ⛔ | # Troubleshooting First, please make sure you're running the latest automated build. If your issue is linked to a bug it is likely that is has already been fixed in later releases ## SDR++ crashes then it won't start again no matter what This is a bug in 1.0.0 that was fixed in 1.0.1 In some cases, if a crash happened while the config was being saved, the config file would be corrupted and SDR++ would refuse to start because of it. This has now been fixed. If a config file is corrupted it'll just reset it to its default state. ## "hash collision" error when starting You likely installed the `soapysdr-module-all` package on Ubuntu/Debian. If not it's still a SoapySDR bug caused by multiple soapy modules coming in conflict. Uninstall anything related to SoapySDR then install soapysdr itself and only the soapy modules you actually need. ## "I don't see -insert module name here-, what's going on?" If the module was included in a later update, it's not enabled in the config. The easiest way to fix this is just to delete the `config.json` file and let SDR++ recreate it (you will lose your setting relating to the main UI like VFO colors, zoom level and theme). The best option however is to edit the config file to add an instance of the module you wish to have enabled (see the Module List). ## SDR++ crashes when stopping a RTL-SDR This is a bug recently introduced by libusb1.4 To solve, this, simply downgrade to libusb1.3 ## SDR++ crashes when starting a HackRF If you also have the SoapySDR module enabled, this is a bug in libhackrf. It's caused by libhackrf not checking if it's already initialized. The solution until a fixed libhackrf version is released is to disable the soapy_source module from SDR++. For this, go into the "Module Manager" menu and click the `-` button next to the row with "soapy_source". After that, restart SDR++. ## Issue not listed here? If you still have an issue, please open an issue about it or ask on the discord. I'll try to respond as quickly as I can. Please avoid trying to contact me on every platform imaginable thinking I'll respond faster though... # Contributing Feel free to submit pull requests and report bugs via the GitHub issue tracker. I will soon publish a contributing.md listing the code style to use. # Credits ## Patrons * Bob Logan * [Christian Häusler](https://github.com/corvus-ch) * Croccydile * Dale L Puckett (K0HYD) * [Daniele D'Agnelli](https://linkedin.com/in/dagnelli) * D. Jones * Dexruus * [EB3FRN](https://www.eb3frn.net/) * Eric Johnson * Ernest Murphy (NH7L) * Flinger Films * [Frank Werner (HB9FXQ)](https://twitter.com/HB9FXQ) * gringogrigio * Jeff Moe * Joe Cupano * KD1SQ * Kezza * Krys Kamieniecki * Lee Donaghy * Lee KD1SQ * .lozenge. (Hank Hill) * Martin Herren (HB9FXX) * ON4MU * [Passion-Radio.com](https://passion-radio.com/) * Paul Maine * Peter Betz * [Scanner School](https://scannerschool.com/) * Scott Palmer * [SignalsEverywhere](https://signalseverywhere.com/) * Syne Ardwin (WI9SYN) * [W4IPA](https://twitter.com/W4IPAstroke5) * William Arcand (W1WRA) * [Yves Rougy](https://www.twitch.tv/yorzian) * [Zipper](https://github.com/reppiZ) ## Contributors * [Aang23](https://github.com/Aang23) * [Alexsey Shestacov](https://github.com/wingrime) * [Aosync](https://github.com/aosync) * [Benjamin Kyd](https://github.com/benkyd) * [Benjamin Vernoux](https://github.com/bvernoux) * [Cropinghigh](https://github.com/cropinghigh) * [Fred F4EED](http://f4eed.wordpress.com/) * [Howard0su](https://github.com/howard0su) * John Donkersley * [Joshua Kimsey](https://github.com/JoshuaKimsey) * [Manawyrm](https://github.com/Manawyrm) * [Martin Hauke](https://github.com/mnhauke) * [Marvin Sinister](https://github.com/marvin-sinister) * [Maxime Biette](https://github.com/mbiette) * [Paulo Matias](https://github.com/thotypous) * [Raov](https://twitter.com/raov_birbtog) * [Cam K.](https://github.com/Starman0620) * [Shuyuan Liu](https://github.com/shuyuan-liu) * [Syne Ardwin (WI9SYN)](https://esaille.me/) * [Szymon Zakrent](https://github.com/zakrent) * Youssef Touil * [Zimm](https://github.com/invader-zimm) ## Libraries used * [SoapySDR (PothosWare)](https://github.com/pothosware/SoapySDR) * [Dear ImGui (ocornut)](https://github.com/ocornut/imgui) * [json (nlohmann)](https://github.com/nlohmann/json) * [rtaudio](http://www.portaudio.com/) * [Portable File Dialogs](https://github.com/samhocevar/portable-file-dialogs)