Ham Radio and Linux - Building SDR++ on the Raspberry Pi from source code.

  Рет қаралды 21,881

Kevin Loughin

Kevin Loughin

Күн бұрын

Link to the github page:
github.com/AlexandreRouma/SDR...
My modified version of the script:
#!/bin/sh
Script authored by Alexandre Rouma, tested and modified by Kevin Loughin, KB9RLW, Sept 15th 2021
set -e
[ $(id -u) = 0 ] && echo "Please do not run this script as root" && exit 100
echo "Installing dependencies"
sudo apt update
sudo apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk1-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev libbladerf-dev liblimesuite-dev p7zip-full wget
get the source
cd ~/Desktop
git clone github.com/AlexandreRouma/SDR...
cd SDRPlusPlus
echo "Preparing build"
mkdir -p build
cd build
cmake .. -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON
echo "Building"
make
echo "Installing"
sudo make install
echo "Done!"

Пікірлер: 106
@SDR-DXobserver
@SDR-DXobserver 2 жыл бұрын
Kevin, thanks for making this happen. It's nice to see a "real" usefull and comprehensive SDR control program running on a Pi4. I had SDR++ running on Win10 and the Pi version is a real asset. Thanks to you and Alexandre for all the efforts!
@spytromics
@spytromics 2 жыл бұрын
Great video. Your screen capture software is using 93% of one core, so SDR++ should be OK in normal use. Also, your Raspbian is so old that it's no longer called that! It's now Raspberry Pi OS. The new OS also supports booting from an SSD drive on a Pi 4, which is much faster than a SD card. I really enjoy your videos. Thanks so much!
@dvcrash
@dvcrash 2 жыл бұрын
Love it! Thanks for sharing Kevin. Got to love Linux and got to love those Pi's!!
@briantooze3415
@briantooze3415 2 жыл бұрын
Hi Kevin, Thank you for this video. I failed to get the modified script to run so I followed your Command Line instructions which worked great. Like you, I found some dependencies missing but through your guidance worked my way through the problems. I now have SDR++ running on my Pi4. Thanks again. Brian.
@loughkb
@loughkb Жыл бұрын
Glad you found it helpful Brain.
@davidh5645
@davidh5645 2 жыл бұрын
I absolutely love these types of videos from you!
@ericblaine1316
@ericblaine1316 2 жыл бұрын
Worked perfectly with the quick mods you mentioned to the library. Installed on Pi 4 with a 4” touchscreen. Thanks for the video and instruction.
@pincus321
@pincus321 2 жыл бұрын
Thank you for your efforts here Kevin, I will try this on my Pi as a result of your encouragement
@aandpman
@aandpman 2 жыл бұрын
WooHOO! I just did it on 3 of my Pi's! 2 Pi4's * a Pi3. It worked, after I made sure I edited the script to eliminate SDRPlay (I use RTL-SDR's)... I didn't have need to install the SDRPlay api to get my stuff going. Thanks for a great instructional vid. :-)
@HyyskanPolttaja
@HyyskanPolttaja 2 жыл бұрын
Thanks Kevin! I compiled Sdr++ on my RPI4 and it now works with my SDRPlay RSP2.
@PaulaBean
@PaulaBean 2 жыл бұрын
Excellent video. Thanks for fleecing all these things out!
@derekdowns6275
@derekdowns6275 2 жыл бұрын
Thanks for your work & working with the author! This makes my day!
@chrisherd991
@chrisherd991 2 жыл бұрын
Thank you for putting this together, I cant wait to do this for my sdrplay duo.
@chrisherd991
@chrisherd991 2 жыл бұрын
Hi Kevin, I have built this and it works, but there is a small issue in your written script. The text in the nots shows " SDR..." when it should be "SDRPlusPlus". BTW I was able to connect wefax using FLDIGI and I can see the audio in the waterfall. Thank you again for your good work.
@MrWeavis
@MrWeavis 2 жыл бұрын
Thank you Kevin for a job well done. It's a pleasure to have a great SDR program running on my Pi 4 working with my AirspyHF+.
@MrWeavis
@MrWeavis 2 жыл бұрын
Hi Kevin. I just tried to run your SDR.sh on the new Bullseye OS without success. Any thoughts?
@RESlusher
@RESlusher 2 жыл бұрын
@@MrWeavis I'm trying to do the same thing now myself on a RPi 4 B with Bullseye. Did you ever get it worked out?
@geofham8332
@geofham8332 2 жыл бұрын
Hi, enjoyed the video Kevin, many thanks. Still learning here. From Nr Liverpool UK
@Jake_WY7JMS
@Jake_WY7JMS 2 жыл бұрын
1/21/2022 - I don't see anything referencing his GIT in his RPI script. Glad you emphasized about what you added and included your changes in the description of your video here.
@StefanMX
@StefanMX 2 жыл бұрын
Despite being an absolute beginner to Linux/Raspberry I got it to work. I connected the ADALM Pluto. After reducing the bandwidth to 1Mhz, reducing the audio rate and disabling the waterfall the Pluto is working fine. The Arm processor can not keep up with the default settings. Greetings from Greece.
@Kensownvids
@Kensownvids 2 жыл бұрын
Nice job Kevin. How about building cqrlog. Sometimes the posted builds don’t work. I am going to try this build. Beautiful weather here in Yucca Valley CA.
@PaulaBean
@PaulaBean 2 жыл бұрын
7:29 the terminal offers 'tab completion', you can just type the first few characters of a filename (enough to uniquely identify the file) and press the TAB key and the terminal supplies the rest of the filename ;-)
@fjellfrank
@fjellfrank 2 жыл бұрын
Great video. and it works :)
@JohnTarbox
@JohnTarbox 2 жыл бұрын
Nice job Kevin.
@fryslander
@fryslander 2 жыл бұрын
Hi Kevin ,thanks for sharing, it's a great help. 73 Wim PA3GTL
@larrytaylor7753
@larrytaylor7753 2 жыл бұрын
Well done.
@bobwong8268
@bobwong8268 2 жыл бұрын
👍👍👍👍👍 Great! Thanks!
@philhowe5450
@philhowe5450 2 жыл бұрын
Hi Kevin, great video, I now have SDR++ running. I'm trying to hear audio from the SDR via a XRDP session however there is no audio. I've installed the PulseAudio add on without success, any ideas? Phil VK4IIO
@mariofazio6006
@mariofazio6006 11 ай бұрын
Thanks for video building sdrpp, regards from Argentina, Bahia Blanca. LU4EOU
@derekcopsey6989
@derekcopsey6989 2 жыл бұрын
Thanks Kevin
@panoshountis1516
@panoshountis1516 Жыл бұрын
Great video. Any idea if I can use the same raspberry pi with 2 SDR dongles, one feeding SDR++ as you presented here and another one picking up ADS-B signal?
@loughkb
@loughkb Жыл бұрын
I doubt there'd be enough CPU to handle that kind of load. Maybe on the Pi 4.
@jeffreyplum5259
@jeffreyplum5259 2 жыл бұрын
Could you cover the use of the SoapyRemote SDR server software with SDR++. SoapyRemote is an application for driving an SDR module remotely. It is a remoteserver. SDR++ or CubicSDR would control it on a local machine. I believe SoapyRemote is available for the Pi already. Many thanks for your fine work.
@Jenko022
@Jenko022 2 жыл бұрын
Thanks for this. I now have SDR++ on my Pi4. I wanted this as it has the same look as SDR# but my rtl dongle does work well on the Windows computer. Just one question, I use a Bluetooth speaker but cant get the audio from sdr++ to output to it. Is it HDMI or audio jack only?
@loughkb
@loughkb 2 жыл бұрын
SDR++ is going to use whatever audio device you pick in the audio sink. The Pi might be defaulting to HDMI, or defaulting to the headphone jack. You can change that in the pi config program. Does other software produce audio? Like youtube in a browser?
@Jenko022
@Jenko022 2 жыл бұрын
@@loughkb Thanks for this. Currently using GQRX with a bluetooth speaker and get good audio. Will go i to SDR++ again but couldnt seem to see any audio options.
@loughkb
@loughkb 2 жыл бұрын
@@Jenko022 In the menu bars on the left, look for audio sink. If it's not there, add it in the module manager section. Under the audio sink, you can choose from available audio devices for output.
@Jenko022
@Jenko022 2 жыл бұрын
@@loughkb Thanks, working perfect now with sound on my BT speaker. Awesome!!
@OE8ACT
@OE8ACT 2 жыл бұрын
Great video Kevin! I installed SDR++ on a PI and got it running with a RTL-SDR (Nooelec NESDR) but I have this crackly audio too. I'm using the audio jack and therefor I disabled the HDMI audio output. It sounds like the PI is on it's limit. Is there a way to optimize it for maximum power? I'm using the latest Raspbian on a Raspberry PI 3 B with a cheap Yosoo 5" TFT from Amazon. shows about 350% CPU usage and 30% memory. Any idea? 73 de OE8ACT - Patrick
@loughkb
@loughkb 2 жыл бұрын
I even had trouble with gqrx on the Pi 3 series. Just not quite enough horsepower. I don't know what to suggest off hand.
@sajanduwal3932
@sajanduwal3932 Жыл бұрын
Hello sir, Which version of Raspberry Pi is best for GNU Radio and RTL-SDR operating on Linux OS?
@loughkb
@loughkb Жыл бұрын
Go for the 4. You'll need the extra CPU power. They can run on a 3b+, but only just as the CPU runs near 100% under this load.
@magicjim11
@magicjim11 2 жыл бұрын
I get this error when running your script "Unable to locate package libairspyhf-dev" any ideas how to solve it ? May be it is possible to put working image for rpi sdr++ with sdrplay support? 73 de 4x6ir
@bern047
@bern047 2 жыл бұрын
Excellent Kevin, looking to install this on my Pi and you did a great job, is you script all ready to go? I will be using the RSP2, will it be ok?
@loughkb
@loughkb 2 жыл бұрын
It should work fine. The script is in the video description, just copy and paste into an editor, save to your desktop and make it executable. It works fine on the Pi4, 3 or earlier struggle due to lower CPU horsepower. Be sure you install the SDRPlay API from their site as I showed and your RSP2 should work fine.
@bern047
@bern047 2 жыл бұрын
@@loughkb Please help Kevin the script is asking for user and password for Github, I am missing something basic, what do I do? thanks
@loughkb
@loughkb 2 жыл бұрын
@Bernard Mannas Github shouldn't ask for a password. Maybe they're having trouble right now. They have been a little less reliable since microsoft acquired them. What exactly is on the screen? The lines just before the error and the error itself.
@bern047
@bern047 2 жыл бұрын
@@loughkb I have sorted it out Kevin, I copied what you did in the step by step walk through, copied the git web address and it all works fine now, thanks
@loughkb
@loughkb 2 жыл бұрын
@@bern047 Glad you got it solved.
@derekdowns6275
@derekdowns6275 2 жыл бұрын
libvolk2-dev is not available for the pi, but libvolk1-dev is, which I see you're aware of, by your script.
@FlingerFilms
@FlingerFilms 2 жыл бұрын
Haha Ironically.. I wrote a script to do this also.. I mentioned to Alexandre he should have an RPI build script. 😉 He's pretty smart.. very busy.. Definitely support the SDR++ Patreon
@W4TRI
@W4TRI 2 жыл бұрын
Kevin I'm running the same OS as you. Ever had your volume control lock to mute even though you are seeing signals on the screen? What directory do I have to blow away to have a true new install because removing the packages leaves something behind. Thanks!
@loughkb
@loughkb 2 жыл бұрын
No on the volume control. True new install of what? Removing what packages leaves something behind? I don't follow.
@W4TRI
@W4TRI 2 жыл бұрын
@@loughkb A true new install of the App SDR++ The removal process leaves behind the old config directory at ~/.config/sdrpp and in my case (probably not unique) a total removal of this directory and contents made a reinstall work perfect. Check issue 367 on the SDR++ Github for further. Not sure what the cause was but this cures it.
@loughkb
@loughkb 2 жыл бұрын
I had a problem over on the laptop and Alexandre told me to delete the config folder. Fixed it.
@W4TRI
@W4TRI 2 жыл бұрын
@@loughkb Yep. I asked him if this could be included later as an option but it's just as easy to delete and reinstall once you know what and where. Working well now.
@progrockrules9463
@progrockrules9463 2 жыл бұрын
I am pretty new to rasberry pi and SDR. If you already have a SDRplay, which is the receiver, what is the role of the rasberry pi here ?
@bobwong8268
@bobwong8268 2 жыл бұрын
In short: the PC or computer. Raspberry Pi is a SBC: Single Board Computer driven by Arm processors like Android smartphones. HTH.
@jma8352
@jma8352 Жыл бұрын
whats the advantage over a windows 10 laptop?
@muddyexport5639
@muddyexport5639 2 жыл бұрын
Good vid and job! BZ (Bravo Zulu, USN jargon acronum/pro sign for Job Well Done). 73 de N5XS. 73 AR BK
@mrlintonious
@mrlintonious 4 ай бұрын
I know thsi is two years late. I have just gotten a Pi5, and SDR++ does not Run. I tried a few Distro's, and got SDR++ installed, it shows in the Menu, but does not Run, and I think the Pi OS, it Installes, but my RSP1/SDRPlay does not show as option to Select. Seems there not any Distro's for Pi5 to fully work as ARM 64Bit. Any help? Perhaps a similar Video like this, with Pi OS, and Ubuntu? Thank you, and really hope you can help. WSJTX, FLDigi and FLrig works, and it "chats" to my Icom Radio. gqrx, also does not see the RSP1/SDRPlay. It is just my RSP1. Used to work fine on my ex Windows Laptop with SDRUno, but that no longer works, hence me getting the Pi5. Thaking you in advance.
@loughkb
@loughkb 4 ай бұрын
Follow this one, maybe it'll work for you. Getting the SDR play working under Linux. kzbin.info/www/bejne/Z5rcp5qberhoZ6csi=FZuMSFdXsiyCOMzc
@mrlintonious
@mrlintonious 4 ай бұрын
Hi. I followed the Script to the T, above, and was able to get SDR++ installed. Only had to change, libvolk1-dev to libvolk-dev, as it did not see libvolk1-dev as a sourse. I then had to Build the SoapySDRPlay for the device to be seen therafter. Thanx once again. Greatly appreciated. This was for Ubuntu 23.10@@loughkb
@antoniomaldonado9282
@antoniomaldonado9282 2 жыл бұрын
Hola Kevin,tengo instalado el sdr++ con rtl sdr en Raspberry pi 4 y funciona perfecto pero mi pregunta es,pueden convivir en el mismo sdr++ rtl sdr y sdrplay? me gustaria poner mi sdrplay tambien,gracias de antemano,73. EA7KEM.
@loughkb
@loughkb 2 жыл бұрын
They should work one at a time. I don't know if you can use them at the same time.
@MixedGril
@MixedGril 5 ай бұрын
welke editor heb je gebruikt(gui)
@loughkb
@loughkb 5 ай бұрын
I'd have to rewatch the video to confirm, but I usually use pluma for text editing under Linux
@Siskiyous6
@Siskiyous6 2 жыл бұрын
I have it on my Linux Mint Desktop, but running it does nothing - sigh
@derekdowns6275
@derekdowns6275 2 жыл бұрын
Same here, running "Tricia". Haven't tried building from source yet for the Mint box, but building now on the pi4!
@user-sk8ph6bk2m
@user-sk8ph6bk2m 2 жыл бұрын
I could install SDR++ for Raspberry Pi OS 64bit(beta) with some modification. API for arm ubuntu (ARM64-3.07.1) should be selected. thanks a lot
@DiyintheGhetto
@DiyintheGhetto 2 жыл бұрын
Just a update. It looks like it downloaded everything. But when going to the make install it stops at 71% saying missing api. Then stops
@loughkb
@loughkb 2 жыл бұрын
If you're using SDRPlay hardware, then you need to install their API first.
@DiyintheGhetto
@DiyintheGhetto 2 жыл бұрын
@@loughkb Where do I get that at And how do I install that?
@loughkb
@loughkb 2 жыл бұрын
@@DiyintheGhetto It's on the SDRPlay web site under downloads. I think I left a link to it in the video description.
@derekdowns6275
@derekdowns6275 2 жыл бұрын
When I run sdrpp from the command line, I see an error that I think reveals the issue with audio problems: RtApiAlsa::callbackEvent: audio write error, underrun. Anyone else having this issue? Recorded audio seems ok. OS: Raspbian GNU/Linux 10 (buster) armv7l Host: Raspberry Pi 4 Model B Rev 1.4 Kernel: 5.10.52-v7l+
@loughkb
@loughkb 2 жыл бұрын
That could be RTAudio being too old. Build the newer version and try? ----- git clone github.com/thestk/rtaudio && cd rtaudio mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX:PATH="/usr" -DRTAUDIO_API_JACK=OFF -DRTAUDIO_API_ALSA=OFF .. sudo apt remove librtaudio-dev sudo make install
@jean-pierredesoza2340
@jean-pierredesoza2340 2 жыл бұрын
Hi Kevin, you may use the tab key to autocomplete file names once they are no more ambiguous.(Edit) I just realised this is not true within a Linux terminal, it's a known shortcoming when you're coming from macOS or Windows...
@loughkb
@loughkb 2 жыл бұрын
That depends on what terminal you're using and how it's configured. Tab complete is an option that has to be enabled and isn't always by default.
@bobwong8268
@bobwong8268 2 жыл бұрын
@@loughkb 👍👍👍👍👍Exactly! For myself Linux's Terminals and Shell can do more than that. Take for eg, Termux on an Android phone, we simply type first letter of a command like 's' and type [tab] key twice to get a list of all commands started with 's'. We can even [Ctrl][r] to start a reverse search for commands we previously use! Eg1: [Ctrl][r] upd Eg2: [Ctrl][r] upg Now, weekly update & upgrade become a breeze ;) Forgotten to put "sudo" in front of a command say: "apt install xyz"? Simply type: "sudo !!" [Enter] There is really much more to it... Just my 2 cents back.
@W4BIN
@W4BIN 2 жыл бұрын
Kevin, the lighting on you was poor, did you forget to turn a light or two on? Kevin, why do you range and paste windows style ? instead of LINUX style, 1. range with mouse pointer, 2. change focus and 3. press center mouse button/wheel. (Slackware since June 28 1979 3.? to 14.2 just a user!) Ron W4BIN
@andrewjwhall
@andrewjwhall 2 жыл бұрын
Hi Kevin! Thank you for all your awesome videos! Sorry to posted this here but I don't use facebook anymore! I have started to use Linux again, as a result of your videos, mostly for my SDR receivers. However there is one program that has me banging my head against the wall! "Dream DRM Decoder". The source code is there but there is just SO many ways you could install this program. It needs extra decoders, pulseaudio etc. Most of the install scripts are just out of date and don't fully work. To be quite honest this has got way over my head! Can you help (idea for another video)! I am using Linux Mint 20.2 "Uma" MATE Edition, recommend for beginners like myself. Hope you can help. All the best & 73's, Andrew, QTH, Germany.
@loughkb
@loughkb 2 жыл бұрын
I looked at Dream a few years ago. At the time, I think I did build it and it was a pain to do. I never did get it to work though. You need a receiver with a very high bandwidth filter since most DRM broadcasts are very wide.
@andrewjwhall
@andrewjwhall 2 жыл бұрын
@@loughkb Hi Kevin! Thank you for coming back to me! I guess if you had trouble with Dream, with your knowledge, then it must be a nightmare in general to install! Looks like I will have to put that one on the back burner for now. The sad thing is I had a look round for alternatives to Dream but did not find anything else (to my knowledge) for Linux! With regards to my receiver it will do the job as I have run it with Dream on Windows! All the best & 73's!
@loughkb
@loughkb 2 жыл бұрын
@@andrewjwhall Have you tried the windows version under WINE? It may run just fine.
@andrewjwhall
@andrewjwhall 2 жыл бұрын
@@loughkb Good idea! I will give it a try! Thanks Kevin!
@andrewjwhall
@andrewjwhall 2 жыл бұрын
That worked a treat! Thanks for the pointer Kevin! 73's
@GisleVanem00
@GisleVanem00 2 жыл бұрын
bash, yuk! Bad on Rasberry too.
@jeffreyplum5259
@jeffreyplum5259 2 жыл бұрын
It would be nice to know how long the build takes.. Of course, that depends largely on your Pi's memory and boot deviceSSDs and 4 0r8 GB pis may build it faster than 2 GB Pi running off an SD card.. I guess this means I put an SDR module on my Xmas list. I think both Pis and SDRs can be addicting they have so many uses. Many Thanks.
@edbeckerich3737
@edbeckerich3737 2 жыл бұрын
Dude, sudo apt install htop -immediately!!
@brianbrown4965
@brianbrown4965 2 жыл бұрын
sadly i was lost just a few mins in
@porcusdiu
@porcusdiu 2 жыл бұрын
Excuse me, this software support TETRA and DMR decoder? Many thanks, '73 de I T 9 * * *
@bahathir_
@bahathir_ 2 жыл бұрын
It is wise to git clone first, change into the directory and start running the rpi installer script. Thank you. 73.
@loughkb
@loughkb 2 жыл бұрын
Yes, but I wanted to make a single script that would do it all in as few steps as possible. But mostly, walking through things step by step helps people that are learning linux.
@bahathir_
@bahathir_ 2 жыл бұрын
@@loughkb Great. In this case, $ cd ~/Desktop $ git clone ...url... $ cd source_directory $ . rpi_install_script.sh Focus I am using ' . script.sh' , In this method I not need to 'chmod +x' the script.sh. Thank you.
@charlesschindler1971
@charlesschindler1971 2 жыл бұрын
👋Hell-o friend!👋 🐈
Me: Don't cross there's cars coming
00:16
LOL
Рет қаралды 15 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 105 МЛН
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
You Need A Cheap SDR Radio Dongle ~$25-125
1:05:08
Ham Radio Crash Course
Рет қаралды 72 М.
Building a Raspberry-Pi Storage Server with OpenMediaVault
24:33
Learn Linux TV
Рет қаралды 96 М.
Radxa X2L: Low-cost x86 SBC with RP2040
17:08
ExplainingComputers
Рет қаралды 94 М.
Raspberry Pi HF radio - step by step instructions
43:26
Techstuff & More
Рет қаралды 31 М.
I switched to Linux 30 days ago... How did it go?
28:46
Craft Computing
Рет қаралды 177 М.
HamPi Ham Radio Software for Raspberry Pi from W3DJS (#294)
26:58
David Casler Ask Dave
Рет қаралды 32 М.
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 167 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,7 МЛН
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 756 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,7 МЛН