GithubHelp home page GithubHelp logo

cbrunsch / binviz Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 2.0 133 KB

This is a GNU Radio Companion out-of-tree module for visualization of char data types

CMake 15.61% Python 76.70% C 0.18% C++ 7.51%

binviz's People

Contributors

cbrunsch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

djgrasss ohleck

binviz's Issues

Gnuradio 3.8 & ld error

I tried to adapt to Gnuradio 3.8 (CMakeLists.txt) but got an (unrelated?) ld error:

[ 80%] Linking CXX executable test-binviz
/usr/bin/ld: CMakeFiles/test-binviz.dir/qa_vizsink_b.cc.o: in function `_GLOBAL__sub_I__ZN2gr6binviz12qa_vizsink_b2t1Ev':
qa_vizsink_b.cc:(.text.startup+0x46): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::AppenderMapStorageInitializer()'
/usr/bin/ld: qa_vizsink_b.cc:(.text.startup+0x4d): undefined reference to `log4cpp::Appender::AppenderMapStorageInitializer::~AppenderMapStorageInitializer()'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/CMakeFiles/test-binviz.dir/build.make:154: lib/test-binviz] Error 1
make[1]: *** [CMakeFiles/Makefile2:250: lib/CMakeFiles/test-binviz.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

NB: liblog4cpp5-dev 1.1.3-1ubuntu1

Error: 'module' object has no attribute 'vizsink_b'

Hello.

I'm using BinViz from master on GNURadio 3.7.9 on Ubuntu 16.04

Build instructions work fine, and I can add the block to my workspace and configure it. However, when running the graph, I'm seeing:

Generating: '/home/jjmontes/Escritorio/top_block.py'

Executing: /usr/bin/python -u /home/jjmontes/Escritorio/top_block.py

Using Volk machine: avx_64_mmx_orc
Traceback (most recent call last):
  File "/home/jjmontes/Escritorio/top_block.py", line 224, in <module>
    main()
  File "/home/jjmontes/Escritorio/top_block.py", line 212, in main
    tb = top_block_cls()
  File "/home/jjmontes/Escritorio/top_block.py", line 159, in __init__
    self.binviz_vizsink_b_0 = binviz.vizsink_b(200, 100, "", "", "", False)
AttributeError: 'module' object has no attribute 'vizsink_b'

I have imported binviz from python and the module is found. The library however seems correclty installed:

jjmontes@jlaptop:~/git/BinViz/gr-binviz/build (master)$ sudo make install
[ 30%] Built target gnuradio-binviz
[ 80%] Built target test-binviz
[100%] Built target pygen_python_f91ec
[100%] Built target pygen_apps_9a6dd
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/lib/cmake/binviz/binvizConfig.cmake
-- Up-to-date: /usr/local/include/binviz/api.h
-- Up-to-date: /usr/local/include/binviz/vizsink_b.h
-- Installing: /usr/local/lib/libgnuradio-binviz.so
-- Up-to-date: /usr/local/lib/python2.7/dist-packages/binviz/__init__.py
-- Installing: /usr/local/lib/python2.7/dist-packages/binviz/__init__.pyc
-- Installing: /usr/local/lib/python2.7/dist-packages/binviz/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/binviz_vizsink_b.xml
jjmontes@jlaptop:~/git/BinViz/gr-binviz/build (master)$ sudo ldconfig

Can you offer some advice? Thanks!

Build failure OS X /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?

Under MacOS Sierra 10.12.6 I am receiving the following build errors:

`make
[ 12%] Built target gnuradio-binviz
[ 16%] Building CXX object lib/CMakeFiles/test-binviz.dir/qa_binviz.cc.o
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_binviz.cc:29:
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_vizsink_b.h:25:
In file included from /opt/local/include/cppunit/extensions/HelperMacros.h:9:
/opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did
you mean 'find'?
m_test_function( std::bind(test, m_fixture) )
~~~~~^~~~
find
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:888:1: note:
'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& _value)
^
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_binviz.cc:29:
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_vizsink_b.h:25:
In file included from /opt/local/include/cppunit/extensions/HelperMacros.h:9:
/opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did
you mean 'find'?
m_test_function( std::bind(test, &fixture) )
~~~~~^~~~
find
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:888:1: note:
'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& _value)
^
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_binviz.cc:29:
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_vizsink_b.h:25:
In file included from /opt/local/include/cppunit/extensions/HelperMacros.h:9:
/opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did
you mean 'find'?
m_test_function( std::bind(test, fixture) )
~~~~~^~~~
find
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:888:1: note:
'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& _value)
^
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_binviz.cc:29:
In file included from /Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_vizsink_b.h:25:
In file included from /opt/local/include/cppunit/extensions/HelperMacros.h:9:
/opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
m_test_function( std::bind(test, fixture) )
^~~~~~~~~
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/qa_vizsink_b.h:35:7: note: in instantiation of
member function 'CppUnit::TestCallergr::binviz::qa_vizsink_b::TestCaller' requested here
CPPUNIT_TEST(t1);
^
/opt/local/include/cppunit/extensions/HelperMacros.h:299:15: note: expanded from macro 'CPPUNIT_TEST'
( new CPPUNIT_NS::TestCaller(
^
/opt/local/include/cppunit/Portability.h:107:21: note: expanded from macro 'CPPUNIT_NS'

define CPPUNIT_NS CppUnit

                ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:888:1: note:
candidate function template not viable: requires 3 arguments, but 2 were provided
find(_InputIterator __first, _InputIterator __last, const _Tp& _value)
^
4 errors generated.
make[2]: *** [lib/CMakeFiles/test-binviz.dir/qa_binviz.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/test-binviz.dir/all] Error 2
make: *** [all] Error 2`

FYI: Also during the first pass I got the following errors that I'll assume are as intended:

'make
[ 4%] Building CXX object lib/CMakeFiles/gnuradio-binviz.dir/binimg.cc.o
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:393:1: warning: control reaches end of
non-void function [-Wreturn-type]
}
^
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:512:21: warning: '&&' within '||'
[-Wlogical-op-parentheses]
&& pattern[pattern_pos] == '1'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:512:21: note: place parentheses around
the '&&' expression to silence this warning
&& pattern[pattern_pos] == '1'
^
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:514:21: warning: '&&' within '||'
[-Wlogical-op-parentheses]
&& pattern[pattern_pos] == '0') {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:514:21: note: place parentheses around
the '&&' expression to silence this warning
&& pattern[pattern_pos] == '0') {
^
3 warnings generated.
[ 8%] Building CXX object lib/CMakeFiles/gnuradio-binviz.dir/vizsink_b_impl.cc.o
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/vizsink_b_impl.cc:69:14: warning: expression result
unused [-Wunused-value]
for (consumed; consumed < input_items.size(); consumed++) {
^~~~~~~~
1 warning generated.
[ 12%] Linking CXX shared library libgnuradio-binviz.dylib
[ 12%] Built target gnuradio-binviz
Scanning dependencies of target test-binviz
[ 16%] Building CXX object lib/CMakeFiles/test-binviz.dir/binimg.cc.o
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:393:1: warning: control reaches end of
non-void function [-Wreturn-type]
}
^
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:512:21: warning: '&&' within '||'
[-Wlogical-op-parentheses]
&& pattern[pattern_pos] == '1'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:512:21: note: place parentheses around
the '&&' expression to silence this warning
&& pattern[pattern_pos] == '1'
^
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:514:21: warning: '&&' within '||'
[-Wlogical-op-parentheses]
&& pattern[pattern_pos] == '0') {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/scott/Documents/WIP/gr/BinViz/gr-binviz/lib/binimg.cc:514:21: note: place parentheses around
the '&&' expression to silence this warning
&& pattern[pattern_pos] == '0') {
^
3 warnings generated.
'

Ubuntu 16.X SWIG bug

On some versions of ubuntu the module does not compile correctly, cmake outputs a warning not stopping the compilation but resulting in a non working OOT module

===== cmake output fragment =========
-- Checking for module SWIG
-- Disabling SWIG because version check failed.
===== fragment end ==================================

When running the module the terminal runs into the following error:
AttributeError: 'module' object has no attribute 'vizsink_b'
The solution found on this bug report is to install the latest version of SWIG:
sudo apt install swig swig3.0
It fixed the bug for me, perhaps you could add it to the readme known bugs section?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.