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 <patchvonbr...@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