EttusResearch / gr-doa

Direction-of-Arrival (DoA) Demo for GNU Radio (OOT) with the USRP™ X-Series and TwinRX™

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gr-doa compatibility with newer releases

MarcinWachowiak opened this issue · comments

Issue Description

After properly installing uhd drivers and gnu radio, I attempted to get gr-doa package.
I am using Ubuntu 18.04, with updated gmp and installed required dependencies.
There appeared some errors during build because of change in function naming or structure.
Logs from cmake:

-- Build type not specified: defaulting to release.
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   filesystem
--   system
-- Armadillo found
-- Checking for module 'gmp'
--   No package 'gmp' found
-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 
-- 
-- Checking for module SWIG
-- Found SWIG version 3.0.12.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/marcin/gr-doa/build

Logs from make:

Scanning dependencies of target gnuradio-doa
[  4%] Building CXX object lib/CMakeFiles/gnuradio-doa.dir/autocorrelate_impl.cc.o
/home/marcin/gr-doa/lib/autocorrelate_impl.cc: In static member function ‘static gr::doa::autocorrelate::sptr gr::doa::autocorrelate::make(int, int, int, int)’:
/home/marcin/gr-doa/lib/autocorrelate_impl.cc:41:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::doa::autocorrelate_impl]()’ from ‘std::shared_ptr<gr::doa::autocorrelate_impl>’ to ‘gr::doa::autocorrelate::sptr {aka boost::shared_ptr<gr::doa::autocorrelate>}’
       return gnuradio::get_initial_sptr
              ~~~~~~~~~~~~~~~~~~~~~~~~~~
         (new autocorrelate_impl(inputs, snapshot_size, overlap_size, avg_method));
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/CMakeFiles/gnuradio-doa.dir/build.make:62: recipe for target 'lib/CMakeFiles/gnuradio-doa.dir/autocorrelate_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-doa.dir/autocorrelate_impl.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-doa.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-doa.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Is there any fix for this or shall I switch to ubuntu 16.04 where it has been proved working?

I just read that Gr-doa is compatible with 3.7 Gnu radio release.