[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Link error in compilation of sample programs in /uhd/
From: |
中城 智之 |
Subject: |
[Discuss-gnuradio] Link error in compilation of sample programs in /uhd/host/examples |
Date: |
Tue, 30 Apr 2013 12:06:28 +0900 |
Hi all,
I installed GnuRadio+UHD onto Ubuntu 12.10(64bit) and 13.04(64bit) by using
build-gnuradio script in http://www.sbrac.org/files/build-gnuradio. No error
message had been displayed in the installation. But a following link error
message is shown when I compile sample c++ programs in /uhd/host/examples.
******** error message ***********
>Scanning dependencies of target benchmark_rate
>[ 5%] Building CXX object CMakeFiles/benchmark_rate.dir/benchmark_rate.cpp.o
>Linking CXX executable benchmark_rate
>/usr/bin/ld: CMakeFiles/benchmark_rate.dir/benchmark_rate.cpp.o: undefined
reference to symbol >'_ZTVN5boost6detail16thread_data_baseE'
>/usr/bin/ld: note: '_ZTVN5boost6detail16thread_data_baseE' is defined in
DSO /usr/lib/libboost_thread.so.1.49.0 >so try adding it to the linker command
line
>/usr/lib/libboost_thread.so.1.49.0: could not read symbols: Invalid operation
>collect2: error: ld returned 1 exit status
>make[2]: *** [benchmark_rate] Error 1
>make[1]: *** [CMakeFiles/benchmark_rate.dir/all] Error 2
>make: *** [all] Error 2
*******************************
The compile procedure I use is following:
$ mkdir /uhd/host/examples/build
$ cd /uhd/host/examples/build
$ cmake ../
$ make
"ldconfig -p | grep boost_thread" returns
libboost_thread.so.1.49.0 (libc6,x86-64) => /usr/lib/libboost_thread.so.1.49.0
libboost_thread.so (libc6,x86-64) => /usr/lib/libboost_thread.so
therefore, I think that the path to boost library is recognized by operating
system.
I would like you to inform me my mistake.
Regards,
Nakajo
- [Discuss-gnuradio] Link error in compilation of sample programs in /uhd/host/examples,
中城 智之 <=