The API was changed in the master branch of UHD. You need to build a
release of UHD. I've successfully built srsLTE with the v3.13.0.3-rc1
release.
git checkout v3.13.0.3-rc1
Ron
On 1/28/19 03:28, Ralph A. Schmid, dk5ras via USRP-users wrote:
Hi,
I asked this already in the srslte list, with no success. Uhd built fine and
works.And I want to add, the mentioned setup runs in my VM just fine, so
maybe some missing prerequisite the is not mentioned in the documents?
I updated an old Ubuntu 12.04 setup in steps to 18.04, headless i7 machine
with some horsepower that I want to use for srsLTE.
All went fine, srsGUI and srsLTE from sources, also latest Soapy/LimeSDR and
bladeRF stuff. A matter of not even two hours, and the machine was ready for
first use, thanks to SSD and fast internet :) Using srsenb with both SDRs
creates stable and decodable LTE signals, so far it all looks good.
However when I want to add uhd support by building it from source and then
recompiling srsLTE, I run into the error I attach at the end of the message.
As I am no coding but RF guy, I am somehow lost at the moment. Maybe one of
you out there has an idea?
Thanks and with best regards
Ralph, dk5ras.
-------------------------------------
[ 45%] Built target pbch_test
[ 46%] Built target pcfich_test
[ 46%] Built target srslte_rf_utils
[ 47%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_uhd_imp.c.o
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c: In function
‘rf_uhd_set_rx_srate’:
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:648:45: error: passing
argument 3 of ‘uhd_usrp_get_time_now’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
uhd_usrp_get_time_now(handler->usrp, 0, &full, &frac);
^ In file included from
/usr/local/include/uhd.h:25:0,
from /home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:27:
/usr/local/include/uhd/usrp/usrp.h:416:19: note: expected ‘int64_t * {aka
long long int *}’ but argument is of type ‘time_t * {aka long int *}’
UHD_API uhd_error uhd_usrp_get_time_now(
^~~~~~~~~~~~~~~~~~~~~
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c: In function
‘rf_uhd_set_tx_srate’:
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:667:45: error: passing
argument 3 of ‘uhd_usrp_get_time_now’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
uhd_usrp_get_time_now(handler->usrp, 0, &full, &frac);
^ In file included from
/usr/local/include/uhd.h:25:0,
from /home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:27:
/usr/local/include/uhd/usrp/usrp.h:416:19: note: expected ‘int64_t * {aka
long long int *}’ but argument is of type ‘time_t * {aka long int *}’
UHD_API uhd_error uhd_usrp_get_time_now(
^~~~~~~~~~~~~~~~~~~~~
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c: In function
‘rf_uhd_get_time’:
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:758:43: error: passing
argument 3 of ‘uhd_usrp_get_time_now’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
uhd_usrp_get_time_now(handler->usrp, 0, secs, frac_secs);
^~~~ In file included from
/usr/local/include/uhd.h:25:0,
from /home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:27:
/usr/local/include/uhd/usrp/usrp.h:416:19: note: expected ‘int64_t * {aka
long long int *}’ but argument is of type ‘time_t * {aka long int *}’
UHD_API uhd_error uhd_usrp_get_time_now(
^~~~~~~~~~~~~~~~~~~~~
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c: In function
‘rf_uhd_recv_with_time_multi’:
/home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:831:53: error: passing
argument 2 of ‘uhd_rx_metadata_time_spec’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
uhd_rx_metadata_time_spec(handler->rx_md_first, secs, frac_secs);
^~~~ In file included
from /usr/local/include/uhd.h:14:0,
from /home/openbts/srsLTE/lib/src/phy/rf/rf_uhd_imp.c:27:
/usr/local/include/uhd/types/metadata.h:114:19: note: expected ‘int64_t *
{aka long long int *}’ but argument is of type ‘time_t * {aka long int *}’
UHD_API uhd_error uhd_rx_metadata_time_spec(
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/build.make:86: recipe for target
'lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_uhd_imp.c.o' failed
make[2]: *** [lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_uhd_imp.c.o] Error
1
CMakeFiles/Makefile2:3020: recipe for target
'lib/src/phy/rf/CMakeFiles/srslte_rf.dir/all' failed
make[1]: *** [lib/src/phy/rf/CMakeFiles/srslte_rf.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
openbts@BTS:~/srsLTE/build$
--
Ralph A. Schmid
Mondstr. 10
90762 Fürth
+49-171-3631223
+49-911-21650056
ra...@schmid.xxx
http://www.bclog.de/
_______________________________________________
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