build/compiling gr-osmosdr airspy error

Dimitri Stolnikov horiz0n at gmx.net
Wed May 27 22:06:07 UTC 2015


Hi Andreas,

your libairspy needs an update.

Best regards,
Dimitri

On Wed, 27 May 2015 10:03:29 +0200, Andreas Ladanyi  
<andreas.ladanyi at gmx.net> wrote:

> Hi,
>
> iam installing gnuradio 3.7.7.1 and gr-osmosdr with pybombs.
>
> I get the following compiling error:
>
> [ 2%] Building CXX object  
> lib/CMakeFiles/gnuradio-osmosdr.dir/airspy/airspy_source_c.cc.o
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.cc: In
> constructor ‘airspy_source_c::airspy_source_c(const string&)’:
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.cc:115:45:  
> error:
> ‘airspy_get_samplerates’ was not declared in this scope
> airspy_get_samplerates(_dev, &num_rates, 0);
> ^
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.cc: In  
> member
> function ‘virtual double airspy_source_c::set_sample_rate(double)’:
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.cc:370:56:  
> error:
> invalid conversion from ‘uint32_t {aka unsigned int}’ to  
> ‘airspy_samplerate_t’ [-fpermissive]
> ret = airspy_set_samplerate( _dev, samp_rate_index );
> ^
> In file included from  
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.h:31:0,
> from  
> /home/odroid/pybombs/src/gr-osmosdr/lib/airspy/airspy_source_c.cc:42:
> /usr/local/include/libairspy/airspy.h:126:27: error: initializing  
> argument 2 of
> ‘int airspy_set_samplerate(airspy_device*, airspy_samplerate_t)’  
> [-fpermissive]
> extern ADDAPI int ADDCALL airspy_set_samplerate(struct airspy_device*  
> device,
> airspy_samplerate_t samplerate);
> ^
> make[2]: ***  
> [lib/CMakeFiles/gnuradio-osmosdr.dir/airspy/airspy_source_c.cc.o]
> Error 1
> make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
> make: *** [all] Error 2
>
> So the gr-osmosdr build/install procedure will not finish.
>
> cheers,
>
> Andy



More information about the osmocom-sdr mailing list