Newbie problem

I was excited to successfully try an rtl-sdr GRC demo/tutorial and
decided to start following the gnuradio tutorials to better learn the
program. I quickly ran into trouble, so am sure I’ve done something
stupid but can’t figure out what! Running through tutorial

http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GRC

and reaching section 2.2.3, ‘Generate’ goes fine, but not ‘Execute’:

Generating: “/home/mm/gnuradio/tutorial_two_1.py”

Executing: “/home/mm/gnuradio/tutorial_two_1.py”

Traceback (most recent call last):
File “/home/mm/gnuradio/tutorial_two_1.py”, line 13, in
from gnuradio import qtgui
File “/usr/lib/python2.7/site-packages/gnuradio/qtgui/init.py”,
line 34, in
from qtgui_swig import *
File “/usr/lib/python2.7/site-packages/gnuradio/qtgui/qtgui_swig.py”,
line 28, in
_qtgui_swig = swig_import_helper()
File “/usr/lib/python2.7/site-packages/gnuradio/qtgui/qtgui_swig.py”,
line 24, in swig_import_helper
_mod = imp.load_module(‘_qtgui_swig’, fp, pathname, description)
ImportError: /usr/lib/libgnuradio-qtgui-3.7.6.1.so.0.0.0: undefined
symbol: _ZN7QwtPlot11eventFilterEP7QObjectP6QEvent

Done (return code 1)

The machine I’m on is a gentoo box with gnuradio compiled as follows
(notice qt4 is specified):

emerge -pv gnuradio

These are the packages that would be merged, in order:

Calculating dependencies… done!
[ebuild R ] net-wireless/gnuradio-3.7.6.1:0/3.7.6.1::gentoo
USE=“alsa analog audio ctrlport digital doc examples fcd filter grc jack
oss qt4 sdl utils wavelet wxwidgets -atsc -channels -dtv -fec -log -noaa
-pager -performance-counters -portaudio {-test} -trellis -uhd -vocoder
-zeromq” PYTHON_TARGETS=“python2_7” 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

As I mentioned, all works well with RTL-SDR source, so I assume there is
a QT problem of some sort?

Thanks!
Mike M.

Just a followup to my own note. I did

ldd /usr/lib/libgnuradio-qtgui-3.7.6.1.so.0.0.0

and no library comes up as missing.

Thanks,
Mike M.

Hey Mike,

If you suspect that you have problems with libraries, maybe you want to
run
the install script with the prereqs option to install all the
dependencies.

wget http://www.sbrac.org/files/build-gnuradio && chmod a+x
./build-gnuradio && ./build-gnuradio prereqs

Thanks,
Murray

Murray, thanks for your idea which I’ll use if I need to avoid the
gentoo “emerge” utility.

Rick, thanks, Bug 540658 was just posted. I hope the problem is simple
to solve - and also not a blunder on my end. :slight_smile:

Thanks, guys!
Mike

On 02/18/2015 10:47 PM, Rick F. wrote:

Thanks,
Zero_Chaos

On 02/18/15 16:13, Mike M. wrote:
[…] ‘Generate’ goes fine, but not ‘Execute’:

 from qtgui_swig import *

File “/usr/lib/python2.7/site-packages/gnuradio/qtgui/qtgui_swig.py”,
line 28, in
_qtgui_swig = swig_import_helper()
File “/usr/lib/python2.7/site-packages/gnuradio/qtgui/qtgui_swig.py”,
line 24, in swig_import_helper
_mod = imp.load_module(’_qtgui_swig’, fp, pathname, description)
ImportError: /usr/lib/libgnuradio-qtgui-3.7.6.1.so.0.0.0: undefined
symbol: _ZN7QwtPlot11eventFilterEP7QObjectP6QEvent

Done (return code 1)
[…]

Mike,

I am the maintainer of Gnuradio in gentoo. Please open a gentoo bug at
https://bugs.gentoo.org with “emerge --info” as well as the full
build.log for gnuradio (you will probably need to xz compress it)
attached to the bug. We can help you fix the problem and get it fixed
for all users. For what it’s worth, we saw a very similar issue several
version ago and the problem turned out to be very obvious in the full
build log. Likely there are some improper paths for QT getting
autodetected.

Thanks,
Zero_Chaos

Just so the mailing list doesn’t feel out of the loop and the archives
have the solution:

We successfully tracked this issue to resolution here:

https://bugs.gentoo.org/show_bug.cgi?id=540658

and merged the fix into gnuradio here:

Thanks,
Zero_Chaos