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: Paul Wicks
Subject: Re: Question about cmake error when installing gr-sigmf
Date: Thu, 18 Jun 2020 22:28:02 -0700

Hi Ellie,

I'm one of the authors of gr-sigmf. You are correct, we haven't had a chance to port gr-sigmf to 3.8 yet, sorry about that.
As for reading sigmf files in 3.8, it depends what you need, if you just need the data portion, you should be able to just use a normal file source with the sigmf-data file and read it that way, you can get the basic metadata of the dataset from the sigmf-meta file.

-Paul Wicks


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

Well, seems you’re right that gr-sigmf hasn’t been converted to gr 3.8 yet. Just finished installing gr 3.8, then attempted to run cmake to build gr-sigmf, and that crashed with an error, saying it was looking for gr 3.7 but found gr 3.8 instead. I do need gr 3.8 for the other modules I’m working with, though, so I’m going to have to find a workaround of some sort. Just curious — has anyone had luck reading sigmf files using a standard file source, or some other method? Open to any suggestions anyone might have about how to read sigmf files in gr 3.8! 

Thanks so much for your time and advice. Have a great night and take care! 

Cheers,
Ellie

On 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

reply via email to

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