Help! Installing GNU Radio on Ubuntu for HackRF

1,101 views
Skip to first unread message

radiohead319

unread,
Mar 17, 2015, 3:32:51 PM3/17/15
to crc-mm...@googlegroups.com
Can anyone help me with this?

I've installed all the mmbtools OK using Jens's packages.  Now I'm following the instructions here to install GNU Radio and get the Hack RF running.  This went perfectly until the last stage (sudo apt-get install gqrx gnuradio gr-osmosdr hackrf) when I got the error below.  I tried commands:-

sudo apt-get dist-upgrade
and
sudo apt-get -f install

but neither command helps.

Here's the error code:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
                   Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
 libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
              Depends: gstreamer1.0-clutter but it is not going to be installed
 libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
                    Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Clarkerz

unread,
Mar 18, 2015, 2:30:13 AM3/18/15
to crc-mm...@googlegroups.com
Funnily enough Glyn, I had the same issue when I tried to install on my New RaspI2 last weekend (before I blew up my HackRF). I got the Mux, Enc and Mod working but couldn't install the hackRF files from Mike Ossmanns repository. I was assuming that it was an issue with the fact I was using arm processor and there wasn't a package built for that. I know they worked on my Ubuntu 14.04 P4 build about a month ago, so whilst waiting for my new HackRF, I might try and re-install on my known working machine.

In the meantime try: sudo apt-get autoclean $$ apt-get clear cache and then sudo apt-get update && sudo apt-get upgrade and then try installing again. If not you could try sudo aptitude install gqrx gnuradio gr-osmosdr hackrf also try installing them separately  sudo aptitude install gqrx then gnuradio etc. You will need to sudo apt-get install aptitude first though.

Actually I just try this solution with ggrx and it worked!! Give me a bell later Glyn, will be in Reading all day  :(

Rashid Mustapha

unread,
Mar 18, 2015, 9:01:48 AM3/18/15
to crc-mm...@googlegroups.com
If that doesn't work, Google suggested:
 
I did test HackRF with GNU Radio, but I don't like using it for anything other than playing around - there is a lot in there that can break. Instead I have been concentrating on
release v24.08.01 (69c4997).
 
I didn't encounter any problems with compiling it. If you look in the project documentation you will find a howto.
 
R.

--
You received this message because you are subscribed to the Google Groups "mmbtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crc-mmbtools...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

radiohead319

unread,
Mar 19, 2015, 4:23:12 AM3/19/15
to crc-mm...@googlegroups.com
No luck with your or Rash's method Andy.

With yours, the cleanup seemed to do something useful.  Then when I tried to install all the packages individually they all moaned except Hackrf which said it was already the latest version.
Entering "hackrf" returns "command not found".  Entering "hackrf_transfer" returns a help screen how to use all its arguments.
So I'm not sure do the other packages even matter?  When I tried following the idiot instructions in the MMB tools manual (upto and including section 5.2.2)after doing all this it failed - generated only one frame - so I guess these packages do matter.

With Rash's Google method, the path, but not the file exists.   The second bit about compiling is way above my head at this stage!

I think I need to work out how to run/test Mux, Mod and Hack individually to see which is causing the problem for certain.  Back to rtfm!

radiohead319

unread,
Mar 19, 2015, 5:21:46 AM3/19/15
to crc-mm...@googlegroups.com
Well I've discovered that those packages that would not install do not matter.  Now got a working (static file) DAB broadcast into a dummy load.  WooHoo!

To help future newbies though, I think I found a couple of bugs in the documentation which were stopping things from working.....

I was using this version of the manual:
rev f7404ae, Wed Feb 4 20:22:50 2015 +0100, Matthias P. Braendl

First apparent error:
Page 13 example mod.ini script line 16 needed enabled=0
...or we  need to supply a filtertaps.txt file or describe how to construct one

Second apparent error
Page 13 example mod.ini script line 24, replace /dev/stdout with /tmp/ofdm.fifo

With these changes (and assuming previous stages to generate 2 channel mux, eti and iq files completed correctly) the example ODR-DABMod script using hackrf_tranfer facility at bottom of the page works :-)

NB- Even with that filtering disabled, the spectrum looks not bad - shoulders about 20dB or more down.  Anyone got a filtertaps.txt I can borrow?!

"Matthias P. Brändli"

unread,
Mar 19, 2015, 6:33:59 AM3/19/15
to crc-mm...@googlegroups.com
Thanks for spotting and reporting the errors in the documentation, I'll
try to fix that soon.

There are two filter taps files in ODR-DabMod/doc/fir-filter

The simplefiltertaps.txt is not really a filter, it has effectively a
single tap at 1. the filtertaps.txt has 45 taps, we're using this most
of the time. This format is very simple, you can have a look at the
files with an editor.

You can generate the file with the generate-filter.py script that
requires GNURadio. The filter parameters are directly set in the python
script and should be easy to change.

Hope this helps!

mpb
> --
> You received this message because you are subscribed to the Google
> Groups "mmbtools" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crc-mmbtools...@googlegroups.com
> <mailto:crc-mmbtools...@googlegroups.com>.

radiohead319

unread,
Mar 19, 2015, 12:32:56 PM3/19/15
to crc-mm...@googlegroups.com, matthias...@mpb.li
Thanks Matthias - that certainly helps!   I'm writing my own notes as I go along so I'll try and include all these tips to help other novices like me.

The path to the file was slightly different on my machine - I guess that might be because mine is a Ubuntu build whereas yours is probably native Debian or something even more scary!

Now I've done the static mux I'm trying to get my head around ZeroMQ and all that stuff so i can do live audio.  Initial feeling is that there is not enough help in this section of the documentation - but I can't confirm that until/unless I get it working.

Latest news for me is that the output stage of my HackRf has gone - o/p power is now at least 20dB lower than it was this morning.  (I tried disabling the filter, that is not causing it). I've been ultra careful with it too.    Written to Hakshop and awaiting their response.  I can still progress for the time being, but not impressed by the build quality.

Clarkerz

unread,
Mar 19, 2015, 12:44:04 PM3/19/15
to crc-mm...@googlegroups.com, matthias...@mpb.li
You and me both Glyn, My first Hack RF now only works in RX Mode and the one that HackShop sent me yesterday was DOA. Have emailed but no response in 24 hours. I'll send you my in files as they work for ZeroMQ/Toolame with arecord. I still can't get the -j option (jackd) option to work yet but will perservere once I get a Hack RF that works. My toolame crashes every 3 or 4 hours like Rash suggested it would. Not managed to get TCP without ZeroMQ working.

radiohead319

unread,
Mar 23, 2015, 11:36:46 AM3/23/15
to crc-mm...@googlegroups.com, matthias...@mpb.li
This is a test reply.  My two recent new posts did not appear - will this reply to an old post...? 
Reply all
Reply to author
Forward
0 new messages