Trying to build a fairly simple decoder block, based on gr_block. The
compile goes OK, but swig goes very badly off the rails:
Can swig only deal with the derived classes? None of the derived classes
really work for me, since the number of output items is
only loosely correlated to the number of input items, and I may not
produce any output items until I see a SYNC word on the input.
So things like gr_sync_block don’t seem appropriate. Any clues?
[ 31%] Generating pocsag_swig_doc.i
[ 37%] Generating pocsag_swig.tag
[ 43%] Swig source
/home/mleech/gr-pocsag/include/pocsag_decoder.h:63: Warning 401: Base
class ‘gr_block’ ignored - unknown module name for base. Either import
the appropriate module interface file or specify the name of the module
in the %import directive.
[ 50%] Building CXX object
swig/CMakeFiles/_pocsag_swig.dir/pocsag_swigPYTHON_wrap.cxx.o
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx: In
function PyObject* _wrap_new_pogsag_decoder_sptr__SWIG_0(PyObject*,
PyObject*):
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5099:22:
error: pogsag_decoder was not declared in this scope
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5099:37:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5099:47:
error: invalid type in declaration before = token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5104:36:
error: pogsag_decoder cannot appear in a constant-expression
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5104:51:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5104:54:
error: expected primary-expression before ) token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5104:55:
error: expected ; before new
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx: In
function PyObject* wrap_new_pogsag_decoder_sptr__SWIG_1(PyObject*,
PyObject*):
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5123:3:
error: pogsag_decoder was not declared in this scope
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5123:19:
error: arg1 was not declared in this scope
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5123:43:
error: expected primary-expression before ) token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5123:45:
error: expected ; before numeric constant
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5127:22:
error: pogsag_decoder cannot appear in a constant-expression
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5127:37:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5127:47:
error: invalid type in declaration before = token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5134:28:
error: expected type-specifier before pogsag_decoder
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5134:28:
error: expected > before pogsag_decoder
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5134:28:
error: expected ( before pogsag_decoder
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5134:45:
error: expected primary-expression before > token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5134:53:
error: expected ) before ; token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5137:36:
error: pogsag_decoder cannot appear in a constant-expression
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5137:51:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5137:54:
error: expected primary-expression before ) token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5137:55:
error: expected ; before new
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx: In
function PyObject* wrap_pogsag_decoder_sptr___deref(PyObject*,
PyObject*):
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:22:
error: pogsag_decoder was not declared in this scope
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:37:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:45:
error: invalid type in declaration before = token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:67:
error: pogsag_decoder cannot appear in a constant-expression
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:82:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:85:
error: expected primary-expression before ) token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5188:87:
error: expected , or ; before numeric constant
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5192:19:
error: result was not declared in this scope
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:47:
error: pogsag_decoder cannot appear in a constant-expression
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:62:
error: template argument 1 is invalid
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:64:
error: expected > before * token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:64:
error: expected ( before * token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:66:
error: expected primary-expression before > token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5199:74:
error: expected ) before ; token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx:5202:33:
error: expected primary-expression before ) token
/home/mleech/gr-pocsag/build/swig/pocsag_swigPYTHON_wrap.cxx: In
function PyObject* _wrap_delete_pogsag_decoder_sptr(PyObject*,
PyObject*):
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium