Discussion:
[Hackrf-dev] Installing hackrf pacakge - simple question PLEASE !
Jerry
2017-07-17 00:21:02 UTC
Permalink
Cinaed,

This is new ground for me and all I'm looking for is a little friendly
advice. My questions are relevant to this forum because they have to do
with device specific installation instructions. I'm an old (69yo) analog
vacuum tube guy trying to make it in the digital age. I would like to play
with my HackRF instead of spending countless hours just trying to understand
the nuances between OS, different versions of Ubuntu, different versions of
hackrf software, different dependencies, etc which still have left me un
able to communicate with my HackRF yielding -- 'hackrf_open() failed:
HACKRF_ERROR_LIBUSB (-1000)'

I would like to install the hackrf software on to a fresh install of Ubuntu
16.04.2 LTS. I did an update and upgrade afterwards then the only
installation instructions I could find for the 2017 hackrf version was in
current hackrf github repository host README.md.

The file says

##How to build the host software on Linux:

###Prerequisites for Linux (Debian/Ubuntu): sudo apt-get install
build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev

So I ran it and it did its thing without errors.

Next instruction says:
###Build host software on Linux:

mkdir host/build
cd host/build
cmake ..
make
sudo make install
sudo ldconfig

I could not get past the first line, even running it as sudo but Google is
good and said the current version of Ubuntu wants : 'mkdir -p host/build'


OK that works and cd host/build and ran

cmake ..

It could not find the CMakeLists.txt in host or host/build.

I hope you can sympathize with me--- the noobie -- who just bought a HackRF
One wanting to jump into the game and I cannot get through the front door.

Sorry for the mini-digest but I cannot frame my question any more concisely.

Jerry NY2KW

-----Original Message-----
From: HackRF-dev [mailto:hackrf-dev-***@greatscottgadgets.com] On Behalf
Of Cinaed Simson
Sent: Sunday, July 16, 2017 2:31 PM
To: hackrf-***@greatscottgadgets.com
Subject: Re: [Hackrf-dev] 1. Help Installing HackRF on Ubuntu for Linux
Newbie (Jerry)

Hey that is a great way to mask your question - send a digest!

Was your question even in the digest?

In the future, if I want to read a digest, I'm perfectly cable of fetching
it myself.

-- Cinaed
Sent from Yahoo Mail for iPhone <https://yho.com/footer0>
On Sunday, July 16, 2017, 1:29 PM,
Send HackRF-dev mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of HackRF-dev digest..."
1. Help Installing HackRF on Ubuntu for Linux Newbie (Jerry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 15 Jul 2017 14:01:09 -0400
Subject: [Hackrf-dev] Help Installing HackRF on Ubuntu for Linux
Newbie
Content-Type: text/plain; charset="us-ascii"
I have my new HackRF working with GNU radio in Windows 7. I updated
the
firmware and clpd to latest I want to learn to use SDR in a Linux
environment so I installed the Ubuntu package 16.04.2 LTS onto a
dedicated
HP i5 M520 Quad core laptop. I tried to install pip then PyBOMBS to
use to
install GNU radio but there are many slightly different instructions
that I
encountered error messages along the way. I wiped my
drive/partition and
reinstalled Ubuntu 16.04.2 and then used the recommended approach on
https://wiki.gnuradio.org/index.php/InstallingGR
<https://wiki.gnuradio.org/index.php/InstallingGR%20>
$ apt-get install gnuradio
This ran for a while installing and it seems to have installed OK.
I next queried my HackRF with
$ hackrf_info
and got a message to install it with $ apt-get install hackrf, which
I did.
Found HackRF board 0
hackrf_open() failed: HACKRF_ERROR_LIBUSB (-1000)
I checked the FAQ's and ran hackrf_info as root but got same message.
I
also ran it a few times with same result, so it doesn't seem to be a
permission problem.
I read that if the install was with PyBOMBS that udev rules need
updating
but I don't know if the install procedure I followed used pybombs
Any advice appreciated.
Jerry NY2KW
-------------- next part --------------
An HTML attachment was scrubbed...
<https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20170715/
7e3cdb99/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 15 Jul 2017 17:18:24 -0300
Subject: [Hackrf-dev] GRC to Monitor UHF Radio
Content-Type: text/plain; charset="utf-8"
Hi Everyone,
I just started with HackRF One and followed all the tutorials from
GSG site , but I?d like to know if anyone can share (or guide me to)
a .GRC to monitor / scan UHF Radio.
I built a .GRC based on videos and tutorials that I found a few days
ago, but the reception is no clear. I have a BAOFENG 5HP Radio and
when I test the transmission Im not able to capture a clear signal
as the FM Radios.
Thanks for the support and have a great weekend!
-------------- next part --------------
An HTML attachment was scrubbed...
<https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20170715/
89258a70/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
------------------------------
End of HackRF-dev Digest, Vol 58, Issue 9
*****************************************
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Mike Carden
2017-07-17 00:44:43 UTC
Permalink
Post by Jerry
I would like to install the hackrf software on to a fresh install of Ubuntu
16.04.2 LTS. I did an update and upgrade afterwards then the only
installation instructions I could find for the 2017 hackrf version was in
current hackrf github repository host README.md.
The not-very-good instructions that I guess you're reading from
https://github.com/mossmann/hackrf/blob/master/host/README.md are assuming
that you have either git cloned or zip downloaded the hackrf repository
from github.
Post by Jerry
The file says
###Prerequisites for Linux (Debian/Ubuntu): sudo apt-get install
build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev
So I ran it and it did its thing without errors.
mkdir host/build
Yep, mkdir needs a -p if you're making a directory path rather than just a
directory. That's a mistake in the doc.
Post by Jerry
cd host/build
cmake ..
make
sudo make install
sudo ldconfig
I could not get past the first line, even running it as sudo but Google is
good and said the current version of Ubuntu wants : 'mkdir -p host/build'
OK that works and cd host/build and ran
cmake ..
That command tells cmake to look for a CMakeLists.txt file in the directory
above where you ran the command.

So... go and get the hackrf github repo. If you're unfamilair with git,
just click in the web page to download the zip.

Unzip the zip.

cd hackrf/host
ls
You should see the files listed at
https://github.com/mossmann/hackrf/tree/master/host

mkdir build
cd build
cmake ..

And the rest ought to work.
--
MC
Jerry
2017-07-17 01:00:59 UTC
Permalink
Thank you very much. I thought the “prerequisite” command instruction would set all of that up. Now makes sense.



Jerry





From: Mike Carden [mailto:***@gmail.com]
Sent: Sunday, July 16, 2017 8:45 PM
To: Jerry <***@att.net>
Cc: hackrf-***@greatscottgadgets.com
Subject: Re: [Hackrf-dev] Installing hackrf pacakge - simple question PLEASE !







On Mon, Jul 17, 2017 at 10:21 AM, Jerry <***@att.net <mailto:***@att.net> > wrote:


I would like to install the hackrf software on to a fresh install of Ubuntu
16.04.2 LTS. I did an update and upgrade afterwards then the only
installation instructions I could find for the 2017 hackrf version was in
current hackrf github repository host README.md.



The not-very-good instructions that I guess you're reading from https://github.com/mossmann/hackrf/blob/master/host/README.md are assuming that you have either git cloned or zip downloaded the hackrf repository from github.






The file says

##How to build the host software on Linux:

###Prerequisites for Linux (Debian/Ubuntu): sudo apt-get install
build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev

So I ran it and it did its thing without errors.

Next instruction says:
###Build host software on Linux:

mkdir host/build





Yep, mkdir needs a -p if you're making a directory path rather than just a directory. That's a mistake in the doc.





cd host/build
cmake ..
make
sudo make install
sudo ldconfig

I could not get past the first line, even running it as sudo but Google is
good and said the current version of Ubuntu wants : 'mkdir -p host/build'


OK that works and cd host/build and ran

cmake ..





That command tells cmake to look for a CMakeLists.txt file in the directory above where you ran the command.



So... go and get the hackrf github repo If you're unfamilair with git, just click in the web page to download the zip.



Unzip the zip.



cd hackrf/host

ls

You should see the files listed at https://github.com/mossmann/hackrf/tree/master/host



mkdir build

cd build

cmake ..



And the rest ought to work.
--
MC
Anon Lister
2017-07-17 02:15:40 UTC
Permalink
You need to checkout/cd into the hackrf project from git first:

git clone https://github.com/mossmann/hackrf
cd hackrf
mkdir host/build
cd host/build
cmake ..
make
sudo make install
sudo ldconfig



On Jul 16, 2017 8:21 PM, "Jerry" <***@att.net> wrote:

Cinaed,

This is new ground for me and all I'm looking for is a little friendly
advice. My questions are relevant to this forum because they have to do
with device specific installation instructions. I'm an old (69yo) analog
vacuum tube guy trying to make it in the digital age. I would like to play
with my HackRF instead of spending countless hours just trying to understand
the nuances between OS, different versions of Ubuntu, different versions of
hackrf software, different dependencies, etc which still have left me un
able to communicate with my HackRF yielding -- 'hackrf_open() failed:
HACKRF_ERROR_LIBUSB (-1000)'

I would like to install the hackrf software on to a fresh install of Ubuntu
16.04.2 LTS. I did an update and upgrade afterwards then the only
installation instructions I could find for the 2017 hackrf version was in
current hackrf github repository host README.md.

The file says

##How to build the host software on Linux:

###Prerequisites for Linux (Debian/Ubuntu): sudo apt-get install
build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev

So I ran it and it did its thing without errors.

Next instruction says:
###Build host software on Linux:

mkdir host/build
cd host/build
cmake ..
make
sudo make install
sudo ldconfig

I could not get past the first line, even running it as sudo but Google is
good and said the current version of Ubuntu wants : 'mkdir -p host/build'


OK that works and cd host/build and ran

cmake ..

It could not find the CMakeLists.txt in host or host/build.

I hope you can sympathize with me--- the noobie -- who just bought a HackRF
One wanting to jump into the game and I cannot get through the front door.

Sorry for the mini-digest but I cannot frame my question any more concisely.

Jerry NY2KW

-----Original Message-----
From: HackRF-dev [mailto:hackrf-dev-***@greatscottgadgets.com] On Behalf
Of Cinaed Simson
Sent: Sunday, July 16, 2017 2:31 PM
To: hackrf-***@greatscottgadgets.com
Subject: Re: [Hackrf-dev] 1. Help Installing HackRF on Ubuntu for Linux
Newbie (Jerry)

Hey that is a great way to mask your question - send a digest!

Was your question even in the digest?

In the future, if I want to read a digest, I'm perfectly cable of fetching
it myself.

-- Cinaed
Sent from Yahoo Mail for iPhone <https://yho.com/footer0>
On Sunday, July 16, 2017, 1:29 PM,
Send HackRF-dev mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of HackRF-dev digest..."
1. Help Installing HackRF on Ubuntu for Linux Newbie (Jerry)
----------------------------------------------------------------------
Message: 1
Date: Sat, 15 Jul 2017 14:01:09 -0400
Subject: [Hackrf-dev] Help Installing HackRF on Ubuntu for Linux
Newbie
Content-Type: text/plain; charset="us-ascii"
I have my new HackRF working with GNU radio in Windows 7. I updated
the
firmware and clpd to latest I want to learn to use SDR in a Linux
environment so I installed the Ubuntu package 16.04.2 LTS onto a
dedicated
HP i5 M520 Quad core laptop. I tried to install pip then PyBOMBS to
use to
install GNU radio but there are many slightly different instructions
that I
encountered error messages along the way. I wiped my
drive/partition and
reinstalled Ubuntu 16.04.2 and then used the recommended approach on
https://wiki.gnuradio.org/index.php/InstallingGR
<https://wiki.gnuradio.org/index.php/InstallingGR%20>
$ apt-get install gnuradio
This ran for a while installing and it seems to have installed OK.
I next queried my HackRF with
$ hackrf_info
and got a message to install it with $ apt-get install hackrf, which
I did.
Found HackRF board 0
hackrf_open() failed: HACKRF_ERROR_LIBUSB (-1000)
I checked the FAQ's and ran hackrf_info as root but got same message.
I
also ran it a few times with same result, so it doesn't seem to be a
permission problem.
I read that if the install was with PyBOMBS that udev rules need
updating
but I don't know if the install procedure I followed used pybombs
Any advice appreciated.
Jerry NY2KW
-------------- next part --------------
An HTML attachment was scrubbed...
<https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20170715/
7e3cdb99/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 15 Jul 2017 17:18:24 -0300
Subject: [Hackrf-dev] GRC to Monitor UHF Radio
Content-Type: text/plain; charset="utf-8"
Hi Everyone,
I just started with HackRF One and followed all the tutorials from
GSG site , but I?d like to know if anyone can share (or guide me to)
a .GRC to monitor / scan UHF Radio.
I built a .GRC based on videos and tutorials that I found a few days
ago, but the reception is no clear. I have a BAOFENG 5HP Radio and
when I test the transmission Im not able to capture a clear signal
as the FM Radios.
Thanks for the support and have a great weekend!
-------------- next part --------------
An HTML attachment was scrubbed...
<https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20170715/
89258a70/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
------------------------------
End of HackRF-dev Digest, Vol 58, Issue 9
*****************************************
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Loading...