Re: [Discuss-gnuradio] Gnuradio3.7 make error
I havent seen this before, but you might try explicitly linking the tags demo against boost libraries, like so: diff --git a/gr-uhd/examples/c++/CMakeLists.txt b/gr-uhd/examples/c++/CMakeLists.txt index 655ef0c..18f6839 100644 --- a/gr-uhd/examples/c++/CMakeLists.txt +++ b/gr-uhd/examples/c++/CMakeLists.txt @@ -35,7 +35,7 @@ link_directories(${Boost_LIBRARY_DIRS}) # Build executable add_executable(tags_demo tags_demo.cc) -target_link_libraries(tags_demo gnuradio-uhd) +target_link_libraries(tags_demo gnuradio-uhd ${Boost_LIBRARIES}) INSTALL(TARGETS tags_demo Let us know if that helps. thanks -josh On 07/29/2013 10:44 PM, Harry Zhang wrote: > Hi, > I'm using Ubuntu 12.04 and libboost1.46. I got the following errors > when I make the project. > > [ 85%] Building CXX object > gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/tags_demo.cc.o > Linking CXX executable tags_demo > /usr/bin/ld: warning: libboost_date_time.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_filesystem.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_program_options.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_regex.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_system.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_thread.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/bin/ld: warning: libboost_unit_test_framework.so.1.40.0, needed by > /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::dir_itr_increment(void*&, void*&, > std::basic_string, std::allocator >&, > boost::filesystem::file_status&, boost::filesystem::file_status&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::thread_resource_error::thread_resource_error()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::dir_itr_close(void*&, void*&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::lock_error::lock_error()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::dir_itr_first(void*&, void*&, > std::basic_string, std::allocator > > const&, std::basic_string, > std::allocator >&, boost::filesystem::file_status&, > boost::filesystem::file_status&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::get_current_path_api(std::basic_string std::char_traits, std::allocator >&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::get_mem_block()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::not_found_error()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)' > > /usr/local/lib/libuhd.so: undefined reference to > `boost::system::get_generic_category()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::system::get_system_category()' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::put_mem_block(void*)' > /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::re_detail::cpp_regex_traits_implementation::transform_primary(char > const*, char const*) const' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::perl_matcher std::allocator >, > boost::regex_traits > >>::construct_init(boost::basic_regex boost::cpp_regex_traits > > const&, > boost::regex_constants::_match_flags)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::filesystem::detail::status_api(std::basic_string std::char_traits, std::allocator > const&, > boost::system::error_code&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::cpp_regex_traits_implementation::transform(char > const*, char const*) const' > /usr/local/lib/libuhd.so: undefined reference to > `boost::match_results const*> > >::maybe_assign(boost::match_results std::allocator > > const&)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::re_detail::verify_options(unsigned int, > boost::regex_constants::_match_flags)' > /usr/local/lib/libuhd.so: undefined reference to > `boost::basic_regex boost::cpp_regex_traits > >::do_assign(char const*, char const*, > unsigned int)' > collect2: 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 > > > _
Re: [Discuss-gnuradio] Gnuradio3.7 make error
Its finding 1.40 headers somewhere on your system. Tim Sent on the Sprint® Now Network from my BlackBerry® -Original Message- From: Harry Zhang Sender: discuss-gnuradio-bounces+tim.newman=gmail.com@gnu.orgDate: Tue, 30 Jul 2013 19:23:47 To: Nathan West Cc: Subject: Re: [Discuss-gnuradio] Gnuradio3.7 make error Dear Nathan, Thank you for your reply. I have changed the boost to 1.48 but the error remains. According to the error information, it seems to require libboost1.40,which puzzles me. 2013/7/30 12:12, Nathan West wrote: > On Mon, Jul 29, 2013 at 11:55 PM, Gong Zhang wrote: >> Dear Nathan, >> I have tried the method in the URL but it does not work. The error >> remains. >> >> 2013/7/30 10:58, Nathan West wrote: >>> On Mon, Jul 29, 2013 at 10:44 PM, Harry Zhang wrote: >>>> Hi, >>>> I'm using Ubuntu 12.04 and libboost1.46. I got the following errors >>>> when >>>> I make the project. >>>> >>> libboost1.46 is known to cause problems with GNU Radio. Ubuntu 12.04 >>> should have libboost1.48 available in the repos. Here's some more >>> info: >>> http://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00267.html >>> > What do you mean you tried the method in the URL? The cmake flag? The > point of sending that link is the version of boost you have is known > to cause problems with GNU Radio and unless you have a very good > reason for using it you should use another version. If you're having > trouble installing GNU Radio for the first time you might give pybombs > a shot. It's pretty easy to get an installation going for the first > time, especially if you're having a problem with dependencies like > boost. > > Here's info on pybombs: http://gnuradio.org/redmine/projects/pybombs/wiki > > Nathan > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Gnuradio3.7 make error
Dear Nathan, Thank you for your reply. I have changed the boost to 1.48 but the error remains. According to the error information, it seems to require libboost1.40,which puzzles me. 2013/7/30 12:12, Nathan West wrote: On Mon, Jul 29, 2013 at 11:55 PM, Gong Zhang wrote: Dear Nathan, I have tried the method in the URL but it does not work. The error remains. 2013/7/30 10:58, Nathan West wrote: On Mon, Jul 29, 2013 at 10:44 PM, Harry Zhang wrote: Hi, I'm using Ubuntu 12.04 and libboost1.46. I got the following errors when I make the project. libboost1.46 is known to cause problems with GNU Radio. Ubuntu 12.04 should have libboost1.48 available in the repos. Here's some more info: http://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00267.html What do you mean you tried the method in the URL? The cmake flag? The point of sending that link is the version of boost you have is known to cause problems with GNU Radio and unless you have a very good reason for using it you should use another version. If you're having trouble installing GNU Radio for the first time you might give pybombs a shot. It's pretty easy to get an installation going for the first time, especially if you're having a problem with dependencies like boost. Here's info on pybombs: http://gnuradio.org/redmine/projects/pybombs/wiki Nathan ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Gnuradio3.7 make error
On Mon, Jul 29, 2013 at 11:55 PM, Gong Zhang wrote: > Dear Nathan, > I have tried the method in the URL but it does not work. The error > remains. > > 2013/7/30 10:58, Nathan West wrote: >> >> On Mon, Jul 29, 2013 at 10:44 PM, Harry Zhang wrote: >>> >>> Hi, >>> I'm using Ubuntu 12.04 and libboost1.46. I got the following errors >>> when >>> I make the project. >>> >> libboost1.46 is known to cause problems with GNU Radio. Ubuntu 12.04 >> should have libboost1.48 available in the repos. Here's some more >> info: >> http://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00267.html >> > What do you mean you tried the method in the URL? The cmake flag? The point of sending that link is the version of boost you have is known to cause problems with GNU Radio and unless you have a very good reason for using it you should use another version. If you're having trouble installing GNU Radio for the first time you might give pybombs a shot. It's pretty easy to get an installation going for the first time, especially if you're having a problem with dependencies like boost. Here's info on pybombs: http://gnuradio.org/redmine/projects/pybombs/wiki Nathan ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Gnuradio3.7 make error
Dear Nathan, I have tried the method in the URL but it does not work. The error remains. 2013/7/30 10:58, Nathan West wrote: On Mon, Jul 29, 2013 at 10:44 PM, Harry Zhang wrote: Hi, I'm using Ubuntu 12.04 and libboost1.46. I got the following errors when I make the project. libboost1.46 is known to cause problems with GNU Radio. Ubuntu 12.04 should have libboost1.48 available in the repos. Here's some more info: http://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00267.html ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Gnuradio3.7 make error
On Mon, Jul 29, 2013 at 10:44 PM, Harry Zhang wrote: > Hi, > I'm using Ubuntu 12.04 and libboost1.46. I got the following errors when > I make the project. > libboost1.46 is known to cause problems with GNU Radio. Ubuntu 12.04 should have libboost1.48 available in the repos. Here's some more info: http://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00267.html ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Gnuradio3.7 make error
Hi, I'm using Ubuntu 12.04 and libboost1.46. I got the following errors when I make the project. [ 85%] Building CXX object gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/tags_demo.cc.o Linking CXX executable tags_demo /usr/bin/ld: warning: libboost_date_time.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_filesystem.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_program_options.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_regex.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_system.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_thread.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libboost_unit_test_framework.so.1.40.0, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::dir_itr_increment(void*&, void*&, std::basic_string, std::allocator >&, boost::filesystem::file_status&, boost::filesystem::file_status&)' /usr/local/lib/libuhd.so: undefined reference to `boost::thread_resource_error::thread_resource_error()' /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)' /usr/local/lib/libuhd.so: undefined reference to `boost::lock_error::lock_error()' /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::dir_itr_first(void*&, void*&, std::basic_string, std::allocator > const&, std::basic_string, std::allocator >&, boost::filesystem::file_status&, boost::filesystem::file_status&)' /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::get_current_path_api(std::basic_stringstd::char_traits, std::allocator >&)' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::get_mem_block()' /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::not_found_error()' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)' /usr/local/lib/libuhd.so: undefined reference to `boost::system::get_generic_category()' /usr/local/lib/libuhd.so: undefined reference to `boost::system::get_system_category()' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::put_mem_block(void*)' /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::re_detail::cpp_regex_traits_implementation::transform_primary(char const*, char const*) const' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::perl_matcherstd::allocator >, boost::regex_traits > >::construct_init(boost::basic_regexboost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)' /usr/local/lib/libuhd.so: undefined reference to `boost::filesystem::detail::status_api(std::basic_stringstd::char_traits, std::allocator > const&, boost::system::error_code&)' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::cpp_regex_traits_implementation::transform(char const*, char const*) const' /usr/local/lib/libuhd.so: undefined reference to `boost::match_resultsconst*> > >::maybe_assign(boost::match_resultsstd::allocator > > const&)' /usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)' /usr/local/lib/libuhd.so: undefined reference to `boost::basic_regexboost::cpp_regex_traits > >::do_assign(char const*, char const*, unsigned int)' collect2: 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 ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio