rtl-sdr and gr-osmosdr

Jonathan Guthrie jguthrie at brokersys.com
Sun Jan 13 00:08:33 UTC 2013


If you look in the place where you built gr-osmosdr, you will find a 
file called install_manifest.txt which contains where it put all the 
files.  The rtlsdr_source_c.xml and osmosdr_source_c.xml (which are 
files that describe the sources, both of which produce streams of 
complex numbers, which is what the naming convention means) are how the 
gnuradio companion knows how to use those sources.

Do a "sudo make uninstall" where you built gr-osmosdr, and then start 
over with gr-osmosdr.  But this time, instead of just running "cmake" 
with no options, use the command:

    cmake .. -DCMAKE_INSTALL_PREFIX=/usr

You "define" (that's what "-D" means) the value "CMAKE_INSTALL_PREFIX" 
to be /usr.  If you don't define it to be something, it will use the 
default value of "/usr/local"

I have a Web page with partial instructions (it's not intended to be a 
Linux introduction, although I will do my best to answer specific 
questions if you have any) and some other stuff on it: 

Oh, and while I'm thinking about it, I really detest mailing lists whose 
default action on a reply is to write directly to the person to whom you 
are responding rather than to the list.  To me, it is optimizing the 
atypical case and it makes far more sense to optimize for what everyone 
nearly always wants to do.  That is, it may be technically correct, but 
it is definitely the wrong thing to do.  However, I know I've lost that 
battle, so I'll not mention it again.

On 01/12/2013 03:24 PM, tokens at myranch.com wrote:
> Hi Jonathan,
> Please excuse my ignorant comments and questions but I am very much a 
> Linux novice.
> I see that there are directories for gr-osmosdr, rtl-sdr, and uhd 
> under home directory. Under usr/local/share/gnuradio/grc/blocks/ I 
> find osmosdr_source_c.xml and rtlsdr_source_c.xml. Directories for 
> gnuradio are under usr/etc and usr/include. I guess this is what you 
> mean by some bits of gr-osmosdr and rtlsdr end up in usr/local. How do 
> I force cmake to install the software into /usr.
> Thank you very much.
> Regards,
> Al
> -----Original Message----- From: Jonathan Guthrie
> Sent: Saturday, January 12, 2013 2:18 PM
> To: tokens at myranch.com
> Subject: Re: rtl-sdr and gr-osmosdr
> On 01/12/2013 09:03 AM, tokens at myranch.com wrote:
>> I have installed these using the procedures shown in the wiki. I 
>> didn’t see any errors during the installation. The packages are on 
>> the computer but they are not listed amongst the sources on GNU Radio 
>> Companion.
>> If I type in the terminal rtl_test –t I get:
>> Found 1 device(s):
>>  0: ezcap USB 2.0 DVB-T/DAB/FM dongle
>> Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
>> usb_open error -3
>> Failed to open rtlsdr device #0
>> Any suggestions?
> I installed GNURadio as packaged by my distribution, and I did the
> "cmake; make; sudo make install" that I found, and I got the symptoms
> you described.  The problem I had is that packaged software normally
> gets installed into /usr and the "cmake, etc" procedure installs it's
> software into /usr/local.  That meant that grc was looking in the wrong
> place to find the gr-osmosdr bits.
> Telling cmake to install the software into /usr fixed my problem.  Could
> it possibly fix yours?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20130112/024423d6/attachment.html>

More information about the osmocom-sdr mailing list