On 2022-07-28 14:26, k19033844--- via USRP-users wrote:
Dear All,
I use Cmake to compile uhd v4.0.0.0, I’m building uhd on a Ubuntu
16.04 lts machine. My gcc and g++ are above minimum requirement, but I
got following error.
[ 57%] Linking CXX executable rx_samples_c
[ 57%] Linking CXX executable test_dboard_coercion
[ 57%] Linking CXX executable rx_ascii_art_dft
[ 57%] Linking CXX executable test_clock_synch
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::features::discoverable_feature_registry::enumerate_features[abi:cxx11]()'
../lib/libuhd.so.4.0.0: undefined reference to
`nirio_driver_iface::rio_open(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::value_error::value_error(std::string const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::not_implemented_error::not_implemented_error(std::string const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::convert::register_bytes_per_item(std::string const&, unsigned long)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::path_expandvars(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::csv::to_rows[abi:cxx11](std::istream&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::utils::serial_numbers_match(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/rx_samples_c.dir/build.make:109: recipe for target
'examples/rx_samples_c' failed
make[2]: *** [examples/rx_samples_c] Error 1
CMakeFiles/Makefile2:956: recipe for target
'examples/CMakeFiles/rx_samples_c.dir/all' failed
make[1]: *** [examples/CMakeFiles/rx_samples_c.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::features::discoverable_feature_registry::enumerate_features[abi:cxx11]()'
../lib/libuhd.so.4.0.0: undefined reference to
`nirio_driver_iface::rio_open(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::value_error::value_error(std::string const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::not_implemented_error::not_implemented_error(std::string const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::convert::register_bytes_per_item(std::string const&, unsigned long)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::path_expandvars(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::csv::to_rows[abi:cxx11](std::istream&)'
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::utils::serial_numbers_match(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/test_dboard_coercion.dir/build.make:108: recipe
for target 'examples/test_dboard_coercion' failed
make[2]: *** [examples/test_dboard_coercion] Error 1
CMakeFiles/Makefile2:1037: recipe for target
'examples/CMakeFiles/test_dboard_coercion.dir/all' failed
make[1]: *** [examples/CMakeFiles/test_dboard_coercion.dir/all] Error 2
../lib/libuhd.so.4.0.0: undefined reference to
`uhd::features::.discoverable_feature_registry:.:/enumerate_featureslib[/abilibuhd.so.4.0.0::cxx11
]undefined( )reference'
to. .`/uhdlib:/:libuhd.so.4.0.0features::
:undefineddiscoverable_feature_registry :reference:
enumerate_featuresto[ abi`:nirio_driver_ifacecxx11:]:(rio_open)('std
:.:.__cxx11/:lib:/basic_stringlibuhd.so.4.0.0<:char ,undefined
stdreference: :tochar_traits <`charnirio_driver_iface>:,:
rio_openstd(:std::allocator:<__cxx11char:>: basic_string>< charconst,&
,std :int:&char_traits)<'char
>.,. /stdlib:/:libuhd.so.4.0.0allocator:< charundefined> reference>
toconst &`,uhd :int:&value_error):':
value_error.(.std/:lib:/stringlibuhd.so.4.0.0 :const &undefined)
'reference
.to. /`libuhd/:libuhd.so.4.0.0::value_error :undefined:
value_errorreference( stdto: :`stringuhd :const:¬_implemented_error):':
not_implemented_error.(.std/:lib:/stringlibuhd.so.4.0.0 :const
&undefined) 'reference
.to. /`libuhd/:libuhd.so.4.0.0::not_implemented_error :undefined:
not_implemented_errorreference( stdto: :`stringuhd :const:&convert):':
register_bytes_per_item.(.std/:lib:/stringlibuhd.so.4.0.0 :const
&undefined, referenceunsigned tolong )`'uhd
:.:.convert/:lib:/register_bytes_per_item(libuhd.so.4.0.0std::
:undefinedstring referenceconst &to, `unsigneduhd :long:)path_expandvars'(
std.:.:/__cxx11lib:/:libuhd.so.4.0.0basic_string:< charundefined,
referencestd :to: char_traits`<uhdchar:>:,path_expandvars
(stdstd::::allocator__cxx11<:char:>basic_string <>char ,const &std):':
char_traits.<.char/>lib,/ libuhd.so.4.0.0std:: :undefinedallocator
<referencechar >to >` uhdconst:&:)csv':
:.to_rows.[/abilib:/cxx11libuhd.so.4.0.0]:( stdundefined:
:referenceistream &to) '`
uhd.:.:/csvlib:/:libuhd.so.4.0.0to_rows:[ abiundefined:
cxx11reference] (tostd :`:uhdistream:&:)utils':
:.serial_numbers_match.(/stdlib:/:libuhd.so.4.0.0__cxx11::
:undefinedbasic_string <referencechar ,to
std`:uhd::char_traits:<utilschar:>:,serial_numbers_match
(stdstd::::allocator__cxx11<:char:>basic_string <>char ,const &std,:
:stdchar_traits:<:char__cxx11>:,: basic_stringstd<:char:,allocator
<stdchar:>: char_traits>< charconst>&,,
stdstd::::allocator__cxx11<:char:>basic_string <>char ,const &std):':
char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
examples/CMakeFiles/test_clock_synch.dir/build.make:108: recipe for
target 'examples/test_clock_synch' failed
examples/CMakeFiles/rx_ascii_art_dft.dir/build.make:110: recipe for
target 'examples/rx_ascii_art_dft' failed
make[2]: *** [examples/test_clock_synch] Error 1
make[2]: *** [examples/rx_ascii_art_dft] Error 1
CMakeFiles/Makefile2:983: recipe for target
'examples/CMakeFiles/rx_ascii_art_dft.dir/all' failed
make[1]: *** [examples/CMakeFiles/rx_ascii_art_dft.dir/all] Error 2
CMakeFiles/Makefile2:1010: recipe for target
'examples/CMakeFiles/test_clock_synch.dir/all' failed
make[1]: *** [examples/CMakeFiles/test_clock_synch.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2
Can any one help me solve this issue?
Thank you so much.
Regards,
Guang
I'll note that Ubuntu 16.04 is *YEARS* out-of-date, and it's unlikely
that any recent UHD has been tested to build on such an obsolete version
of Ubuntu.
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com