Page 1 of 1

gr-osmosdr rebuild problem

Posted: Sat Feb 18, 2017 7:17 pm
by mt.
Hi everyone :-)

having big issues with my Sdrplay. Not being a linux guy - Im starting to regret this :-D

Ok, so, Im trying to follow the instructions from https://github.com/krippendorf/gr-osmosdr-fork-sdrplay

I get the error report posted below. Can anyone help me get this RSP1 to work? :-) what is going on with the "make" process?
(fails when reaching sdrplay device)

Best regards
Martin

Error:

[ 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
[ 7%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o
[ 9%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o
[ 12%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/time_spec.cc.o
[ 14%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o
[ 17%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o
[ 19%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_sink_c.cc.o
[ 21%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_f.cc.o
[ 24%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o
[ 26%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_sink_c.cc.o
[ 29%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_source_c.cc.o
[ 31%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/sdrplay/sdrplay_source_c.cc.o
/home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.cc: In member function ‘void sdrplay_source_c::reinit_device()’:
/home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.cc:208:95: error: invalid conversion from ‘int’ to ‘mir_sdr_SetGrModeT’ [-fpermissive]
_dev->lnaEnable, &grMode, 1, &_dev->samplesPerPacket, _dev->reinitReson);
^
In file included from /home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.h:31:0,
from /home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.cc:41:
/usr/local/include/mirsdrapi-rsp.h:290:36: note: initializing argument 9 of ‘mir_sdr_ErrT mir_sdr_Reinit(int*, double, double, mir_sdr_Bw_MHzT, mir_sdr_If_kHzT, mir_sdr_LoModeT, int, int*, mir_sdr_SetGrModeT, int*, mir_sdr_ReasonForReinitT)’
_MIR_SDR_QUALIFIER mir_sdr_ErrT mir_sdr_Reinit(int *gRdB, double fsMHz, double rfMHz, mir_sdr_Bw_MHzT bwType, mir_sdr_If_kH
^
/home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.cc:226:63: error: invalid conversion from ‘int’ to ‘mir_sdr_SetGrModeT’ [-fpermissive]
gcCallback, (void *) this);
^
In file included from /home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.h:31:0,
from /home/test/gr-osmosdr-fork-sdrplay/lib/sdrplay/sdrplay_source_c.cc:41:
/usr/local/include/mirsdrapi-rsp.h:288:36: note: initializing argument 8 of ‘mir_sdr_ErrT mir_sdr_StreamInit(int*, double, double, mir_sdr_Bw_MHzT, mir_sdr_If_kHzT, int, int*, mir_sdr_SetGrModeT, int*, mir_sdr_StreamCallback_t, mir_sdr_GainChangeCallback_t, void*)’
_MIR_SDR_QUALIFIER mir_sdr_ErrT mir_sdr_StreamInit(int *gRdB, double fsMHz, double rfMHz, mir_sdr_Bw_MHzT bwType, mir_sdr_I
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:350: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/sdrplay/sdrplay_source_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/sdrplay/sdrplay_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

Re: gr-osmosdr rebuild problem

Posted: Sun Feb 19, 2017 11:20 am
by mt.
Well, the normal gr-osmosdr will compile and make, wth the nonfree enable, without any trouble, but this gives
no life to my sdrplay. Tried with the "sdrplay" argument in gr-osmosdr source without any luck.

Must admit, starting to regret going away from the cheap RTL dongle :-D

So, everyone talk about the soapy thingy whatever it is. So I got the Soapysdr and Soapysdrplay - now what?
will this get my gr-osmosdr source block to find my rsp1?

started out with a fresh ubuntu installation, and spent 2 days filling it with crap from all kinds of places without
any luck at all.

(only thing that has worked 100%, fast, easy, is windows 10 and Sdrplay uno)

Can anyone explain what soapy is supposed to do? and how to get soapysdr to automatically assign the soapysdrplay driver
(not always assigning itself when using util -probe or -find)



thanks :-)