Hi All:
I have gnuradio 3.6 running under FreeBSD 9.2. This is the latest port of gnuradio on that platform.
I would like to build gr-osmosdr so that I can use my Realtek USB dongle under gnuradio-companion.
I followed the procedure at http://sdr.osmocom.org/trac/wiki/GrOsmoSDR:
1) Got the source: git clone git://git.osmocom.org/gr-osmosdr cd gr-osmosdr/
2) Followed the direction for use with gnuradio 3.6: git checkout gr3.6
3) Created the build environment: mkdir build cd build/ cmake ../ 4) However, "make" fails with the following error: make [ 24%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o /home/kevin/gr-osmosdr/lib/rtl/rtl_source_c.cc: In member function 'virtual osmosdr::freq_range_t rtl_source_c::get_freq_range(size_t)': /home/kevin/gr-osmosdr/lib/rtl/rtl_source_c.cc:468: error: 'RTLSDR_TUNER_R828D' was not declared in this scope /usr/local/include/boost/system/error_code.hpp: At global scope: /usr/local/include/boost/system/error_code.hpp:222: warning: 'boost::system::posix_category' defined but not used /usr/local/include/boost/system/error_code.hpp:223: warning: 'boost::system::errno_ecat' defined but not used /usr/local/include/boost/system/error_code.hpp:224: warning: 'boost::system::native_ecat' defined but not used *** [lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o] Error code 1
Stop in /usr/home/kevin/gr-osmosdr/build. *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error code 1
Stop in /usr/home/kevin/gr-osmosdr/build. *** [all] Error code 1
Stop in /usr/home/kevin/gr-osmosdr/build.
I did some research on the error and the missing declaration.
While there is a previous post from another person who experienced this error, I can't follow the proven solution of "upgrade to gnuradio 3.7" as I expect that this would not be trivial, and in fact very complex, under FreeBSD. I have no porting/port conversion experience.
Just thought I'd ask if anyone else has experienced this, and whether there is a known solution.
Thanks,
Kevin
Kevin,
/home/kevin/gr-osmosdr/lib/rtl/rtl_source_c.cc:468: error: 'RTLSDR_TUNER_R828D' was not declared in this scope
Your rtl-sdr installation is out of date.
error, I can't follow the proven solution of "upgrade to gnuradio 3.7" as I expect that this would not be trivial, and in fact very complex, under FreeBSD.
No need to update gnuradio, i keep all branches in sync to master.
Best regards, Dimitri
Hi Dimitri:
Thanks!
I will find a newer rtl-sdr and install it.
Thanks for the quick solution! I'll post back with the results.
Kevin
On Feb 14, 2014, at 11:41 AM, Dimitri Stolnikov horiz0n@gmx.net wrote:
Kevin,
/home/kevin/gr-osmosdr/lib/rtl/rtl_source_c.cc:468: error: 'RTLSDR_TUNER_R828D' was not declared in this scope
Your rtl-sdr installation is out of date.
error, I can't follow the proven solution of "upgrade to gnuradio 3.7" as I expect that this would not be trivial, and in fact very complex, under FreeBSD.
No need to update gnuradio, i keep all branches in sync to master.
Best regards, Dimitri
Hi Dimitri:
I grabbed and built the latest rtl-sdr, and then the gr-osmosdr builds fine! I have the proper sources in gnuradio-companion.
THANKS for the speedy and accurate assistance.
Kevin
On Feb 14, 2014, at 11:57 AM, Kevin McQuiggin mcquiggi@sfu.ca wrote:
Hi Dimitri:
Thanks!
I will find a newer rtl-sdr and install it.
Thanks for the quick solution! I'll post back with the results.
Kevin
On Feb 14, 2014, at 11:41 AM, Dimitri Stolnikov horiz0n@gmx.net wrote:
Kevin,
/home/kevin/gr-osmosdr/lib/rtl/rtl_source_c.cc:468: error: 'RTLSDR_TUNER_R828D' was not declared in this scope
Your rtl-sdr installation is out of date.
error, I can't follow the proven solution of "upgrade to gnuradio 3.7" as I expect that this would not be trivial, and in fact very complex, under FreeBSD.
No need to update gnuradio, i keep all branches in sync to master.
Best regards, Dimitri