RangeNetworks / OpenBTS-UMTS

3G UMTS Data Radio Access Network Node
GNU Affero General Public License v3.0
297 stars 196 forks source link

UHDDevice.h:78:7: error: ‘tx_streamer’ in namespace ‘uhd’ does not name a type Please Help #31

Open muratoznn opened 5 years ago

muratoznn commented 5 years ago
Making all in TransceiverUHD
make[2]: Entering directory '/root/OpenBTS-UMTS/TransceiverUHD'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++-5 -DHAVE_CONFIG_H -I. -I..  -Wall -D'REPO_REV="d528034ac8 CommonLibs:d528034ac8"' -I../CommonLibs -I../Control -I../GSM -I../UMTS -I../SGSNGGSN -I../ASN/o -I../SIP -I../SMS -I../TRXManager -I../Globals -I../CLI -I../NodeManager -I../NodeManager/JsonBox-0.4.3/include   -Wall -g -O3 -Wall -pthread -ldl -DTIMESTAMP_ISO=`date +'"%Y-%m-%dT%H:%M:%S"'`   -MT libumtstransceiver_la-UHDDevice.lo -MD -MP -MF .deps/libumtstransceiver_la-UHDDevice.Tpo -c -o libumtstransceiver_la-UHDDevice.lo `test -f 'UHDDevice.cpp' || echo './'`UHDDevice.cpp
libtool: compile:  g++-5 -DHAVE_CONFIG_H -I. -I.. -Wall "-DREPO_REV=\"d528034ac8 CommonLibs:d528034ac8\"" -I../CommonLibs -I../Control -I../GSM -I../UMTS -I../SGSNGGSN -I../ASN/o -I../SIP -I../SMS -I../TRXManager -I../Globals -I../CLI -I../NodeManager -I../NodeManager/JsonBox-0.4.3/include -Wall -g -O3 -Wall -pthread -ldl -DTIMESTAMP_ISO=\"2019-08-19T04:26:02\" -MT libumtstransceiver_la-UHDDevice.lo -MD -MP -MF .deps/libumtstransceiver_la-UHDDevice.Tpo -c UHDDevice.cpp  -fPIC -DPIC -o .libs/libumtstransceiver_la-UHDDevice.o
In file included from UHDDevice.cpp:30:0:
UHDDevice.h:78:7: error: tx_streamer’ in namespace ‘uhd’ does not name a type
  uhd::tx_streamer::sptr tx_stream;
       ^
UHDDevice.h:79:7: error: rx_streamer’ in namespace ‘uhd’ does not name a type
  uhd::rx_streamer::sptr rx_stream;
       ^
UHDDevice.cpp: In member function ‘bool UHDDevice::parse_dev_type()’:
UHDDevice.cpp:264:38: error: class uhd::device’ has no member named ‘get_tree’
  prop_tree = usrp_dev->get_device()->get_tree();
                                      ^
UHDDevice.cpp: In member function ‘bool UHDDevice::open(const string&, bool)’:
UHDDevice.cpp:322:13: error: class uhd::usrp::multi_usrp’ has no member named ‘set_clock_source’
   usrp_dev->set_clock_source("external");
             ^
UHDDevice.cpp:325:2: error: stream_args_t’ is not a member of ‘uhd’
  uhd::stream_args_t stream_args("sc16");
  ^
UHDDevice.cpp:326:2: error: tx_stream’ was not declared in this scope
  tx_stream = usrp_dev->get_tx_stream(stream_args);
  ^
UHDDevice.cpp:326:24: error: class uhd::usrp::multi_usrp’ has no member named ‘get_tx_stream’
  tx_stream = usrp_dev->get_tx_stream(stream_args);
                        ^
UHDDevice.cpp:326:38: error: stream_args’ was not declared in this scope
  tx_stream = usrp_dev->get_tx_stream(stream_args);
                                      ^
UHDDevice.cpp:327:2: error: rx_stream’ was not declared in this scope
  rx_stream = usrp_dev->get_rx_stream(stream_args);
  ^
UHDDevice.cpp:327:24: error: class uhd::usrp::multi_usrp’ has no member named ‘get_rx_stream’
  rx_stream = usrp_dev->get_rx_stream(stream_args);
                        ^
UHDDevice.cpp: In member function ‘bool UHDDevice::flush_recv(size_t)’:
UHDDevice.cpp:365:15: error: rx_stream’ was not declared in this scope
   num_smpls = rx_stream->recv(pkt_ptrs, rx_spp, md,
               ^
UHDDevice.cpp:377:29: error: class uhd::time_spec_t’ has no member named ‘to_ticks’
   ts_initial = md.time_spec.to_ticks(rx_rate);
                             ^
UHDDevice.cpp: In member function ‘int UHDDevice::check_rx_md_err(uhd::rx_metadata_t&, ssize_t)’:
UHDDevice.cpp:490:20: error: class uhd::time_spec_t’ has no member named ‘to_ticks’
  ts = md.time_spec.to_ticks(rx_rate);
                    ^
UHDDevice.cpp: In member function ‘virtual int UHDDevice::readSamples(short int*, int, bool*, long long int, bool*, unsigned int*)’:
UHDDevice.cpp:519:13: error: from_ticks’ is not a member of ‘uhd::time_spec_t’
  timespec = uhd::time_spec_t::from_ticks(timestamp, rx_rate);
             ^
UHDDevice.cpp:533:22: error: rx_stream’ was not declared in this scope
   size_t num_smpls = rx_stream->recv(
                      ^
UHDDevice.cpp:557:53: error: class uhd::time_spec_t’ has no member named ‘to_ticks’
   LOG(DEBUG) << "Received timestamp = " << timespec.to_ticks(rx_rate);
                                                     ^
UHDDevice.cpp: In member function ‘virtual int UHDDevice::writeSamples(short int*, int, bool*, long long int)’:
UHDDevice.cpp:590:23: error: from_ticks’ is not a member of ‘uhd::time_spec_t’
  metadata.time_spec = uhd::time_spec_t::from_ticks(ts, tx_rate);
                       ^
UHDDevice.cpp:614:21: error: tx_stream’ was not declared in this scope
  size_t num_smpls = tx_stream->send(buf, len, metadata);
                     ^
UHDDevice.cpp: In member function ‘bool UHDDevice::recv_async_msg()’:
UHDDevice.cpp:647:12: error: tx_stream’ was not declared in this scope
  bool rc = tx_stream->recv_async_msg(md, 0.1);
            ^
make[2]: *** [Makefile:643: libumtstransceiver_la-UHDDevice.lo] Error 1
make[2]: Leaving directory '/root/OpenBTS-UMTS/TransceiverUHD'
make[1]: *** [Makefile:550: all-recursive] Error 1
make[1]: Leaving directory '/root/OpenBTS-UMTS'
make: *** [Makefile:481: all] Error 2

Why I can not configure please help to me ?

sherdil6 commented 1 year ago

This error can be resolved by applying given changes: https://github.com/RangeNetworks/OpenBTS-UMTS/pull/51/commits/9534de09733d55618a982a25a93ae21120fc06c4