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"cmake .. -DCMAKE_INSTALL_PREFIX=/usr
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@myranch.com
Subject: Re: rtl-sdr and gr-osmosdr
On 01/12/2013 09:03 AM, tokens@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?