|
From: | Tom McDermott |
Subject: | Re: [Discuss-gnuradio] gr-osmocom make failing |
Date: | Thu, 21 Sep 2017 17:34:20 -0700 |
It's due to a mismatch between gr-osmosdr and the Ubuntu 16.04 rtlsdr library. There are a few different solutions to this problem.
1) If you're not using RTL-SDR dongles, then just purge the rtlsdr packages (librtlsdr-dev and librtlsdr0). Then rebuild gr-osmosdr and Osmocom RTLSDR should end up in the disabled components during the cmake phase.
2) Checkout a previous version of gr-osmosdr from before this change. git checkout cf954948 should work.
3) The correct solution is to build the rtl-sdr library from source and make sure gr-osmosdr links to that.
https://github.com/osmocom/rtl-sdr
Ron
On 09/21/2017 11:40 AM, Tom McDermott wrote:
Using Ubuntu 16.04, Have guradio 3.7.12git-231 master branchgnuradio runs fine.
The old version of Osmocom no longer runs (after some years), soI started rebuild of gr-osmocom from scratch by cloning from git.osmocom.org/gr-osmosdr
my current appliation is to get rtl-sdr running using Osmocom.
Are there packages I must install to allow gr-osmocom to compile?
Running CMAKE succeeds, with some missing packages:
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
-- * Python support
-- * Osmocom IQ Imbalance Correction
-- * FUNcube Dongle
-- * IQ File Source & Sink
-- * Osmocom RTLSDR
-- * RTLSDR TCP Client
-- * Ettus USRP Devices
-- * HackRF & rad1o Badge
-- * nuand bladeRF
-- * RFSPACE Receivers
-- * Red Pitaya SDR
--
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
-- * sysmocom OsmoSDR
-- * FUNcube Dongle Pro+
-- * Osmocom MiriSDR
-- * AIRSPY Receiver
-- * SoapySDR support
-- * FreeSRP support
--
-- Building for version: v0.1.4-98-gc653754d / 0.1.5git
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tom/gr-osmosdr/build
MAKE then fails:
address@hidden:~/gr-osmosdr/build$ make
Scanning dependencies of target gnuradio-osmosdr
[ 2%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
[ 4%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o
[ 6%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o
[ 8%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o
[ 11%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/time_spec.cc.o
[ 13%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c. cc.o
[ 15%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_source_ c.cc.o
[ 17%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_sink_c. cc.o
[ 20%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c. cc.o
/home/tom/gr-osmosdr/lib/rtl/rtl_source_c.cc: In constructor ‘rtl_source_c::rtl_source_c( const string&)’:
/home/tom/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:254: 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
address@hidden:~/gr-osmosdr/build$
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/ listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |