Hi,
I try to use the gmr1_rach_scan flowgraph, but did not succeed.
I am always getting this error:
Traceback (most recent call last): File "/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/apps/gmr1_rach_scan.py", line 22, in <module> from gnuradio import gmr1 ImportError: cannot import name gmr1
Anyone can help me how to compile and install correctly the needed blocks for the flowgraph?
Thank you.
I try to use the gmr1_rach_scan flowgraph, but did not succeed.
I am always getting this error:
Traceback (most recent call last): File "/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/apps/gmr1_rach_scan.py", line 22, in <module> from gnuradio import gmr1 ImportError: cannot import name gmr1
The block is in the gr-gmr1 repo .. you build it with cmake like any other GR OOT.
Although I don't think I ever ported it to gnuradio 3.8 so it might need adaptation for that. Also it doesn't support mixed prefix install so you need to install it in the same prefix as your gnuradio.
Cheers,
Sylvain
Thank you!
Am Do., 3. Dez. 2020 um 22:22 Uhr schrieb Sylvain Munaut 246tnt@gmail.com:
I try to use the gmr1_rach_scan flowgraph, but did not succeed.
I am always getting this error:
Traceback (most recent call last): File
"/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/apps/gmr1_rach_scan.py", line 22, in <module>
from gnuradio import gmr1ImportError: cannot import name gmr1
The block is in the gr-gmr1 repo .. you build it with cmake like any other GR OOT.
Although I don't think I ever ported it to gnuradio 3.8 so it might need adaptation for that. Also it doesn't support mixed prefix install so you need to install it in the same prefix as your gnuradio.
Cheers,
Sylvain
I am using gnuradio 3.7, the build process stops with the following error, and i really don't know why, would be nice, if you, or anyone else can help me. Thank you!
[ 42%] Building C object lib/CMakeFiles/gnuradio-gmr1.dir/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/src/l1/tch3.c.o [ 44%] Building C object lib/CMakeFiles/gnuradio-gmr1.dir/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/src/l1/tch9.c.o [ 47%] Building C object lib/CMakeFiles/gnuradio-gmr1.dir/home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/src/gsmtap.c.o [ 50%] Building CXX object lib/CMakeFiles/gnuradio-gmr1.dir/burst_to_tagged_stream_impl.cc.o [ 52%] Building CXX object lib/CMakeFiles/gnuradio-gmr1.dir/gsmtap_sink_impl.cc.o /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc: In constructor ‘gr::gmr1::gsmtap_sink_impl::gsmtap_sink_impl(const string&, uint16_t)’: /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc:58:27: error: ‘PDU_PORT_ID’ was not declared in this scope message_port_register_in(PDU_PORT_ID); ^~~~~~~~~~~ /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc: In member function ‘void gr::gmr1::gsmtap_sink_impl::send_pdu(pmt::pmt_t)’: /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc:94:2: error: invalid conversion from ‘const uint8_t* {aka const unsigned char*}’ to ‘uint8_t {aka unsigned char}’ [-fpermissive] )); ^ /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc:94:2: error: invalid conversion from ‘size_t {aka long unsigned int}’ to ‘const uint8_t* {aka const unsigned char*}’ [-fpermissive] /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc:94:2: error: too few arguments to function ‘msgb* gmr1_gsmtap_makemsg(uint8_t, uint16_t, uint32_t, uint8_t, const uint8_t*, int)’ In file included from /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/lib/gsmtap_sink_impl.cc:34:0: /home/peter/Radio/Thuraya/sylvain-gr/osmo-gmr/gr-gmr1/../include/osmocom/gmr1/gsmtap.h:36:14: note: declared here struct msgb *gmr1_gsmtap_makemsg( ^~~~~~~~~~~~~~~~~~~ lib/CMakeFiles/gnuradio-gmr1.dir/build.make:309: recipe for target 'lib/CMakeFiles/gnuradio-gmr1.dir/gsmtap_sink_impl.cc.o' failed make[2]: *** [lib/CMakeFiles/gnuradio-gmr1.dir/gsmtap_sink_impl.cc.o] Error 1 CMakeFiles/Makefile2:254: recipe for target 'lib/CMakeFiles/gnuradio-gmr1.dir/all' failed make[1]: *** [lib/CMakeFiles/gnuradio-gmr1.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2