[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Creation of a block (PSDU 29 octets) using messag
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Creation of a block (PSDU 29 octets) using message passing technique |
Date: |
Thu, 20 Sep 2012 16:07:26 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
On 09/20/2012 03:28 AM, Jose Torres Diaz wrote:
> Hi Josh,
>
> I checked the code again. I am almost there, at this stage I don't get any
> error using gnuradio::block in my .cc file (see below):
>
> : gnuradio::block ("test_temporal",
> gr_make_io_signature (0, 0, 0), //This is a source - no inputs
> gr_make_io_signature(0, 0, 0),
> msg_signature(false, 1))
>
> and I changed the work function in the following way:
>
> int asrp_test_temporal::work (const InputItems &input_items,
> const OutputItems &output_items)
>
> However, when I compile this block, I am getting some errors with the swig
> file, which points out that my defined class has no member named 'detail'
> and 'set_detail'. The errors is shown below:
>
> asrp_swig.cc: In function 'PyObject*
> _wrap_asrp_test_temporal_sptr_detail(PyObject*, PyObject*)':
> asrp_swig.cc:8800:25: error: 'class asrp_test_temporal' has no member named
> 'detail'
> asrp_swig.cc: In function 'PyObject*
> _wrap_asrp_test_temporal_sptr_set_detail(PyObject*, PyObject*, PyObject*)':
> asrp_swig.cc:8852:16: error: 'class asrp_test_temporal' has no member named
> 'set_detail'
>
Looks like swig is trying to understand the boost shared pointer stuff.
I usually never see this so you might be missing an include in the .i file.
Make sure you have %include<gnuradio.i> and %include<extras_swig.i>
-josh