Re: OOT module AttributeError - module has no attribute Arch Linux GR 3.8.1

2020-07-13 Thread Nemanja Savic
@Josh Blum-3 [via GnuRadio] You were right. This helped: In the top CmakeLists.txt I added: find_package(Gnuradio "3.8" REQUIRED COMPONENTS blocks) In the lib/CMAKELists.txt I added: find_package(gnuradio-blocks) target_link_libraries(gnuradio-TPMS gnuradio::gnuradio-runtime

Re: OOT module AttributeError - module has no attribute Arch Linux GR 3.8.1

2020-07-13 Thread Nemanja Savic
Thank you Josh. You answer came while I was making another post. I will take a look at what you have suggested. Just would like to add, that my module is created with gr_modtool from the gnuradio version i have at the moment (3.8) - should in that case all dependencies be automatically solved in

Re: OOT module AttributeError - module has no attribute Arch Linux GR 3.8.1

2020-07-13 Thread Josh
A lot of times the dreaded 'Module Not Found' error is caused by linker issues. In 3.8, the cmake files were modernized, but there are a few caveats especially if your OOT links against other GR modules (e.g. gr-digital). In order to use GR modules in your code, the target_link_libraries needs to

OOT module AttributeError - module has no attribute Arch Linux GR 3.8.1

2020-07-12 Thread Nemanja Savic
Hi all, haven't been using GR and posting here for about 5 years. A few days ago I installed GR on my machine which runs under Manjaro. I wanted to port some of my old GR blocks (from 3.6.5) to the current GR version. I created a new module and started adding some blocks. Making module works just