New in GNU Radio

Hi everybody,

I have a stupid question but…when i modify a blocks (in C++), i need
to
compile after the modification? If i want to use this block in a python
program.

Thank you!

Loic

Depends… If you’re modifying an already existing block, just
recompiling should probably be sufficient. If you’re adding new
functions that you want to be accessible from Python, you have to add
the functions to the SWIG *.i file. If you’re making a brand new block
you’ll have to add it to the proper CMakeLists.txt file and also create
a new SWIG *.i file.

Check out gnuradio/gr-howto-write-a-block-cmake for examples where
they’ve done the above.

Sean

From: discuss-gnuradio-bounces+sean.nowlan=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+sean.nowlan=removed_email_address@domain.invalid] On
Behalf Of Loic D.
Sent: Thursday, March 08, 2012 1:01 PM
To: [email protected]
Subject: [Discuss-gnuradio] New in GNU Radio

Hi everybody,

I have a stupid question but…when i modify a blocks (in C++), i need
to compile after the modification? If i want to use this block in a
python program.

Thank you!

Loic