discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Problem linking volk gnuradio3.7.4


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Problem linking volk gnuradio3.7.4
Date: Sun, 24 Aug 2014 12:36:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Stefano,

you sent the same mail *four* times, which is not really increasing the
likelihood of it being answered. Please have a little patience; it's
weekend, and many of the experts reading this mailing list are enjoying
that :)

Anyway, this is a linker error, and it's a little hard to guess what
goes wrong. Just a few hints:
- Make sure there is only one version of boost installed on your system,
and that the version of boost headers in /usr/include match the version
of the library installed to /usr/lib
- If you're using the same build folder as for 3.7.3, try make clean &&
make (Protip: install ccache / ccache-swig first!), and if that doesn't
help, rm -r build && mkdir build && cd build && cmake .. && make

Basically, what goes wrong is that your compiler thinks it can use a
function from the boost library, but your linker doesn't find it, which
usually doesn't happen.

Greetings,
Marcus

On 24.08.2014 08:49, Stefano Banti wrote:
> Hi all, I have gnuradio-3.7.3 working fine with boost-1.50 on ubuntu
> 12.04, and I'm using USRP B200 with uhd3.7, all built from source.
> Now I'm moving to gnuradio-3.7.4, but I got the following error
> linking volk, at the moment I don't understand this. The same happens
> trying to link to boost-1.55.
>
> Any help is highly appreciated, thanks !
>
> Stefano
>
> Linking CXX executable volk-config-info
> CMakeFiles/volk-config-info.dir/volk-config-info.cc.o: In function
> `boost::program_options::basic_parsed_options<char>
> boost::program_options::parse_command_line<char>(int, char const*
> const*, boost::program_options::options_description const&, int,
> boost::function1<std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> >, std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&>)':
> volk-config-info.cc:(.text._ZN5boost15program_options18parse_command_lineIcEENS0_20basic_parsed_optionsIT_EEiPKPKS3_RKNS0_19options_descriptionEiNS_9function1ISt4pairISsSsERKSsEE[boost::program_options::basic_parsed_options<char>
> boost::program_options::parse_command_line<char>(int, char const*
> const*, boost::program_options::options_description const&, int,
> boost::function1<std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> >, std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&>)]+0x486): undefined reference to
> `boost::program_options::detail::cmdline::get_canonical_option_prefix()'
> collect2: ld returned 1 exit status
> make[2]: *** [volk/apps/volk-config-info] Errore 1
> make[1]: *** [volk/apps/CMakeFiles/volk-config-info.dir/all] Errore 2
> make: *** [all] Errore 2
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]