Hello,
My system config: Host OS: Windows 10 Guest OS: VirtualBox Ubuntu 20.04.3 LTS UHD version: 3.15.0.0 GNU Radio version: 3.9 SDR Device : RTL-SDR Dongle
I got the below error while executing the make command:
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ cmake -DCMAKE_PREFIX_PATH=/usr ../
. . -- Configuring done -- Generating done -- Build files have been written to: /home/thangz/Desktop/gr-osmosdr/build
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ make
. . /usr/local/include/gnuradio/hier_block2.h:93:35: note: no known conversion for argument 1 from 'gr::fcdproplus::fcdproplus::sptr' {aka 'boost::shared_ptrgr::fcdproplus::fcdproplus'} to 'gr::basic_block_sptr' {aka 'std::shared_ptrgr::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:417: lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2 make: *** [Makefile:141: all] Error 2
What may I do to fix this error? What am I missing here? Please help!
PS: I just need the RTL-SDR component, so I installed the dependency for that alone (see complete log file).
PFA complete log file Best regards Thangaraj
Hi Thangaraj,
On 21/10/2021 15.09, Thangaraj Mukara Dhakshinamoorthy wrote:
Guest OS: VirtualBox Ubuntu 20.04.3 LTS GNU Radio version: 3.9
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_ptrgr::fcdproplus::fcdproplus'} to 'gr::basic_block_sptr' {aka 'std::shared_ptrgr::basic_block'} 93 | void connect(basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port);
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.
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.
Regards, Vasil
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_ptrgr::fcdproplus::fcdproplus'} to 'gr::basic_block_sptr' {aka 'std::shared_ptrgr::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
Hi Thangaraj,
On 27/10/2021 12.38, Thangaraj Mukara Dhakshinamoorthy wrote:
Since I needed a specific version of gnuradio, I built it from source
OK.
I removed the previous installations and built the new gnuradio from source (master branch) as you mentioned.
My recommendation is to install from main-3.9 (or main-3.8) unless you really need something that is only available in the master.
But still the same error shows up.
The error you are getting now is pretty different. AFAIK gr-osmosdr (from mater) still does not supports gnuradio 3.10 (from master)
I also tried installing via sudo apt install gr-osmosdr, but still dind't get it in GRC Menu successfully!
You should not install gr-* packages from the repository as they are built for a different gnuradio version. You need to install them from source. Remove all gnuradio and gr-* packages that you've installed.
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!
After uninstalling gr-fcdproplus you need to delete gr-osmosdr's build directory and start from scratch by running `cmake ..`
Regards, Vasil
Hello Vasil,
Sorry! I was wrong, I installed main-3.9 only!
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ gnuradio-companion --log info <<< Welcome to GNU Radio Companion 3.9.3.0 >>>
Block paths: /usr/local/share/gnuradio/grc/blocks
Loading: "/home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.grc"
I guess the problem would be something to do with the cmake prefix path I have passed:
thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
thangz@thangz-VirtualBox:~/Desktop/rtl-sdr/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
I also used the same prefix for gnuradio installation!
Regards, Thangaraj
-----Ursprüngliche Nachricht----- Von: Vasil Velichkov vvvelichkov@gmail.com Gesendet: Mittwoch, 27. Oktober 2021 12:11 An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.net; osmocom-sdr@lists.osmocom.org Betreff: Re: AW: Make fails while installing gr-osmosdr
Hi Thangaraj,
On 27/10/2021 12.38, Thangaraj Mukara Dhakshinamoorthy wrote:
Since I needed a specific version of gnuradio, I built it from source
OK.
I removed the previous installations and built the new gnuradio from source (master branch) as you mentioned.
My recommendation is to install from main-3.9 (or main-3.8) unless you really need something that is only available in the master.
But still the same error shows up.
The error you are getting now is pretty different. AFAIK gr-osmosdr (from mater) still does not supports gnuradio 3.10 (from master)
I also tried installing via sudo apt install gr-osmosdr, but still dind't get it in GRC Menu successfully!
You should not install gr-* packages from the repository as they are built for a different gnuradio version. You need to install them from source. Remove all gnuradio and gr-* packages that you've installed.
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!
After uninstalling gr-fcdproplus you need to delete gr-osmosdr's build directory and start from scratch by running `cmake ..`
Regards, Vasil
Hi Thangaraj,
On 27/10/2021 13.51, Thangaraj Mukara Dhakshinamoorthy wrote:
Sorry! I was wrong, I installed main-3.9 only!
OK.
I guess the problem would be something to do with the cmake prefix path I have passed:
I doubt that it is related to the prefix. Have you tried deleting gr-osmosdr's build directory and starting from scratch (after remvoing gr-fcdproplus package)? Alternatively you can delete only the CMakeCache file.
What is the exact problem that you have right now? Provide the full cmake and make output.