GNU Radio in Python Tutorial - installing python block without C++

Hi all,

I’ve been going through the tutorials with a fresh install of GNURadio
(Version 3.7.2.1) through Ubuntu’s package manager (Ubuntu 14.04) and
I’ve
run into a few issues when attempting to install a python block (without
any C++, as indicated in the tutorial:
http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python#Installing-Python-Blocks).

I think I resolved the first issue below, but any pointers for resolving
the second error would be greatly appreciated:

1-) Running cmake threw an error "CMAKE error: cannot determine link
language for target “gnuradio-tutorial”

-As mentioned in the “bug” report #522, I was able to eliminate the
error
by removing the lib folder and commenting out the line
“add_subdirectory(lib)” from CMakeLists.txt

2-) Running make now gives the error when attempting to link the
tutorial
module:
Linking CXX shared module _tutorial_swig.so
/usr/bin/ld: cannot find -lgnuradio-tutorial
collect2: error: ld returned 1 exit status

-Is there something else that needs to be edited before running cmake
since
there isn’t any C++ code?

Thanks in advance,

-Mike

Michael,

we do point out in our tutorials that you require GNU Radio 3.7.4 or
later to run these tutorials. The possibility of writing Python-only
OOTs is the main reason for this.

However, you probably don’t need to upgrade if you don’t like. One way
to do this is to clone gr-tutorial, and remove all the source files,
then start adding them again as you go through the exercises.

Cheers,
M

Hi Martin,

Thanks for the response. I’ll make sure to work with the newer version
going forward.

I see that the tutorial home page says 3.7.4 is required, but I just
checked the guided tutorial in python (
http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python)
and it mentions 3.7.0 or later as a prereq.

Thanks again,

-Mike

On Wed, Oct 22, 2014 at 5:40 AM, Martin B. [email protected]

On 10/22/2014 02:25 PM, Michael R. wrote:

I see that the tutorial home page says 3.7.4 is required, but I just
checked the guided tutorial in python

(http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python)

and it mentions 3.7.0 or later as a prereq.

Thanks for pointing that out – definitely an annoying and nasty typo in
our tutorial.

M