discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about cmake error when installing gr-sigmf


From: Ellie White
Subject: Re: Question about cmake error when installing gr-sigmf
Date: Thu, 18 Jun 2020 19:42:13 -0400

RE: the gr-qtgui question -- never mind. Just realized I forgot to install the dependencies, that was silly (https://wiki.gnuradio.org/index.php/UbuntuInstall). Will let you know if gr-sigmf works once I get gnuradio 3.8 installed (given I don’t run into any more snags). Thanks! 

On Thu, Jun 18, 2020 at 6:49 PM Ellie White <elliewhite1420@gmail.com> wrote:
Hi Marcus,

Maybe that's the case -- I did notice some comments on the gr-sigmf github page that seemed to indicate maybe it has been (at least partly) upgraded for GNU Radio 3.8. But maybe not for 3.9 -- so I decided to try installing GNU Radio 3.8 instead of 3.9 to test it out. 

I followed the instructions here: https://wiki.gnuradio.org/index.php/InstallingGR#For_GNU_Radio_3.8_or_Earlier When I run the cmake step, though, one thing strikes me as odd -- although it completes without error, it appears that gr-qtgui is disabled. Just wondering if there is something I need to install so that this will be enabled? 

Thanks so much for your help Marcus! Have a nice evening.

Cheers,
Ellie

On Thu, Jun 18, 2020 at 11:53 AM Marcus D Leech <patchvonbraun@gmail.com> wrote:
It may be the case that gr-sigmf hasn’t been converted to gr-3.8 yet. 

The gr-sigmf folks are on this list as far as I know. 

Sent from my iPhone

On Jun 18, 2020, at 11:39 AM, Ellie White <elliewhite1420@gmail.com> wrote:


Hi Marcus,

Thanks so much for the advice, I really appreciate it! So when I tried that, it did work, and I was able to run a flowgraph successfully in GNU Radio 3.7, so that's good.

In the process of attempting to install some more packages (specifically gr-ata), I found that I needed to upgrade to GNU Radio version 3.8 or 3.9. So I followed these instructions: https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation to install GNU Radio 3.9.0. Then, I deleted the gr-sigmf directory I had cloned and built from, then attempted to re-install gr-sigmf (again using these instructions: https://github.com/skysafe/gr-sigmf). For some reason I now can get through running cmake, but things get stuck when I try to run make; here's the output:

[  2%] Building CXX object lib/CMakeFiles/gnuradio-sigmf.dir/sink_impl.cc.o
/home/ewhite/src/gr-sigmf/lib/sink_impl.cc: In static member function ‘static gr::sigmf::sink::sptr gr::sigmf::sink::make(std::__cxx11::string, std::__cxx11::string, gr::sigmf::sigmf_time_mode, bool)’:
/home/ewhite/src/gr-sigmf/lib/sink_impl.cc:81:40: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::sigmf::sink_impl]()’ from ‘std::shared_ptr<gr::sigmf::sink_impl>’ to ‘gr::sigmf::sink::sptr {aka boost::shared_ptr<gr::sigmf::sink>}’
       return gnuradio::get_initial_sptr(new sink_impl(type, filename, time_mode, append));
              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gnuradio/basic_block.h:16:0,
                 from /usr/include/gnuradio/block.h:15,
                 from /usr/include/gnuradio/sync_block.h:15,
                 from /home/ewhite/src/gr-sigmf/include/sigmf/sink.h:24,
                 from /home/ewhite/src/gr-sigmf/lib/sink_impl.h:33,
                 from /home/ewhite/src/gr-sigmf/lib/sink_impl.cc:45:
/home/ewhite/src/gr-sigmf/lib/sink_impl.cc: In member function ‘void gr::sigmf::sink_impl::on_command_message(pmt::pmt_t)’:
/home/ewhite/src/gr-sigmf/lib/sink_impl.cc:306:55: error: invalid operands of types ‘const char [22]’ and ‘uint64_t {aka long unsigned int}’ to binary ‘operator<<’
         GR_LOG_INFO(d_logger, "setting capture meta(" << index_int << "," << key << ", " << val << ")");
                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
lib/CMakeFiles/gnuradio-sigmf.dir/build.make:110: recipe for target 'lib/CMakeFiles/gnuradio-sigmf.dir/sink_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-sigmf.dir/sink_impl.cc.o] Error 1
CMakeFiles/Makefile2:174: recipe for target 'lib/CMakeFiles/gnuradio-sigmf.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-sigmf.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Do you have any idea what might be going on here, or what I should do next? Thanks Marcus! Have a good morning.

Cheers,
Ellie

On Thu, Jun 18, 2020 at 10:46 AM Marcus D. Leech <patchvonbraun@gmail.com> wrote:
On 06/18/2020 09:45 AM, Ellie White wrote:
Hi again, all --

Ok, so thanks to Marcus I was able to get through installing gr-sigmf. However, I just attempted to make a flow graph using a sigMF source and unfortunately have hit another roadblock; when I attempt to run the flowgraph (attached; it is not well-developed yet but I was just testing some things), I get the following error:

Traceback (most recent call last):
  File "/home/ewhite/research/ewhite-bl-seti/top_block.py", line 29, in <module>
    import gr_sigmf
  File "/usr/local/lib/python2.7/dist-packages/gr_sigmf/__init__.py", line 63, in <module>
    _prepare_sigmf_swig()
  File "/usr/local/lib/python2.7/dist-packages/gr_sigmf/__init__.py", line 43, in _prepare_sigmf_swig
    import gr_sigmf_swig
  File "/usr/local/lib/python2.7/dist-packages/gr_sigmf/gr_sigmf_swig.py", line 17, in <module>
    _gr_sigmf_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/gr_sigmf/gr_sigmf_swig.py", line 16, in swig_import_helper
    return importlib.import_module('_gr_sigmf_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _gr_sigmf_swig

Is there some additional package or module I need to install here, or did something go wrong when I installed the blocks? If anyone has any suggestions on how to fix this I'd be really grateful.

Have a good day and take care!

Thanks,
Ellie


After doing the install, try:

sudo ldconfig

And see if that fixes things.




--
Ellie White
Co-Director, Open Source Radio Telescopes
Student at Marshall University
304-654-9381
www.catseyeenterprises.net


--
Ellie White
Co-Director, Open Source Radio Telescopes
Student at Marshall University
304-654-9381
www.catseyeenterprises.net


--
Ellie White
Co-Director, Open Source Radio Telescopes
Student at Marshall University
304-654-9381
www.catseyeenterprises.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]