Dear all,
I’m installing GNU Radio 3.7.3 on Ubuntu 14.04. When I run “make”, I got
this error:
[ 86%] Built target gnuradio-uhd
/usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
boost::re_detail::get_mem_block()' /usr/local/lib/libuhd.so: undefined reference to /usr/local/lib/libuhd.so: undefined reference to /usr/local/lib/libuhd.so: undefined reference to
boost::re_detail::raise_runtime_error(std::runtime_error const&)’
/usr/local/lib/libuhd.so: undefined reference to
`boost::filesystem3::path::parent_path() const’
collect2: error: ld returned 1 exit status
make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
make: *** [all] Error 2
The version of libboost I installed is 1.54. However, it seems like the
GNU
Radio installer tried to use libboost1.46. I did run:
cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio-3.7.3 -DENABLE_BAD_BOOST=True
…/
but that error still happened.
Could someone show me how to fix this?
Thanks,
Hoang
Are you using Pybombs? Also, do you have several boost versions
installed? Where are they?
M
-
I do not use Pybombs.
-
To install libboost, I just ran:
sudo apt-get install libboost-all-dev.
By default, it get and install the latest of libboost (1.54).
To check the version of libboost, I ran: dpkg -s libboost-dev | grep
‘Version’, and
get:
Version: 1.54.0.1ubuntu
I do not understand why the GNU Radio installer call the libboost1.46.
Hoang
Hoang Ngo-KhacVietnam National University, Hanoi (VNU-H) - Univ. of
Engineering and Technology (UET)Faculty of Electronics and
Telecommunications (FET)Alternative email: [email protected],
[email protected]: +84.163.682.7874
The CMake process may have its faults, but it won’t randomly decide to
use a boost version not installed. Make sure there really is no boost
4.6 anywhere on your machine, and clear out the build dir.
M
On 07/22/2014 01:19 PM, Sylvain M. wrote:
Looks to me it’s not even gnuradio, but UHD.
“/usr/local/lib/libuhd.so” seems to be linked agains that version. I’m
not sure where you got that libuhd from but it seems to use a
different boost version than what you have now.
Thanks, Sylvain,
that’s something I missed in the OPs question.
This error message is actually something you’ll see if you installed GR
- UHD on 13.10, then upgraded to 14.04 and then re-installed GR without
first re-building UHD.
M
Looks to me it’s not even gnuradio, but UHD.
“/usr/local/lib/libuhd.so” seems to be linked agains that version. I’m
not sure where you got that libuhd from but it seems to use a
different boost version than what you have now.
Cheers,
Sylvain