Wednesday, August 3, 2016

Re: [Discuss-gnuradio] Adding public methods(getters() and setters()) to out of tree modules in GNURadio

Hi Johnathan,

Thank you very much for your response. It solved the problem.

Regards,
Damindra

On Tue, Aug 2, 2016 at 9:23 PM, Johnathan Corgan <johnathan@corganlabs.com> wrote:
You are doing the right things.  However, there is a long standing bug in our gr_modtool created template that doesn't trigger recompiling the SWIG wrapper when changing the public .h file(s).  Just do a 'make clean', 'make', and 'sudo make install' again.

-Johnathan

Johnathan Corgan
Corgan Labs - SDR Training and Development Services

On Tue, Aug 2, 2016 at 1:40 PM, Damindra Bandara <damindra.bandara@gmail.com> wrote:
Hi,

I am looking for a way to add public methods to GNURadio OOT modules. I modified the <oot_module>_impl.cc and <oot_module>_impl.h files. I also added the function signature as a virtual function to /include/<oot_module>.h file. I compiled the code(make /make install/ldconfig), and I did not get any errors. However, the functions are not visible outside. For example, I cannot use the public methods from the topblock.py.

If you could give me some guidelines to make public methods in OOT modules, I would really appreciate it.

Thank you,

Damindra

--
Damindra Savithri Bandara,
Ph.D. in Information Technology (Candidate)
George Mason University,
Fairfax,
Virginia

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





--
Damindra Savithri Bandara,
Ph.D. in Information Technology (Candidate)
George Mason University,
Fairfax,
Virginia

No comments:

Post a Comment