OOT modules config for versions

2023-06-12 Thread Ali G. Dezfuli
Hi all,

I'd like to use libgnuradio-filter in my OOT module/blocks.
I've read the following link which is about configuring OOT modules for
adding other parts of gnuradio:
https://wiki.gnuradio.org/index.php/OutOfTreeModulesConfig
I couldn't find the line:

set(GR_REQUIRED_COMPONENTS RUNTIME)

in the root cmakelists.txt file the OOT module (e.g. here gr-howto).

I wonder how I can manage that in newer versions.

Versions are:

GR v3.10.6.0
Ubuntu 22.04

Thank you very much!


Re: OOT modules config for versions

2023-06-12 Thread Ron Economos

You just use find_package() now. Here's an example:

https://github.com/drmpeg/gr-atsc3/blob/master/CMakeLists.txt#L77

You also have to link to the modules in lib/CMakeLists.txt. Like so:

https://github.com/drmpeg/gr-atsc3/blob/master/lib/CMakeLists.txt#L42

Ron

On 6/12/23 00:01, Ali G. Dezfuli wrote:

Hi all,

I'd like to use libgnuradio-filter in my OOT module/blocks.
I've read the following link which is about configuring OOT modules 
for adding other parts of gnuradio:

https://wiki.gnuradio.org/index.php/OutOfTreeModulesConfig
I couldn't find the line:
set(GR_REQUIRED_COMPONENTS RUNTIME)
in the root cmakelists.txt file the OOT module (e.g. here gr-howto).
I wonder how I can manage that in newer versions.
Versions are:
GR v3.10.6.0Ubuntu 22.04
Thank you very much!

Re: OOT modules config for versions

2023-06-12 Thread Ali G. Dezfuli
YOU REALLY SAVED MY LIFE Ron!

On Mon, Jun 12, 2023 at 11:28 AM Ron Economos  wrote:

> You just use find_package() now. Here's an example:
>
> https://github.com/drmpeg/gr-atsc3/blob/master/CMakeLists.txt#L77
>
> You also have to link to the modules in lib/CMakeLists.txt. Like so:
>
> https://github.com/drmpeg/gr-atsc3/blob/master/lib/CMakeLists.txt#L42
>
> Ron
> On 6/12/23 00:01, Ali G. Dezfuli wrote:
>
> Hi all,
>
> I'd like to use libgnuradio-filter in my OOT module/blocks.
> I've read the following link which is about configuring OOT modules for
> adding other parts of gnuradio:
> https://wiki.gnuradio.org/index.php/OutOfTreeModulesConfig
> I couldn't find the line:
>
> set(GR_REQUIRED_COMPONENTS RUNTIME)
>
> in the root cmakelists.txt file the OOT module (e.g. here gr-howto).
>
>
> I wonder how I can manage that in newer versions.
>
> Versions are:
>
> GR v3.10.6.0
> Ubuntu 22.04
>
> Thank you very much!
>
>


error in building gnuradio 3.8.1 error: cannot convert ‘const nanoseconds in ubuntu 20.04

2023-06-12 Thread sp
can anyone guide me on how can solve this error in building gnuradio 3.8.1
from the source.!!

error: cannot convert ‘const nanoseconds’ {aka ‘const
std::chrono::duration >’} to ‘const
nanoseconds&’ {aka ‘const boost::chrono::duration >&’}


Re: error in building gnuradio 3.8.1 error: cannot convert ‘const nanoseconds in ubuntu 20.04

2023-06-12 Thread Marcus Müller

Hi stackprogrammer,

um, 3.8.1 is so end-of-life, we probably fixed whatever you're hitting there in a later 
release of the 3.8 series. So,  honestly, if you really have to use GNU Radio 3.8, use a 
newer GNU Radio 3.8.


Also, such compiler errors come with file and line number information. You're not new to 
compiling software! Please make error reports as helpful as they need to be in order to 
allow us to help you.


Best regards,
Marcus



Re: error in building gnuradio 3.8.1 error: cannot convert ‘const nanoseconds in ubuntu 20.04

2023-06-12 Thread Marcus Müller
Small update: looked for the string "nanoseconds" in all of GNU Radio 3.8.1.0's source 
code, was not there.


Your error is in a piece of software that is *not* GNU Radio, so this is the wrong place 
to talk about it, it seems (knowing what one talks about: that's what these file names are 
for ;) )


Best,
Marcus

On 12.06.23 11:14, sp wrote:

can anyone guide me on how can solve this error in building gnuradio 3.8.1 from 
the source.!!

error: cannot convert ‘const nanoseconds’ {aka ‘const std::chrono::durationstd::ratio<1, 10> >’} to ‘const nanoseconds&’ {aka ‘const 
boost::chrono::duration >&’}




OOT modules: adding a faulty block causes whole OOT module not to work

2023-06-12 Thread Ali G. Dezfuli
Hi all,
I made an OOT module named gr-tmo, adding some blocks and everything was ok.
But when I add another block which uses gnuradio filter (from
fir_filter.h), the whole module stops working
and even removing the faulty block using gr_modtool doesn't help, which
makes me start the whole module
from the beginning!!!
versions are: GR 3.10.6, ubuntu 22.04
thanks


Performance Counters

2023-06-12 Thread Luke Berndt
I am trying to enable Performance Counters so I can watch the buffer size of 
various blocks in a C++ GNU Radio program. Is there anyway to check/verify 
whether Performance Counters were enabled during compile time? Is it still the 
case that they are off for apt-get packages for Ubuntu?

I have built a compiled from source GNU Radio Docker container. It is the 
current Main branch on Ubuntu 22.04. Thrift is installed and being found by 
cmake. I added '-DENABLE_PERFORMANCE_COUNTERS=True' to the Cmake call and 
turned everything on in the gnuradio-runtime.conf file. I also hard coded the 
thrift port to 9090 and port mapped out of the container. When I run 
gr-ctrlport-monitor I am able to info coming from the program running inside 
the container, like the edges. However, when I run gr-perf-monitorx I get the 
following:

ControlPort failed to connect. Check the config of your endpoint.
[ControlPort] on = True
[ControlPort] edges_list = True
[PerfCounters] on = True
[PerfCounters] export = True


Are there some additional steps I need to take to enable Performance Counters?

During compilation, I noticed this message, but I think it is in reference to 
the clock:

#8 5.302 -- Performing Test HAVE_MACH_ABSOLUTE_TIME
#8 5.337 -- Performing Test HAVE_MACH_ABSOLUTE_TIME - Failed
#8 5.337 -- Performing Test HAVE_QUERY_PERFORMANCE_COUNTER
#8 5.373 -- Performing Test HAVE_QUERY_PERFORMANCE_COUNTER - Failed
#8 5.374 --   High resolution timing supported through clock_gettime.