Block missing GNU Radio Companion

Hi,

I made a new block called “my_block”, copying the example
“blob_to_stream”
provided in grcextras. I changed the files .cc, .h and .xml. Also, I
added
some lines in the CMakeList.txt files in the path:

/grc
/include/gnuradio/extras
/lib

Then, I compiled using:

build/ sudo cmake …/
build/ sudo make check
build/ sudo make install

The problem is that I cannot see the block under “Extras” in GNU Radio
Companion, however when I search (ie. when I type the name in GRC) “my
block” in GNU Radio Companion the block is there. Anyone has faced
something like this before? Do I need to change any other file for the
compiling?

Many thanks,

Jose.

On 09/24/2012 01:49 AM, Jose T. Diaz wrote:

Then, I compiled using:

build/ sudo cmake …/
build/ sudo make check
build/ sudo make install

Jose,

I hope that you figured out the swig issue earlier!

The problem is that I cannot see the block under “Extras” in GNU Radio
Companion, however when I search (ie. when I type the name in GRC) “my
block” in GNU Radio Companion the block is there. Anyone has faced
something like this before? Do I need to change any other file for the
compiling?

There is a category needed for each block. A category can be a tag in
the block, or an entry is a special block tree:

Here is an example:

SCCC Decoder
trellis_sccc_decoder_x
Error Correction/Trellis
from gnuradio import trellis

A little more here:
http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Creating-the-XML-Block-Definition

-Josh

Hi Josh,

Many thanks for your help, the block now is in the correct category
after
adding the line:

Extras

Regards,

Jose.