Yes, I just double-checked and mine is working.

So, I just re-checked your link to issue #406. In "steps to reproduce", I
noticed 2 things:

   - On the next-to-last line, the g++ command does not include your custom
   library and does not include this link option.  The Ettus example builds
   your block controller in its own shared library - it does not add it to the
   uhd shared library. So, you need to link with both uhd and your
   rfnoc-example shared library (or whatever it is named). And, you need to
   have that link option.  (as a side note, when you built the rfnoc-example,
   this did build the init_gain_block.cpp example in the apps folder with this
   link option so if you were to run that example, you could confirm that the
   block ID in that example is "Gain#0" rather than "Block#0". But since this
   example doesn't use the radio, you couldn't use it to verify action
   propagation).
   - The final step in "steps to reproduce" shows a command line with the
   block ID "Block#0". If the block controller library was linked properly,
   this will not be the Block ID.  It will be "Gain#0" or something like that.

Rob

On Fri, Feb 19, 2021 at 6:20 AM Cédric Hannotier via USRP-users <
usrp-users@lists.ettus.com> wrote:

> Hi Rob,
>
> On 18/02/21 17:32, Rob Kossler wrote:
> > I previously did not have the link options correct for building OOT.  If
> > you look in the CMakeLists.txt file in the Ettus rfnoc example apps
> folder,
> > you will see a link option "-Wl,--no-as-needed".  I didn't look into it
> > thoroughly, but without that option, the OOT blocks do not get linked in
> > (or at least their code to register themselves at startup never
> executes).
> > Once I added this linker option to my custom app, the OOT blocks register
> > fine and behave normally.
>
> But #406 uses the Ettus rfnoc example block, which provides this link
> option,
> and Ettus rfnoc example block was not forwarding the action.
> Could you check that the OOT Ettus example block is able to forward the
> action on your side?
>
> Regards
> --
>
> Cédric Hannotier
>
> _______________________________________________
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to