|
From: | Criss Swaim |
Subject: | Re: 3.9 Setup for OOT development |
Date: | Fri, 22 Jan 2021 16:59:48 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 |
I have
not used 3.9, but I have seen this behavior in 3.8 when the
gr_modtool makeyaml blockname
step was skipped.
I would suggest running this step then re-make/make install.
After
running this you should see the input/output parameters
defined in the yaml file
Criss Swaim cswaim@tpginc.net cell: 505.301.5701
You may recall that I was asking about gr_modtool a week ago. I've made some progress and I think I'm very close to making my block work. I'm using Ubuntu Desktop 20.04 in a Virtual Machine, with GNU Radio 3.9.0.0git~master~14059~focal.
Here is what I've learned so far:
packages needed: git doxygen clang-format cmake pybind11-dev python3-pygccxml liborc-0.4-dev
workflow:
cd ~/modulesgr_modtool newmod modulenamecd gr-modulenamegr_modtool add blockname< answer questions about blockname >< edit ./lib/blockname_impl.h ./lib/blockname_impl.cc ./include/modulename/blockname.h >gr_modtool makeyaml< edit ./grc/modulename_blockname.block.ymlgr_modtool bind blocknamemkdir buildcd buildcmake ../< check for errors; ignore '-- Could NOT find MPIR ...'makesudo make installsudo ldconfig (needed once on ubuntu, after initial 'sudo make install')< check gnuradio-companion for modulename->blockname; test blockname >
My block is a trivial block that copies a float input to a float output. There are no parameters. I've gone through the above steps without errors, and I get to the very end, where I can see the block in the gnuradio-companion list, BUT when I try to add it to a flowgraph, it won't show up on the canvas. I've tried double-click and drag/drop, but neither puts the block in the flowgraph.
I would like to hear from anyone who has built an OOT block from scratch, using 3.9.0 gr_modtool.Is the above procedure correct?What might cause the block to not load?
Assuming I get it working, is there a page planned on the wiki where I can document the procedures, tips, and pitfalls(I've found a few)?
Thanks,Gavin
[Prev in Thread] | Current Thread | [Next in Thread] |