문제

How do I find out the version of GNU Radio that I have installed?

I would like the use their messaging libraries, but they are available on newer versions of gnuradio only and for some reason I'm getting a compilation error when I try to use the following code:

message_port_register_out(pmt::mp("out_message"));

I get the following error on compilation:

error: ‘message_port_register_out’ was not declared in this scope

It's supposed to be part of the gr_basic_block, which all blocks inherit from, but it's not compiling.

도움이 되었습니까?

해결책

You can get the version number using python.

from gnuradio import gr
gr.version()

다른 팁

If you installed the complete package - not only the library - in a terminal window:

$ gnuradio-companion --version

GNU Radio Companion 3.7.2.1

or

$ gnuradio-config-info --version
3.7.2.1

According to the docs, message_port_register_out is a member of gr_basic_block. Based on the compilation error you have posted and the code snippet, I'd assume you need an instance to work with. It's hard to tell without more context however.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top