Updating some processing blocks, problems

Im trying to upgrade some signal processing blocks from autotools to
cmake.
https://github.com/KD8EYF/op25/tree/master/blocks

"cmake …/ "
seems to work fine
http://pastebin.com/ycAqvSh8

“make op25”
has a few warnings but nothing serious looking. So this tells me at
least the source is compiling fine
http://pastebin.com/D8EUnMv8

“make”
i get some warnings “Found unknown command `\precondition’” when
creating the doxygen … not sure this is too important.
but i also get some errors, Like:

[ 80%] Building CXX object
swig/CMakeFiles/_op25_swig.dir/op25_swigPYTHON_wrap.cxx.o
/build/swig/op25_swigPYTHON_wrap.cxx: In function PyObject*
_wrap_new_fsk4_demod_ff_sptr__SWIG_0(PyObject*, PyObject*):
/build/swig/op25_swigPYTHON_wrap.cxx:5784:22: error: gr was not
declared in this scope

This file ‘op25_swigPYTHON_wrap.cxx’ is automatically generated by
swig. I have no idea why its in error. Its almost like it not putting
the processing blocks into the ‘gr’ namespace? if that even makes
sense… I dunno… This is a bit over my head

Full makelog w/ errors
http://pastebin.com/raw.php?i=EbEk1TzL

Does anyone see anything wrong with what im doing?
Thanks
Dave

On 12/29/2012 02:46 AM, davek wrote:

least the source is compiling fine
_wrap_new_fsk4_demod_ff_sptr__SWIG_0(PyObject*, PyObject*):

Does anyone see anything wrong with what im doing?
Thanks
Dave

Is fsk4_demod_ff declared in a namespace?

There is possibly a macro to deal with this:
GR_SWIG_BLOCK_MAGIC2

http://gnuradio.org/cgit/gnuradio.git/tree/gnuradio-core/src/lib/swig/gr_swig_block_magic.i

-josh

Josh, Bastin Thanks for the reply.

my op25_swig.i already has

GR_SWIG_BLOCK_MAGIC2. I changed it to
GR_SWIG_BLOCK_MAGIC

And compilation completes without error.
Is this a valid workaround? with what implications?

Also i still get some warnings… not sure

op25/blocks/swig/op25_swig.i:17: Warning 302: Identifier
‘op25_fsk4_demod_ff_sptr’ redefined (ignored),
op25/blocks/include/op25_fsk4_demod_ff.h:33: Warning 302: previous
definition of ‘op25_fsk4_demod_ff_sptr’.
op25/blocks/swig/op25_swig.i:19: Warning 302: Identifier
‘op25_fsk4_slicer_fb_sptr’ redefined (ignored),
op25/blocks/include/op25_fsk4_slicer_fb.h:40: Warning 302: previous
definition of ‘op25_fsk4_slicer_fb_sptr’.
op25/blocks/swig/op25_swig.i:21: Warning 302: Identifier
‘op25_decoder_bf_sptr’ redefined (ignored),
op25/blocks/include/op25_decoder_bf.h:34: Warning 302: previous
definition of ‘op25_decoder_bf_sptr’.