Errors running gqrx on Raspberry Pi 3

691 views
Skip to first unread message

Radar

unread,
Nov 1, 2018, 4:51:46 AM11/1/18
to Gqrx SDR
Hello, I installed and built this application onto my RPI 3 according to these videos:



To start, I'm running off a Raspberry Pi 3 B+ using Raspbian Jessie 8.0

I have followed the entire videos twice but wasn't in the same directory for part one which was installing and building for the system to run my dongle. I was in pi@raspberrypi:~$ instead of pi@raspberrypi:~/etc/apt $ but it didn't seem to make a difference. After rebooting and using the rtl test it showed up correctly. 

pi@raspberrypi:~ $ rtl_test -t

Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.


And so I'm having an issue building and running gqrx... 

First I downloaded gqrx-sdr-2.11.5-linux-rpi3 as a Tar file. 

I opened a terminal and did this:

pi@raspberrypi:~ $ pwd
/home/pi
pi@raspberrypi:~ $ ls

Music
oldconffiles
Pictures
Public
Desktop                                 rtl-sdr
Develop                                                         
Downloads                               
Videos

pi@raspberrypi:~ $ cd Downloads
pi@raspberrypi:~/Downloads $ ls
gqrx-2.9-linux-armv6.tar.xz
gqrx-sdr-2.11.5-linux-rpi3.tar.xz
pi@raspberrypi:~/Downloads $ tar xf gqrx-sdr-2.11.5-linux-rpi3.tar.xz
pi@raspberrypi:~/Downloads $ ls 
gqrx-2.9-linux-armv6.tar.xz
gqrx-sdr-2.11.5-linux-rpi3.tar.xz
gqrx-sdr-2.11.5-linux-rpi3
pi@raspberrypi:~/Downloads $ cd gqrx-sdr-2.11.5-linux-rpi3
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ ls
bin  gqrx  lib  readme.txt  udev

(said some other stuff before hand but this is just to show) 

pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ cat readme.txt

This is Gqrx v2.11 for the Rapsberry Pi 3.

It was built on a Raspberry Pi 3 running Raspbian Stretch, but should
also work on other similar ARM boards running a Debian 9 based Linux
distribution.

First, you need to install the GNU Radio and Qt5 libraries. Open a
terminal and type the following lines:

sudo apt update
sudo apt install gnuradio libvolk1-bin libusb-1.0-0 gr-iqbal
sudo apt install qt5-default libqt5svg5 libportaudio2

Second, in order to enable access to USB devices like rtlsdr, Airspy,
SDRPlay, etc, you need to copy the corresponding udev rule to
/etc/udev/rules.d/. Open a terminal and change to the gqrx directory
then type:

sudo cp udev/*.rules /etc/udev/rules.d/

You can now start the program, e.g. by double-clicking on the file
called "gqrx".


Please go to http://gqrx.dk/user-support if you need assistance.

pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt-get update
Hit http://repo.steampowered.com precise InRelease
Hit http://archive.raspberrypi.org jessie InRelease                            
Hit http://mirrordirector.raspbian.org jessie InRelease                
Get:1 http://repo.steampowered.com precise/steam Sources [550 B]
Get:2 http://repo.steampowered.com precise/steam amd64 Packages [606 B]        
Get:3 http://repo.steampowered.com precise/steam i386 Packages [803 B]         
Ign http://repo.steampowered.com precise/steam Translation-en_CA               
Ign http://repo.steampowered.com precise/steam Translation-en                  
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages              
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://archive.raspberrypi.org jessie/main i386 Packages
Hit http://archive.raspberrypi.org jessie/ui i386 Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_CA               
Ign http://archive.raspberrypi.org jessie/main Translation-en                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_CA                 
Ign http://archive.raspberrypi.org jessie/ui Translation-en                    
Fetched 1,959 B in 21s (89 B/s)                                                
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  pix-icons pix-plym-splash pixel-wallpaper
Use 'apt-get autoremove' to remove them.
Done
The following packages have been kept back:
  python-openssl python3-openssl
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt install gnuradio libvolk1-bin libusb-1.0-0 gr-iqbal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libvolk1-bin
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt-get install libvolk1-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libvolk1-bin
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt install libvolk-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libvolk-bin is already the newest version.
The following packages were automatically installed and are no longer required:
  pix-icons pix-plym-splash pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt install qt5-default libqt5svg5 libportaudio2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libportaudio2 is already the newest version.
libqt5svg5 is already the newest version.
qt5-default is already the newest version.
The following packages were automatically installed and are no longer required:
  pix-icons pix-plym-splash pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo cp udev/*.rules /etc/udev/rules.d/
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ 

At this point I went into /Downloads/gqrx-sdr-2.11.5-linux-rpi3 and doubled clicked the gqrx executable file and it asked me "Execute file, Execute in terminal, Cancel" and I tried both execute file and execute in terminal. Nothing happened so I tried to use ./setup_gqrx.sh like the RPI 2 version, but it didn't work. Then I tried ./run_gqrx.sh and that still didn't work, so then I tried ./run_gqrx and still nothing. Someone online said to use ./gqrx so I tried that and something happened... Here it is:

pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ ./gqrx
./gqrx: error while loading shared libraries: libboost_system.so.1.62.0: cannot open shared object file: No such file or directory
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ 


and so at this point I'm stumped because I messed up with the RTL-SDR files and such but it still worked out ok and I don't think I made any mistakes installing and building gqrx here, but I know nothing and this is my second time trying to install and build an application on here. I only just started on Raspbian little alone Linux so please excuse me, I really don't know what I'm doing at all but I only got one error during installation and one trying to run the application so I think, I did everything correctly according to the tutorials... Not sure what is causing this to happen. Anyway, I tired to install libboost_system.so.1.62.0 and nothing, Here's that:

pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt-get install libboost_system.so.1.62.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libboost_system.so.1.62.0
E: Couldn't find any package by regex 'libboost_system.so.1.62.0'
pi@raspberrypi:~/Downloads/gqrx-sdr-2.11.5-linux-rpi3 $ sudo apt install libboost_system.so.1.62.0

And this is where it blew up in my face. So much spammed my terminal that I cannot really show you what happened or I'd spam. Maybe a good 100-400 lines of something all starting with note, and I have no clue how much it was or what it did.. Here are the last lines of the response:

Note, selecting 'pypy-lib' instead of 'pypy-cffi-backend-api-9729'
Note, selecting 'pypy-lib' instead of 'pypy-cffi-backend-api-max'
Note, selecting 'pypy-lib' instead of 'pypy-cffi-backend-api-min'
Note, selecting 'xserver-xorg-core' instead of 'xorg-input-abi-22'
Note, selecting 'xserver-xorg-core' instead of 'xorg-video-abi-20'
E: Unable to locate package pi@raspberrypi
E: Unable to locate package apt-get
E: Unable to locate package install
E: Unable to locate package libboost_system.so.1.62.0
E: Couldn't find any package by regex 'libboost_system.so.1.62.0'

I'm not sure what to do now. I don't know if this is because I tried to install it twice, or if Jessie 8.0 doesn't support it or what... I'm assuming for now Jessie 8.0 cannot and I need Stretch 9.0 because that has happened while trying to install and build other applications such as Steam. That is why you'll notice the i386 package error during the apt-get update or upgrade is because my system is ARM and doesn't actually run i386 apparently. Took me a lot of effort just to find that out and try to fix it for nothing... Anyway, if anyone could help out that'd be great! I'm kind of hoping I just made a small error or something went wrong that can be fixed somehow... :) 

Alexandru Csete

unread,
Nov 1, 2018, 7:07:02 AM11/1/18
to gq...@googlegroups.com
Hi,

On Thu, Nov 1, 2018 at 9:51 AM Radar <macadam....@gmail.com> wrote:
>
> Hello, I installed and built this application onto my RPI 3 according to these videos:
>
> Video part 1: https://www.youtube.com/watch?v=1pr319FvOwI
> Video part 2: https://www.youtube.com/watch?v=mBU7eSviy_0

Why not just start with http://gqrx.dk/download/gqrx-sdr-for-the-raspberry-pi ?

> To start, I'm running off a Raspberry Pi 3 B+ using Raspbian Jessie 8.0

Ok, but as the readme says:

> This is Gqrx v2.11 for the Rapsberry Pi 3.
>
> It was built on a Raspberry Pi 3 running Raspbian Stretch, but should
> also work on other similar ARM boards running a Debian 9 based Linux
> distribution.

Raspbian Jessie 8.0 is not Raspbian Stretch 9. Where is the confusion?

As for why your system is trying to download i386 packages, I can only
guess that you have manually copy & pasted some stuff into the apt
configuration. Maybe time to start with a fresh installation...

Alex

Radar

unread,
Nov 1, 2018, 3:05:39 PM11/1/18
to Gqrx SDR
Oh, first I had to get the dongle drivers and confirm my dongle would work on my Pi I'm guessing. That's why I posted the video links first. I followed them because I'm not really sure what I'm doing.

The i386 packages have nothing to do with this installation. That was another application, Steam. I attempted to install it but it wasn't compatible with Raspbian Jessie little alone Raspberry Pi I found out. That always shows up when I update...

I'm not confused about those two. I already know they are different but run the same but I've had issues with Jessie in the past. Apparently it cannot run as much as Stretch I heard. I cannot really upgrade it's OS at the moment. I only messed up with another thing which was the drivers for my dongle but I corrected it and it worked out. Gqrx was installed as according to the videos as well, and it was pretty much exact same as it was in the video. One package seems to have an issue (libboost_system.so.1.62.0) when i try to run the program. I also used the (sudo cp udev/*.rules /etc/udev/rules.d/) and then double clicked the gqrx file which came up as the executable file prompt asking to execute in terminal, execute, or cancel and when I go to execute it, nothing happened... How would I go about with a fresh install? I don't have an SD reader at all in my Windows XP, and I'm not entirely sure what I have to delete and where...

Brayden Mcgovern

unread,
Jul 9, 2019, 8:50:30 PM7/9/19
to Gqrx SDR
Hi,

I had the same problem and came here. Realized I wasn't using stretch so I switched to that went through the process again according to the video previously mentioned and came up with the same error. Are the udev rules simply in the wrong place? Pretty new to all this as well so not sure what to do at this point. 

Jason Brown

unread,
Aug 21, 2019, 10:35:16 PM8/21/19
to Gqrx SDR
Any updates on this issue? I am running into the exact same problem and when I tried:

sudo apt-get install libboost-system1.62.0

It returned:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libboost-system1.62.0 is already the newest version (1.62.0+dfsg-10+b3).
libboost-system1.62.0 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Davide Barra

unread,
Aug 27, 2019, 1:20:29 PM8/27/19
to Gqrx SDR
Hi all, Hi Alexandru,

Any idea why this doesn't run in the new Raspbian NOOBS version?
I had it installed like a month ago running fine, but needed to format my SD card and when I tried to reinstall gqrx this issue happened.
When I double click the executable file, it opens a text box with three option: "execute","execute in terminal" and "cancel"
Whatever I choose, nothing happens.

Hope to hear from you.

Best Regards
Davide

Alexandru Csete

unread,
Aug 27, 2019, 3:08:29 PM8/27/19
to Gqrx
On Tue, Aug 27, 2019 at 7:20 PM Davide Barra <davide....@gmail.com> wrote:
>
> Hi all, Hi Alexandru,
>
> Any idea why this doesn't run in the new Raspbian NOOBS version?

Because it was built for a previous version of Raspbian.

On Raspbian Buster the only option right now is to use gqrx that comes
with Raspbian. The binaries from the gqrx website will not work.

Alex

Davide Barra

unread,
Aug 27, 2019, 3:55:05 PM8/27/19
to Gqrx SDR
Hi Alexandru,

Thank you very much for your quick reply!!
In the meanwhile I was able to restore my old Raspbian Stretch OS :)
But I will keep in mind that the Raspbian GQRX now works on Raspbian Buster.
I was quite afraid of it because of others posts on this forum, that's why I went with the website version.
Also, keep in mind that I tried to install the Raspbian GQRX out of desperation and I got the connection refused error. Honestly, it must've been a mix of the website installation with the Raspbian one.

Thanks and Best Regards
Davide

terça-feira, 27 de Agosto de 2019 às 20:08:29 UTC+1, Alexandru Csete escreveu:

Alexandru Csete

unread,
Aug 27, 2019, 4:06:57 PM8/27/19
to Gqrx
On Tue, Aug 27, 2019 at 9:55 PM Davide Barra <davide....@gmail.com> wrote:
>
> Hi Alexandru,
>
> Thank you very much for your quick reply!!
> In the meanwhile I was able to restore my old Raspbian Stretch OS :)
> But I will keep in mind that the Raspbian GQRX now works on Raspbian Buster.

I don't know whether it works, I just know it is available. I didn't
have time to try and test.

> I was quite afraid of it because of others posts on this forum, that's why I went with the website version.
> Also, keep in mind that I tried to install the Raspbian GQRX out of desperation and I got the connection refused error.

I think that is because of the Debian/Raspbian is being built using
Pulseaudio backend but the Raspbian desktop does not use pulseaudio.
Installing pulseaudio might fix it, but again, I have not tried it so
I am just guessing.

Alex

Richard Bown

unread,
Aug 27, 2019, 4:20:19 PM8/27/19
to gq...@googlegroups.com
AS you are installing on a SD card, why not on a spare card try using
ubuntu, debian is known for hanging on to old versions.
I've used both and I found debian a PITA
SD cards are low cost, a couple of hours and a working system

Just a suggestion
Richard g8jvm
--
Best wishes /73
Richard Bown

Email : ric...@g8jvm.com

HTTP : http://www.g8jvm.com

######################################################################

Ham Call: G8JVM . QRV: 50-432 MHz + Microwave
Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W
QRV 6mtrs 200W, 4mtrs 150W, 2mtrs 300W, 70cms 200W,
Microwave 1296MHz 110W, 2320MHz 100W & 10368MHz 5W
OS: Linux Mint 19.2 x86_64 Tina, on a Dell Inspiron 3580 laptop
######################################################################


ugo.p...@gmail.com

unread,
Sep 2, 2019, 7:30:20 AM9/2/19
to gq...@googlegroups.com
Hello,

I have installed gqrx 2.11.5-12 from sources on Raspbian "Buster" without any special problem by using the option "no pulseaudio" (cmake with Portaudio forcing option)
It's currently run very well on my PI3B.

73, Ugo Poddine
--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/CAHG%3DS_cBa%2B1H%2BJtFp09U94CmyN6zZdNYoo0N6-0U0jJE7wLhXQ%40mail.gmail.com.

steve harp

unread,
Sep 26, 2019, 5:55:24 PM9/26/19
to Gqrx SDR
I am almost tempted to ditch Raspbian "Stretch" to try Buster--painful though since almost everything else is running correctly in my current image, and the binary release seems to work here too (I'd happily use it except I will need to make source mods).

Running this (release) build, it dies with a malloc error, "doubly-linked list corruption"--no location indicated.
I also tried a debug version, which dies with  a "seg fault in multiply_const3."  This points to...?

When I build 2.11.5, I get warnings about possible  library conflicts:
/usr/bin/ld: warning: libboost_system.so.1.61.0, needed by /usr/lib/gcc/arm-linux-gnueabihf/6/../../../arm-linux-gnueabihf/libgnuradio-osmosdr.so, may conflict with libboost_system.so.1.62.0
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by //usr/lib/arm-linux-gnueabihf/libgnuradio-iqbalance.so.0, may conflict with libboost_system.so.1.62.0
/usr/bin/ld: warning: libboost_program_options.so.1.61.0, needed by //usr/lib/arm-linux-gnueabihf/libuhd.so.003, may conflict with libboost_program_options.so.1.62.0


On Monday, September 2, 2019 at 6:30:20 AM UTC-5, ugo.p...@gmail.com wrote:
Hello,

I have installed gqrx 2.11.5-12 from sources on Raspbian "Buster" without any special problem by using the option "no pulseaudio" (cmake with Portaudio forcing option)
It's currently run very well on my PI3B.

73, Ugo Poddine




-----Original Message-----
From: gq...@googlegroups.com <gq...@googlegroups.com> On Behalf Of Alexandru Csete
Sent: martedì 27 agosto 2019 22:06
To: Gqrx <gq...@googlegroups.com>
Subject: Re: [gqrx] Errors running gqrx on Raspberry Pi 3

On Tue, Aug 27, 2019 at 9:55 PM Davide Barra <davide...@gmail.com> wrote:
>
> Hi Alexandru,
>
> Thank you very much for your quick reply!!
> In the meanwhile I was able to restore my old Raspbian Stretch OS :)
> But I will keep in mind that the Raspbian GQRX now works on Raspbian Buster.

I don't know whether it works, I just know it is available. I didn't have time to try and test.

> I was quite afraid of it because of others posts on this forum, that's why I went with the website version.
> Also, keep in mind that I tried to install the Raspbian GQRX out of desperation and I got the connection refused error.

I think that is because of the Debian/Raspbian is being built using Pulseaudio backend but the Raspbian desktop does not use pulseaudio.
Installing pulseaudio might fix it, but again, I have not tried it so I am just guessing.

Alex

--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gq...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages