problem with compiling gr-osmosdr with latest BladeRF from git
Posted: Sat Oct 27, 2018 6:24 am
Hello,
I have succesfully compiled and installed BladRF with the latest git source and use gnuradio-3.7.13.4 which is also succesfully compiled and installed with all the gnuradio components.
Compiling gr-osmosdr by cmake i get the next sdr components that are available:
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
-- * Python support
-- * Osmocom IQ Imbalance Correction
-- * sysmocom OsmoSDR
-- * FUNcube Dongle
-- * FUNcube Dongle Pro+
-- * IQ File Source & Sink
-- * Osmocom RTLSDR
-- * RTLSDR TCP Client
-- * Ettus USRP Devices
-- * HackRF & rad1o Badge
-- * nuand bladeRF
-- * RFSPACE Receivers
-- * AIRSPY Receiver
-- * Red Pitaya SDR
--
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
-- * Osmocom MiriSDR
-- * SoapySDR support
-- * FreeSRP support
--
-- Building for version: v0.1.4-98-gc653754d / 0.1.5git
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/gr-osmosdr/buSo far It seems oke and nuand bladeRF is supported.[/size]
But compiling gr-osmosdr with make I get the following issues;
[ 74%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o
[ 76%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_c.cc.o
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_source_c.cc: In member function ‘virtual double bladerf_source_c::get_center_freq(size_t)’:
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:250:69: error: cannot convert ‘uint32_t* {aka unsigned int*}’ to ‘bladerf_frequency* {aka long unsigned int*}’ for argument ‘3’ to ‘int bladerf_get_frequency(bladerf*, bladerf_channel, bladerf_frequency*)’
ret = bladerf_get_frequency( _dev.get(), BLADERF_MODULE_RX, &freq );
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:422: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_sink_c.cc: In member function ‘virtual double bladerf_sink_c::get_center_freq(size_t)’:
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_sink_c.cc:350:69: error: cannot convert ‘uint32_t* {aka unsigned int*}’ to ‘bladerf_frequency* {aka long unsigned int*}’ for argument ‘3’ to ‘int bladerf_get_frequency(bladerf*, bladerf_channel, bladerf_frequency*)’
ret = bladerf_get_frequency( _dev.get(), BLADERF_MODULE_TX, &freq );
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:446: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_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
Communication by USB3 is working fine and could load the right image and firmware;
C:\Users\hkopp64>bladeRF-cli -i
bladeRF> i
Board: Nuand bladeRF 2.0 (bladerf2)
Serial #: c344cd346616498ba7a0fd21e2e80e61
VCTCXO DAC calibration: 0x1d9f
FPGA size: 301 KLE
FPGA loaded: yes
Flash size: 128 Mbit (assumed)
USB bus: 2
USB address: 2
USB speed: SuperSpeed
Backend: libusb
Instance: 0
bladeRF> v
bladeRF-cli version: 1.6.1-git-dc83ca47-dirty
libbladeRF version: 2.0.2-git-dc83ca47-dirty
Firmware version: 2.2.0-git-3d38fac2
FPGA version: 0.8.0
Can somebody help me out with gr-osmsdr issue so that I can solve the problem
An older version of BladeRF with the same gr-osmosdr was succesfully compiled and used by fully working of gqrx
Before I used the Airspy-2 and now I want going to use the BladeRF micro A9
Kind regards,
Huib
I have succesfully compiled and installed BladRF with the latest git source and use gnuradio-3.7.13.4 which is also succesfully compiled and installed with all the gnuradio components.
Compiling gr-osmosdr by cmake i get the next sdr components that are available:
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
-- * Python support
-- * Osmocom IQ Imbalance Correction
-- * sysmocom OsmoSDR
-- * FUNcube Dongle
-- * FUNcube Dongle Pro+
-- * IQ File Source & Sink
-- * Osmocom RTLSDR
-- * RTLSDR TCP Client
-- * Ettus USRP Devices
-- * HackRF & rad1o Badge
-- * nuand bladeRF
-- * RFSPACE Receivers
-- * AIRSPY Receiver
-- * Red Pitaya SDR
--
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
-- * Osmocom MiriSDR
-- * SoapySDR support
-- * FreeSRP support
--
-- Building for version: v0.1.4-98-gc653754d / 0.1.5git
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/gr-osmosdr/buSo far It seems oke and nuand bladeRF is supported.[/size]
But compiling gr-osmosdr with make I get the following issues;
[ 74%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o
[ 76%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_c.cc.o
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_source_c.cc: In member function ‘virtual double bladerf_source_c::get_center_freq(size_t)’:
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:250:69: error: cannot convert ‘uint32_t* {aka unsigned int*}’ to ‘bladerf_frequency* {aka long unsigned int*}’ for argument ‘3’ to ‘int bladerf_get_frequency(bladerf*, bladerf_channel, bladerf_frequency*)’
ret = bladerf_get_frequency( _dev.get(), BLADERF_MODULE_RX, &freq );
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:422: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_sink_c.cc: In member function ‘virtual double bladerf_sink_c::get_center_freq(size_t)’:
/usr/local/src/gr-osmosdr/lib/bladerf/bladerf_sink_c.cc:350:69: error: cannot convert ‘uint32_t* {aka unsigned int*}’ to ‘bladerf_frequency* {aka long unsigned int*}’ for argument ‘3’ to ‘int bladerf_get_frequency(bladerf*, bladerf_channel, bladerf_frequency*)’
ret = bladerf_get_frequency( _dev.get(), BLADERF_MODULE_TX, &freq );
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:446: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_c.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_sink_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
Communication by USB3 is working fine and could load the right image and firmware;
C:\Users\hkopp64>bladeRF-cli -i
bladeRF> i
Board: Nuand bladeRF 2.0 (bladerf2)
Serial #: c344cd346616498ba7a0fd21e2e80e61
VCTCXO DAC calibration: 0x1d9f
FPGA size: 301 KLE
FPGA loaded: yes
Flash size: 128 Mbit (assumed)
USB bus: 2
USB address: 2
USB speed: SuperSpeed
Backend: libusb
Instance: 0
bladeRF> v
bladeRF-cli version: 1.6.1-git-dc83ca47-dirty
libbladeRF version: 2.0.2-git-dc83ca47-dirty
Firmware version: 2.2.0-git-3d38fac2
FPGA version: 0.8.0
Can somebody help me out with gr-osmsdr issue so that I can solve the problem
An older version of BladeRF with the same gr-osmosdr was succesfully compiled and used by fully working of gqrx
Before I used the Airspy-2 and now I want going to use the BladeRF micro A9
Kind regards,
Huib