discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Problems with compiling oot module from gnuradio-companion on Ubuntu


From: Karlee Brannam
Subject: Re: Problems with compiling oot module from gnuradio-companion on Ubuntu 20.04 (gnuradio 3.8.1.0)
Date: Mon, 10 Oct 2022 19:18:28 +0000

Hi Vasil, 

Here is the output when I changed ImportError to ModuleNotFound:

Block paths:
      /usr/share/gnuradio/grc/blocks
      /usr/local/share/gnuradio/grc/blocks

Loading: "/home/kbrannam/work/voxi/GNUVoxi/gr-voxi/build/newTest_10-10-2022.grc"
>>> Done

Generating: '/home/kbrannam/work/voxi/GNUVoxi/gr-voxi/build/newTest_10102022.py'

Executing: /usr/bin/python3 -u /home/kbrannam/work/voxi/GNUVoxi/gr-voxi/build/newTest_10102022.py

Traceback (most recent call last):
  File "/home/kbrannam/work/voxi/GNUVoxi/gr-voxi/build/newTest_10102022.py", line 26, in <module>
    import voxi
  File "/usr/local/lib/python3/dist-packages/voxi/__init__.py", line 30, in <module>
    from .voxi_swig import *
  File "/usr/local/lib/python3/dist-packages/voxi/voxi_swig.py", line 13, in <module>
    from . import _voxi_swig
ImportError: /usr/local/lib/x86_64-linux-gnu/libgnuradio-voxi.so.1.0.0git: undefined symbol: _ZN10MainWindowC1EP7QWidget


Thank you,

-Karlee

Karlee Brannam
Software Engineer

Micro-X

855 South 192nd St, Suite 600
SeaTac, WA, 98148, United States
www.micro-x.com


From: Karlee Brannam <kbrannam@micro-x.com>
Sent: Monday, October 10, 2022 12:14 PM
To: Vasil Velichkov <vvvelichkov@gmail.com>
Subject: Re: Problems with compiling oot module from gnuradio-companion on Ubuntu 20.04 (gnuradio 3.8.1.0)
 
Hi Vasil,

Thank you for replying. I installed gnuradio by these commands:
$ sudo apt-get install gnuradio
sudo apt-get install gnuradio-dev cmake libspdlog-dev clang-format

And I am on Linux (Ubunutu 20.04).



Here is the output when I type "ldd -r lib/lib*.so":
      linux-vdso.so.1 (0x00007ffcc1f6c000)
      libgnuradio-runtime.so.3.8.1 => /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.8.1 (0x00007f60a91db000)
      libQt5Widgets.so.5 => /home/kbrannam/anaconda3/lib/libQt5Widgets.so.5 (0x00007f60a8ca9000)
      libgnuradio-pmt.so.3.8.1 => /lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.8.1 (0x00007f60a8c3e000)
      liblog4cpp.so.5 => /lib/x86_64-linux-gnu/liblog4cpp.so.5 (0x00007f60a8bfa000)
      libQt5Core.so.5 => /home/kbrannam/anaconda3/lib/libQt5Core.so.5 (0x00007f60a87e3000)
      libstdc++.so.6 => /home/kbrannam/anaconda3/lib/libstdc++.so.6 (0x00007f60a866c000)
      libgcc_s.so.1 => /home/kbrannam/anaconda3/lib/libgcc_s.so.1 (0x00007f60a8658000)
      libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f60a8466000)
      libvolk.so.2.2 => /lib/x86_64-linux-gnu/libvolk.so.2.2 (0x00007f60a8177000)
      libboost_program_options.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0 (0x00007f60a80e8000)
      libboost_filesystem.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 (0x00007f60a80ca000)
      libboost_thread.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 (0x00007f60a809c000)
      librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f60a8092000)
      libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f60a806f000)
      libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f60a7feb000)
      libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f60a7e9c000)
      libQt5Gui.so.5 => /home/kbrannam/anaconda3/lib/./libQt5Gui.so.5 (0x00007f60a7ace000)
      libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f60a7a46000)
      libz.so.1 => /home/kbrannam/anaconda3/lib/./libz.so.1 (0x00007f60a7a26000)
      libicui18n.so.58 => /home/kbrannam/anaconda3/lib/./libicui18n.so.58 (0x00007f60a77a7000)
      libicuuc.so.58 => /home/kbrannam/anaconda3/lib/./libicuuc.so.58 (0x00007f60a75f4000)
      libicudata.so.58 => /home/kbrannam/anaconda3/lib/./libicudata.so.58 (0x00007f60a5cf2000)
      libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f60a5cea000)
      libgthread-2.0.so.0 => /home/kbrannam/anaconda3/lib/./libgthread-2.0.so.0 (0x00007f60a5ce5000)
      libglib-2.0.so.0 => /home/kbrannam/anaconda3/lib/./libglib-2.0.so.0 (0x00007f60a5bae000)
      /lib64/ld-linux-x86-64.so.2 (0x00007f60a9322000)
      liborc-0.4.so.0 => /lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f60a5b2b000)
      libpng16.so.16 => /home/kbrannam/anaconda3/lib/././libpng16.so.16 (0x00007f60a5af2000)
      libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f60a5a38000)
      libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f60a5a04000)
      libpcre.so.1 => /home/kbrannam/anaconda3/lib/././libpcre.so.1 (0x00007f60a59bd000)
      libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f60a5880000)
      libxcb.so.1 => /home/kbrannam/anaconda3/lib/./libxcb.so.1 (0x00007f60a5854000)
      libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f60a584c000)
undefined symbol: _ZN10MainWindowC1EP7QWidget   (lib/libgnuradio-voxi.so)


 
Thank you so much for your help!
-Karlee

Karlee Brannam
Software Engineer

Micro-X

855 South 192nd St, Suite 600
SeaTac, WA, 98148, United States
www.micro-x.com


From: Vasil Velichkov <vvvelichkov@gmail.com>
Sent: Monday, October 10, 2022 12:06 PM
To: Karlee Brannam <kbrannam@micro-x.com>; discuss-gnuradio@gnu.org <discuss-gnuradio@gnu.org>
Subject: Re: Problems with compiling oot module from gnuradio-companion on Ubuntu 20.04 (gnuradio 3.8.1.0)
 
Hi Karlee,

On 08/10/2022 00.21, Karlee Brannam wrote:
> I am new to gnuradio and have completed the tutorials for creating custom oot modules.

Welcome to GNU Radio! How did you install gnuradio and which version? Which OS are you using?

> I am trying to implement an instrumentation, such as the ones given in gnuradio-qtgui. I have referred to the gitlab with the source code and created a oot module with a block that compiles with nothing in the window. However, I am struggling to implement my qtwidget class with the block. It gives me an error "(name of module) has no attribute to (oot block)".
>
> I have set the libraries and paths in my Cmakelists.txt and set my python and library paths. I have checked to make sure all my dependencies are up to date. I pass a QWidget pointer as a parameter in all the needed methods and referenced it in my implementation file.
>
> If you could help point me towards a simple example or instructions on how to create an instrumentation, that would be greatly appreciated!

In case you are using Linux then check if you have undefined symbols/references in the .so (shared object) file. Go in your OOT's build directory and execute

  ldd -r lib/lib*.so

and provide the full output.

Also open `python/__init__.py`, change `ImportError` to `ModuleNotFoundError` and then reinstall and retest.

Best Regards,
Vasil


reply via email to

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