Installation Error - gnuradio-osmosdr

825 views
Skip to first unread message

d...@fishphotography.net

unread,
Aug 8, 2017, 10:23:05 AM8/8/17
to gr-gsm
Hi,

I'm trying to install onto Ubuntu 16.04 using pybombs and am getting the following error:

[  2%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
/home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc: In constructor ‘rtl_source_c::rtl_source_c(const string&)’:
/home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:224:43: error: ‘rtlsdr_set_bias_tee’ was not declared in this scope
   ret = rtlsdr_set_bias_tee(_dev, bias_tee);
                                           ^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:278: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
PyBOMBS.Packager.source - ERROR - Build failed. See output above for error messages.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package gr-osmosdr:
Build failed.
PyBOMBS.install_manager - ERROR - Error installing package gr-osmosdr. Aborting.

uname -a:

Linux ********** 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I'd be really grateful if someone could help me please

Thanks!

Cinaed Simson

unread,
Aug 8, 2017, 4:09:11 PM8/8/17
to gr-...@googlegroups.com
On 08/08/2017 07:23 AM, d...@fishphotography.net wrote:
> Hi,
>
> I'm trying to install onto Ubuntu 16.04 using pybombs and am getting the
> following error:
>
> [ 2%] Building CXX object
> lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
> /home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc: In constructor
> ‘rtl_source_c::rtl_source_c(const string&)’:
> /home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:224:43: error:
> ‘rtlsdr_set_bias_tee’ was not declared in this scope
> ret = rtlsdr_set_bias_tee(_dev, bias_tee);

You're trying to use the wrong fork of rtl-sdr. Uninstall it.

To compile gr-osmosdr use

https://git.osmocom.org/rtl-sdr

or use the Ubuntu's version

apt-get install rtl-sdr librtlsdr-dev

-- Cinaed


> ^
> lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:278: recipe for target
> 'lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o' failed
> make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o]
> Error 1
> CMakeFiles/Makefile2:135: recipe for target
> 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed
> make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2
> PyBOMBS.Packager.source - ERROR - Build failed. See output above for
> error messages.
> PyBOMBS.Packager.source - ERROR - Problem occurred while building
> package gr-osmosdr:
> Build failed.
> PyBOMBS.install_manager - ERROR - Error installing package gr-osmosdr.
> Aborting.
>
> *uname -a:
>
> *Linux ********** 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37
> UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>
> I'd be really grateful if someone could help me please
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gr-gsm+un...@googlegroups.com
> <mailto:gr-gsm+un...@googlegroups.com>.
> To post to this group, send email to gr-...@googlegroups.com
> <mailto:gr-...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gr-gsm/a0748656-c7a3-4a80-a103-05485094d224%40googlegroups.com
> <https://groups.google.com/d/msgid/gr-gsm/a0748656-c7a3-4a80-a103-05485094d224%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

dan

unread,
Aug 8, 2017, 4:14:59 PM8/8/17
to gr-gsm
Hi Cinead,

Thanks for your reply.

I've tried using the ubuntu version and am still getting this error.

Can you let me know how to uninstall it and should I use the most recent version on the link that you've given?

Thanks,

Dan

Cinaed Simson

unread,
Aug 8, 2017, 5:03:16 PM8/8/17
to gr-...@googlegroups.com
On 08/08/2017 01:14 PM, dan wrote:
> Hi Cinead,
>
> Thanks for your reply.
>
> I've tried using the ubuntu version and am still getting this error.
>
> Can you let me know how to uninstall it and should I use the most recent
> version on the link that you've given?

Use version 0.5.3 - which should the same as

apt list --installed | grep librtlsdr-dev

and

apt list --installed | grep rtl-sdr


How did you install it? Where was it installed?

Try checking

/etc/ld.so.conf.d

but if you installed it in /usr/local then you're going to find the
libraries and the include files and remove them.

Then run

ldconfig

-- Cinaed

>
> Thanks,
>
> Dan
>
> On Tuesday, 8 August 2017 21:09:11 UTC+1, deanic wrote:
>
> On 08/08/2017 07:23 AM, d...@fishphotography.net wrote:
> > Hi,
> >
> > I'm trying to install onto Ubuntu 16.04 using pybombs and am
> getting the
> > following error:
> >
> > [ 2%] Building CXX object
> > lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
> > /home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc: In constructor
> > ‘rtl_source_c::rtl_source_c(const string&)’:
> > /home/pfsense/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:224:43: error:
> > ‘rtlsdr_set_bias_tee’ was not declared in this scope
> > ret = rtlsdr_set_bias_tee(_dev, bias_tee);
>
> You're trying to use the wrong fork of rtl-sdr. Uninstall it.
>
> To compile gr-osmosdr use
>
> https://git.osmocom.org/rtl-sdr <https://git.osmocom.org/rtl-sdr>
> <https://groups.google.com/d/msgid/gr-gsm/a0748656-c7a3-4a80-a103-05485094d224%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gr-gsm+un...@googlegroups.com
> <mailto:gr-gsm+un...@googlegroups.com>.
> To post to this group, send email to gr-...@googlegroups.com
> <mailto:gr-...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gr-gsm/7516cef1-9ffc-4030-bc33-2cf375fe2414%40googlegroups.com
> <https://groups.google.com/d/msgid/gr-gsm/7516cef1-9ffc-4030-bc33-2cf375fe2414%40googlegroups.com?utm_medium=email&utm_source=footer>.

dan

unread,
Aug 9, 2017, 4:40:59 AM8/9/17
to gr-gsm
Hi Cinead,

I've now installed the rtl-sdr from the link that you've given, I've then run sudo -H pybombs install gr-gsm and it appears that it tries to install a different version of rtl-sdr - do you have any ideas?

Thanks again for your help

Dan

Cinaed Simson

unread,
Aug 9, 2017, 6:01:49 PM8/9/17
to gr-...@googlegroups.com
On 08/09/2017 01:40 AM, dan wrote:
> Hi Cinead,
>
> I've now installed the rtl-sdr from the link that you've given, I've
> then run sudo -H pybombs install gr-gsm and it appears that it tries to
> install a different version of rtl-sdr - do you have any ideas?
>
> Thanks again for your help

I have no idea what you did.

You need more than rtl-sdr - you need the libaries and the include files
as per a previous email.

Remove them all and let pybombs install it.

Use

apt-get purge rtl-sdr librtlsdr-dev

I've never used pybombs.

If you have any questions regarding pybombs you have to ask on the
gnuradio mailing list.

-- Cinaed
> <https://git.osmocom.org/rtl-sdr> <https://git.osmocom.org/rtl-sdr
> <https://groups.google.com/d/msgid/gr-gsm/7516cef1-9ffc-4030-bc33-2cf375fe2414%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/gr-gsm/7516cef1-9ffc-4030-bc33-2cf375fe2414%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gr-gsm+un...@googlegroups.com
> <mailto:gr-gsm+un...@googlegroups.com>.
> To post to this group, send email to gr-...@googlegroups.com
> <mailto:gr-...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gr-gsm/ee747d98-ae47-45c5-ad15-468ee77ed3fe%40googlegroups.com
> <https://groups.google.com/d/msgid/gr-gsm/ee747d98-ae47-45c5-ad15-468ee77ed3fe%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages