Gr-osmosdr compile problems

Thank you for reading this.

I’ve progressed a little since I last wrote and have received my ezcap
USB dongle. Unfortunately, I’m still having problems.

Cmake produces the following, which seems to indicate that all is well:

– ######################################################
– # gr-osmosdr enabled components
– ######################################################
– * IQ File Source
– * Osmocom RTLSDR
– * RTLSDR TCP Client

– ######################################################
– # gr-osmosdr disabled components
– ######################################################
– * sysmocom OsmoSDR
– * FunCube Dongle
– * Ettus UHD

– Building for version: d56e18a1 / 0.0.1git
– Using install prefix: /usr/local
– Configuring done
– Generating done
– Build files have been written to: /usr/local/src/gr-osmosdr/build

However, rtl library errors appear during the compiling stage as
follows:

[root@localhost build]# make
Scanning dependencies of target gnuradio-osmosdr
[ 4%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_source_c_impl.cc.o
[ 8%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_sink_c_impl.cc.o
[ 12%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_ranges.cc.o
[ 16%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_device.cc.o
[ 20%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o
[ 25%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc: In member function
virtual osmosdr::freq_range_t rtl_source_c::get_freq_range(size_t):
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:342:10: error: use of
enum rtlsdr_tuner without previous declaration
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:342:29: error: invalid
type in declaration before = token
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:342:57: error:
rtlsdr_get_tuner_type was not declared in this scope
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:344:19: error:
RTLSDR_TUNER_E4000 was not declared in this scope
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:347:26: error:
RTLSDR_TUNER_FC0012 was not declared in this scope
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:349:26: error:
RTLSDR_TUNER_FC0013 was not declared in this scope
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:351:26: error:
RTLSDR_TUNER_FC2580 was not declared in this scope
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc: In member function
virtual osmosdr::gain_range_t rtl_source_c::get_gain_range(size_t):
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:405:50: error:
rtlsdr_get_tuner_gains was not declared in this scope
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o]
Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2

Can someone tell what I’m missing?


Regards,
Phil

On Sun, Jun 3, 2012 at 6:42 AM, Phil [email protected] wrote:

– ######################################################

[ 4%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
/usr/local/src/gr-osmosdr/lib/rtl/rtl_source_c.cc:347:26: error:
Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2

I tried to build as well yesterday and failed for me too - as I recall
with the same error. I checked out the code again today and it fails
too but with a different error, so the code is changing at the moment.

You can go back to commit b2128bc86442148d87a7fe897a382c836baf8a67
which compiles fine for me, i.e.

git checkout b2128bc

Alex

On 03/06/12 21:41, Alexandru C. wrote:

More hand holding I’m afraid Alex.

Is this the correct git syntax?

[root@localhost src (master)]# git checkout b2128bc
git://git.osmocom.org/gr-osmosdr
error: pathspec ‘b2128bc’ did not match any file(s) known to git.
error: pathspec ‘git:/git.osmocom.org/gr-osmosdr’ did not match any
file(s) known to git.


Regards,
Phil

On Mon, Jun 4, 2012 at 1:24 AM, Phil [email protected] wrote:

More hand holding I’m afraid Alex.

Is this the correct git syntax?

[root@localhost src (master)]# git checkout b2128bc
git://git.osmocom.org/gr-osmosdr
error: pathspec ‘b2128bc’ did not match any file(s) known to git.
error: pathspec ‘git:/git.osmocom.org/gr-osmosdr’ did not match any file(s)
known to git.

First you make a clone “git clone git:/git.osmocom.org/gr-osmosdr” (I
assumed you already had that), then you change into the gr-osmosdr
directory and do “git checkout b2128bc”

Alex

On 04/06/12 15:41, Alexandru C. wrote:

First you make a clone “git clone git:/git.osmocom.org/gr-osmosdr” (I
assumed you already had that), then you change into the gr-osmosdr
directory and do “git checkout b2128bc”

OK Alex, that worked. Now I need to discover why gnuradio compiles with
errors.


Regards,
Phil