[srslte-users] Linking errors with UHD
David Rupprecht
david.rupprecht at rub.de
Thu May 19 09:32:39 UTC 2016
Dear all,
I get some linking UHD linking errors. I have installed UHD with the
following commands:
sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host
and I'm on UHD version 003.009.git-189-g6b64d9bb. But somehow the
linking fails with "undefined reference to `uhd_usrp_set_tx_rate'". Does
anyone have any suggestion? I attached the log file.
Thanks and best regards,
David
--
M.Sc. David Rupprecht
Ruhr-University Bochum
Research Group Information Security
Universitätsstrasse 150
ID 2/130
44780 Bochum / Germany
Phone: +49 234 / 32 - 23508
Web: www.infsec.rub.de
-------------- next part --------------
lab at lab:~/srslte/build$ cmake ..
-- /usr/local/lib/x86_64-linux-gnu does not exist. Defaulting install location to /usr/local/lib.
-- Build type not specified: defaulting to Release.
-- SSE4.1 is enabled - target CPU must support it
-- AVX is enabled - target CPU must support it
-- Using install prefix: /usr/local
-- Building for version: 001.002.000
-- UHD LIBRARIES /usr/local/lib/libuhd.so
-- UHD INCLUDE DIRS /usr/include
-- Compiling with VOLK SIMD library.
-- SRSGUI LIBRARIES /usr/local/lib/libsrsgui.so
-- SRSGUI INCLUDE DIRS /usr/local/include
-- examples will be installed.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lab/srslte/build
lab at lab:~/srslte/build$ make
[ 4%] Built target srslte_ue
[ 4%] Built target srslte_agc
[ 7%] Built target srslte_ch_estimation
[ 9%] Built target srslte_common
[ 21%] Built target srslte_fec
[ 23%] Built target srslte_mimo
[ 35%] Built target srslte_phch
[ 38%] Built target srslte_rf
[ 44%] Built target srslte_sync
[ 48%] Built target srslte_utils
[ 49%] Built target srslte_channel
[ 52%] Built target srslte_dft
[ 55%] Built target srslte_io
[ 59%] Built target srslte_modem
[ 62%] Built target srslte_resampling
[ 63%] Built target srslte_scrambling
[ 64%] Built target srslte
Linking C executable chest_test_dl
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_tx_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_sensor_value_make_from_realnum'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_streamer_make'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_time_now'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_metadata_time_spec'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_rx_gain'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_rx_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_string_vector_free'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_streamer_recv'
../../libsrslte.so.001.002: undefined reference to `uhd_string_vector_at'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_tx_stream'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_master_clock_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_sensor_value_make_from_bool'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_mboard_sensor_names'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_tx_gain'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_find'
../../libsrslte.so.001.002: undefined reference to `uhd_tx_streamer_send'
../../libsrslte.so.001.002: undefined reference to `uhd_string_vector_size'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_tx_gain'
../../libsrslte.so.001.002: undefined reference to `uhd_tx_streamer_max_num_samps'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_freq'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_stream'
../../libsrslte.so.001.002: undefined reference to `uhd_tx_metadata_make'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_gain_range'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_tx_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_tx_streamer_make'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_metadata_make'
../../libsrslte.so.001.002: undefined reference to `uhd_set_thread_priority'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_sensor'
../../libsrslte.so.001.002: undefined reference to `uhd_sensor_value_free'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_streamer_max_num_samps'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_master_clock_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_make'
../../libsrslte.so.001.002: undefined reference to `uhd_meta_range_make'
../../libsrslte.so.001.002: undefined reference to `uhd_sensor_value_to_bool'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_rx_freq'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_rate'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_gain'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_rx_sensor_names'
../../libsrslte.so.001.002: undefined reference to `uhd_string_vector_make'
../../libsrslte.so.001.002: undefined reference to `uhd_rx_streamer_issue_stream_cmd'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_get_tx_freq'
../../libsrslte.so.001.002: undefined reference to `uhd_sensor_value_to_realnum'
../../libsrslte.so.001.002: undefined reference to `uhd_usrp_set_tx_freq'
collect2: error: ld returned 1 exit status
make[2]: *** [srslte/lib/ch_estimation/test/chest_test_dl] Error 1
make[1]: *** [srslte/lib/ch_estimation/test/CMakeFiles/chest_test_dl.dir/all] Error 2
make: *** [all] Error 2
lab at lab:~/srslte/build$
More information about the srsran-users
mailing list