I found the solution, adding filter and digital to CMakeLists.txt file. https://stackoverflow.com/questions/28859517/gnuradio-importerror-undefined-symbol/28867893#28867893
On 20 April 2018 at 15:39, Murray Thomson <murraythomson...@gmail.com> wrote: > Hi, > > I have created an OOT module with my block written in C++ and it works. > Now I would like to use a fir filter within my block, in the same way the > equalizers in gr-digital do. For example the lms equalizer > https://github.com/gnuradio/gnuradio/blob/master/gr- > digital/lib/lms_dd_equalizer_cc_impl.h > I have inherited from filter::kernel::fir_filter_ccc and added my code. > I can build and install my block without errors, but when I use it in > grc_companion, I get the error > > AttributeError: 'module' object has no attribute 'myblock' > > This error goes away when I don't inherit the filter. I guess that I need > to add something to the CMakeLists.txt files? I have tried copying parts of > the gr-digital CMakeLists.txt files to my OOT but it didn't solve the > problem. > I also tried to add my block to gr-digital directly. However, I can't > build gr-digital following the steps for OOT modules. I installed it using > pybombs and that doesn't allow me to modify it. > > I would really appreciate if someone can point me in the right direction > as I'm a bit lost at the moment. > > Regards, > Murray >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio