Ask Your Question
0

boost symbols not found

asked 2011-05-23 03:33:49 -0600

ralph gravatar image

updated 2012-02-25 13:20:49 -0600

Kevin gravatar image

Hit the following problem during install on Mac OSX 10.6:

$ rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=desktop-full&overlay=no"

...lots of output...

[ rosmake ] Last 40 linessrecord: 41.1 sec ] [ test_roswtf: 3.5 sec ]                              [ 2 Active 60/68 Complete ]
{-------------------------------------------------------------------------------
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Checking whether CXX compiler has -isysroot
  -- Checking whether CXX compiler has -isysroot - yes
  -- Checking whether CXX compiler supports OSX deployment target flag
  -- Checking whether CXX compiler supports OSX deployment target flag - yes
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  [rosbuild] Building package rosrecord
  [rosbuild] Cached build flags older than manifests; calling rospack to get flags
  [rosbuild] Including /Users/rhc/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake
  [rosbuild] Including /Users/rhc/ros/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /Users/rhc/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /Users/rhc/ros/ros_comm/tools/rosrecord/build
  cd build && make -l2
  Scanning dependencies of target rospack_genmsg_libexe
  [  0%] Built target rospack_genmsg_libexe
  Scanning dependencies of target rosbuild_precompile
  [  0%] Built target rosbuild_precompile
  Scanning dependencies of target rosplay
  [ 25%] Building CXX object CMakeFiles/rosplay.dir/src/rosplay/rosplay.o
  [ 50%] Building CXX object CMakeFiles/rosplay.dir/src/rosplay/time_publisher.o
  Linking CXX executable ../bin/rosplay

  Undefined symbols:
    "boost::filesystem3::path::extension() const", referenced from:
        ros::record::Player::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time, bool)in rosplay.o
    "boost::filesystem3::path::wchar_t_codecvt_facet()", referenced from:
        ros::record::Player::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time, bool)in rosplay.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/rosplay] Error 1
  make[2]: *** [CMakeFiles/rosplay.dir/all] Error 2
  make[1]: *** [all] Error 2
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rosrecord written to:
[ rosmake ]    /Users/rhc/.ros/rosmake/rosmake_output-20110523-074829/rosrecord/build_output.log
[rosmake-0] Finished <<< rosrecord [FAIL] [ 41.13 seconds ]                                                                   
[ rosmake ] Halting due to failure in package rosrecord. 
[ rosmake ] Waiting for other threads to complete.                  
[rosmake-1] Finished <<< test_roswtf [PASS] [ 6.72 seconds ]                                                                  
[ rosmake ] Results:                                                                                                          
[ rosmake ] Built 62 packages with 1 failures.                                                                                
[ rosmake ] Summary output to directory                                                                                       
[ rosmake ] /Users/rhc/.ros/rosmake/rosmake_output-20110523-074829                                                            
Traceback (most recent call last):
  File "/opt/local/bin/rosinstall", line 5, in <module>
    pkg_resources.run_script('rosinstall==0.5.16', 'rosinstall')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/rosinstall-0.5.16-py2.6.egg/EGG-INFO/scripts/rosinstall ...
(more)
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
3

answered 2011-05-23 09:16:19 -0600

Mac gravatar image

updated 2011-05-23 09:16:58 -0600

This is an issue with the changeover from boost::filesystem v2 to v3; a wide variety of stuff breaks. Find the file that has #include <boost/filesystem.hpp> and add #define BOOST_FILESYSTEM_VERSION 2 immediately beforehand.

edit flag offensive delete link more

Comments

Hooray! That got it! Found ~10 files that needed changing, but it ran clean afterwards. Thanks!!
ralph gravatar imageralph ( 2011-05-23 12:29:34 -0600 )edit
Vote me up? Accept the answer? :-D
Mac gravatar imageMac ( 2011-05-23 22:47:27 -0600 )edit
0

answered 2012-02-24 16:50:26 -0600

Mani gravatar image

Instead of changing all files that include <boost/filesystem.hpp> I added the #define BOOST_FILESYSTEM_VERSION 2 to this header file: /usr/include/boost/config/user.hpp.

This file is included by <boost/filesystem.hpp> to apply user settings.

edit flag offensive delete link more
0

answered 2011-05-23 06:27:28 -0600

ralph gravatar image

Appreciate the linkage. Unfortunately, the patch doesn't apply - it references a file I can't find anywhere in the downloaded software.

edit flag offensive delete link more

Comments

If it helps, boost 1.46.1_0 is what rosinstall downloaded via port.
ralph gravatar imageralph ( 2011-05-23 09:03:48 -0600 )edit
0

answered 2011-05-23 06:03:31 -0600

tfoote gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-05-23 03:33:49 -0600

Seen: 1,357 times

Last updated: Feb 24 '12