Gnuradio building problems

Hi all,

(Resending, I don’t think my mail got through the first time. If it did,
my apologies for the duplicate.)

I have a problem with building and running gnuradio. My system is a
Debian
Unstable one, and I’m trying to build the current git version of
gnuradio
from source.

Basically, the build itself seems to work fine, but the ‘make test’
already indicates a problem: apart from atsci-test,
gr-core-reed-solomon-test, gr-core-test-all, qa_volk_test_all and
gruel-test, all the tests fail.

Then, when I run ‘make install’ and try to run gnuradio-companion, an
error box pops up:

"Cannot import gnuradio.

Is the python path environment variable set correctly?
All OS: PYTHONPATH

Is the library path environment variable set correctly?
Linux: LD_LIBRARY_PATH
Windows: PATH
MacOSX: DYLD_LIBRARY_PATH"

The title of the dialog is “ImportError: dynamic module does not define
init function (init_gnuradio_core_runtime)”

As far as I can see, my PYTHONPATH should be fine (it’s
/usr/local/lib/python2.7/site-packages, and the gnuradio stuff seems to
be
located there too) and /usr/local/lib is in my ld.so.conf (and I’ve run
ldconfig) so the things the dialog box hints at should be fine.

Some more info: all the gnuradio-packages that I’ve installed before are
thorougly deleted, so I’m not accidentally executing these. I’ve also
verified my system picks python2.7 by default, so gnuradio isn’t trying
to
run under python3.

I’m fairly good at keeping my system running and I can hack away pretty
well in C, but I’m new to Python, so unfortunately I’m a bit miffed by
these errors. I’d appreciate any help with solving them…

Cheers,
Jeroen

On Wednesday 13 Jun 2012 08:24:54 J. Domburg wrote:

The title of the dialog is “ImportError: dynamic module does not define
init function (init_gnuradio_core_runtime)”

I had exactly this issue [apparently so do others judging by what
appears in
Pastebin]. After wrangling with it a while I realised that 3.6 had
landed in
the repos, which was adequate for FCD and RTL use, so I’m afraid to say
that
I just gave up :frowning:

alexd

On Wed, 13 Jun 2012, Alex Dekker wrote:

I had exactly this issue [apparently so do others judging by what appears in
Pastebin]. After wrangling with it a while I realised that 3.6 had landed in
the repos, which was adequate for FCD and RTL use, so I’m afraid to say that
I just gave up :frowning:

Yes, after I wrote the mail, I noticed that too, so I tried using that.
I’m working with one of these RTLSDR dongles, though, and the drivers
for
that one aren’t in Debian yet. So I tried to build these separately
against the gnuradio installed from the Debian package… no luck; when
I
try using that block I get a similar message (ImportError: dynamic
module
does not define init function (init_osmosdr_swig) ).

Cheers,
Jeroen

On Wed, Jun 13, 2012 at 10:42:44AM +0200, J. Domburg wrote:

Yes, after I wrote the mail, I noticed that too, so I tried using
that. I’m working with one of these RTLSDR dongles, though, and the
drivers for that one aren’t in Debian yet. So I tried to build these
separately against the gnuradio installed from the Debian package…
no luck; when I try using that block I get a similar message
(ImportError: dynamic module does not define init function
(init_osmosdr_swig) ).

FYI: Marcus’ build-gnuradio[1] installs both GNU Radio and the osmosdr
drivers. Does all the work for you.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

On Wed, 13 Jun 2012, Martin B. wrote:

FYI: Marcus’ build-gnuradio[1] installs both GNU Radio and the osmosdr
drivers. Does all the work for you.

Yes, that actually was the first thing I tried. It gave me the same
error,
but because the script doesn’t really supports Debian (actually had to
fix
a small thing to make it run) I thought the script may be the issue, so
I
tried compiling by hand.

Cheers,
Jeroen

On Wed, Jun 13, 2012 at 5:06 AM, J. Domburg [email protected]
wrote:

Cheers,
Jeroen

When building from source, after you run ‘cmake’, what is the output?
Are there any warnings generated when building?

Tom