Hi Vasil,

1. How did you install gnuradio - from source or from the ppa repository? And 
how did you install gr-fcdproplus?
        > /usr/local/include/gnuradio/hier_block2.h:93:35: note:   no known 
conversion for argument 1 from 'gr::fcdproplus::fcdproplus::sptr' {aka      
'boost::shared_ptr<gr::fcdproplus::fcdproplus>'} to 'gr::basic_block_sptr' {aka 
'std::shared_ptr<gr::basic_block>'}
        >    93 |     void connect(basic_block_sptr src, int src_port, 
basic_block_sptr dst, int dst_port);

        Since I needed a specific version of gnuradio, I built it from source 
and I didn't remember installing gr-fcdproplus seperately, it was all packaged 
together I guess! But anyhow it was found  to be installed in my system.

2. One possible reason is two incompatible gnuradio versions installed on your 
system in different locations - `/usr/` and `/usr/local/`. Make sure to remove 
all other gnuradio versions and that there is no `/usr/include/gnuradio` 
directory. Then delete the build directory and start from scratch.

        I removed the previous installations and built the new gnuradio from 
source (master branch) as you mentioned. But still the same error shows up.
        I also tried installing via sudo apt install gr-osmosdr, but still 
dind't get it in GRC Menu successfully!

3. Another possible reason is the version of gr-fcdproplus that you have 
installed is not compatible with your gnuradio version.
         > I just need the RTL-SDR component

        You can try removing gr-fcdproplus as it is not needed for RTL-SDR 
devices.
        Seems like it is needed, when I remove it throws error earlier during 
any OOT module's make installation!

Is there any simple way where I can get both RTL-SDR and USRP blocks in 
GNUradio? Any advice would be much appreciated!

PFA logfile

Regards,
Thangaraj
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ make
Scanning dependencies of target gnuradio-osmosdr
[  2%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
[  5%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o
[  7%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o
[ 10%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o
[ 12%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/time_spec.cc.o
[ 15%] Building CXX object 
lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o
/home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.cc: In constructor 
‘fcd_source_c::fcd_source_c(const string&)’:
/home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.cc:147:36: error: no 
matching function for call to 
‘fcd_source_c::connect(gr::fcdproplus::fcd::sptr&, int, 
gr::hier_block2::opaque_self, int)’
  147 |     connect( _src_v1, 0, self(), 0 );
      |                                    ^
In file included from /home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.h:23,
                 from 
/home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.cc:29:
/usr/local/include/gnuradio/hier_block2.h:83:10: note: candidate: ‘void 
gr::hier_block2::connect(gr::basic_block_sptr)’
   83 |     void connect(basic_block_sptr block);
      |          ^~~~~~~
/usr/local/include/gnuradio/hier_block2.h:83:10: note:   candidate expects 1 
argument, 4 provided
/usr/local/include/gnuradio/hier_block2.h:93:10: note: candidate: ‘void 
gr::hier_block2::connect(gr::basic_block_sptr, int, gr::basic_block_sptr, 
int)’
   93 |     void connect(basic_block_sptr src, int src_port, basic_block_sptr 
dst, int dst_port);
      |          ^~~~~~~
/usr/local/include/gnuradio/hier_block2.h:93:35: note:   no known conversion 
for argument 1 from ‘gr::fcdproplus::fcd::sptr’ {aka 
‘boost::shared_ptr<gr::fcdproplus::fcd>’} to ‘gr::basic_block_sptr’ 
{aka ‘std::shared_ptr<gr::basic_block>’}
   93 |     void connect(basic_block_sptr src, int src_port, basic_block_sptr 
dst, int dst_port);
      |                  ~~~~~~~~~~~~~~~~~^~~
/home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.cc:156:36: error: no 
matching function for call to 
‘fcd_source_c::connect(gr::fcdproplus::fcdproplus::sptr&, int, 
gr::hier_block2::opaque_self, int)’
  156 |     connect( _src_v2, 0, self(), 0 );
      |                                    ^
In file included from /home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.h:23,
                 from 
/home/thangz/Desktop/gr-osmosdr/lib/fcd/fcd_source_c.cc:29:
/usr/local/include/gnuradio/hier_block2.h:83:10: note: candidate: ‘void 
gr::hier_block2::connect(gr::basic_block_sptr)’
   83 |     void connect(basic_block_sptr block);
      |          ^~~~~~~
/usr/local/include/gnuradio/hier_block2.h:83:10: note:   candidate expects 1 
argument, 4 provided
/usr/local/include/gnuradio/hier_block2.h:93:10: note: candidate: ‘void 
gr::hier_block2::connect(gr::basic_block_sptr, int, gr::basic_block_sptr, 
int)’
   93 |     void connect(basic_block_sptr src, int src_port, basic_block_sptr 
dst, int dst_port);
      |          ^~~~~~~
/usr/local/include/gnuradio/hier_block2.h:93:35: note:   no known conversion 
for argument 1 from ‘gr::fcdproplus::fcdproplus::sptr’ {aka 
‘boost::shared_ptr<gr::fcdproplus::fcdproplus>’} to 
‘gr::basic_block_sptr’ {aka ‘std::shared_ptr<gr::basic_block>’}
   93 |     void connect(basic_block_sptr src, int src_port, basic_block_sptr 
dst, int dst_port);
      |                  ~~~~~~~~~~~~~~~~~^~~
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:128: 
lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:438: 
lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ cd
thangz@thangz-VirtualBox:~$ sudo apt install gr-osmosdr
[sudo] password for thangz: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gr-osmosdr is already the newest version (0.2.0-2).
gr-osmosdr set to manually installed.
The following packages were automatically installed and are no longer required:
  libglfw3 libgnuradio-fft3.8.1 libgnuradio-fosphor3.8.0 liblimesuite20.01-1
  limesuite-udev python3-networkx python3-pyqt5.qtopengl python3-pyqtgraph
  rtl-sdr soapyosmo-common0.7 soapysdr0.7-module-lms7
  soapysdr0.7-module-mirisdr soapysdr0.7-module-osmosdr
  soapysdr0.7-module-rfspace
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
thangz@thangz-VirtualBox:~/Desktop$ sudo apt-get install gr-fcdproplus
[sudo] password for thangz: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gr-fcdproplus is already the newest version (3.8~20190817-3build3).
The following packages were automatically installed and are no longer required:
  libglfw3 libgnuradio-fft3.8.1 libgnuradio-fosphor3.8.0 liblimesuite20.01-1
  limesuite-udev python3-networkx python3-pyqt5.qtopengl python3-pyqtgraph
  rtl-sdr soapyosmo-common0.7 soapysdr0.7-module-lms7
  soapysdr0.7-module-mirisdr soapysdr0.7-module-osmosdr
  soapysdr0.7-module-rfspace
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
thangz@thangz-VirtualBox:~$ 

Reply via email to