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? On Sat, Dec 29, 2012 at 12:06 PM, Josh Blum <j...@joshknows.com> wrote: > > > On 12/29/2012 02:46 AM, davek wrote: >> 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 >> > > 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 > >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio