Report compiling errors on Ubuntu 10.04

(1) tarball GNU Radio 3.2.2 has Make error with boost_1_39_0,
boost_1_40_0, boost_1_41_0, boost_1_43_0 with or without
–prefix=/opt/boost_1_4*_0 (where boost is installed)

/bin/bash …/…/…/libtool --tag=CXX --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread -o test_usrp_standard_tx
test_usrp_standard_tx.o time_stuff.o
/home/titan1/Downloads/gnuradio-3.2.2/usrp/host/lib/legacy/libusrp.la
http://libusrp.la -L/opt/boost_1_41_0/lib -lboost_program_options
libtool: link: g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o
.libs/test_usrp_standard_tx test_usrp_standard_tx.o time_stuff.o
/home/titan1/Downloads/gnuradio-3.2.2/usrp/host/lib/legacy/.libs/libusrp.so
-L/opt/boost_1_41_0/lib /usr/lib/libusb.so -lboost_thread -lrt
-lboost_program_options -pthread
test_usrp_standard_tx.o: In function main': /home/titan1/Downloads/gnuradio-3.2.2/usrp/host/apps/test_usrp_standard_tx.cc:186: undefined reference to boost::program_options::options_description::options_description(std::basic_string<char,
std::char_traits, std::allocator > const&, unsigned int,
unsigned int)’
test_usrp_standard_tx.o: In function get_single_string<char>': /usr/local/include/boost/program_options/detail/value_semantic.hpp:58: undefined reference to boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t,
std::basic_string<char, std::char_traits, std::allocator >
const&, std::basic_string<char, std::char_traits,
std::allocator > const&)’
/usr/local/include/boost/program_options/detail/value_semantic.hpp:62:
undefined reference to
`boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t,
std::basic_string<char, std::char_traits, std::allocator >
const&, std::basic_string<char, std::char_traits,
std::allocator > const&)’
collect2: ld returned 1 exit status
make[4]: *** [test_usrp_standard_tx] Error 1

(3) GNU Radio 3.3 release has Make error with boost_1_43_0, save as the
above undefined reference errors about boost::program_options:

/home/titan1/Downloads/gnuradio-3.2.2/usrp/host/apps/test_usrp_standard_tx.cc:186:
undefined reference to
`boost::program_options::options_description::options_description(std::basic_string<char,
std::char_traits, std::allocator > const&, unsigned int,
unsigned int)’

Forgot to add that it was on out-of-box HP laptops.

Andrew

Eric,

Thanks for pointing out this. Now I am able to install GNU Radio 3.3 on
Ubuntu 10.04. I have tested some functions without USRP and they work.

Andrew

On Tue, May 18, 2010 at 10:40:40AM -0400, Andrew Ge wrote:

(1) tarball GNU Radio 3.2.2 has Make error with boost_1_39_0,
boost_1_40_0, boost_1_41_0, boost_1_43_0 with or without
–prefix=/opt/boost_1_4*_0 (where boost is installed)

Andrew,

You shouldn’t need to use any special build of boost on 10.04, just
use synaptic to install libboost-all-dev, then configure GNU Radio
again without giving any boost related flags to configure.

See entry for Lucid (10.04):

http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall

Eric