Re: [ros-users] Problems compiling roslib on OS X 10.6.3 Sno…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Rene Ladan
Date:  
To: ros-users
Subject: Re: [ros-users] Problems compiling roslib on OS X 10.6.3 Snow Leopard
On 26-04-2010 23:07, William Woodall wrote:
> Hi, I was trying to get ROS working to the point that I could use
> image_view and rviz on my Macbook Pro while working with our robot and I
> have run into some trouble that I can't seem to find anything about on
> this mailing list's archives or the internet. When I try to compile
> roslib (and therefore anything else that depends on it) I get this output:
>
> Tirion:roslib william$ rosmake
> [ rosmake ] No package specified. Building ['roslib']
> [ rosmake ] Packages requested are: ['roslib']
> [ rosmake ] Logging to directory
> [ rosmake ] /Users/william/.ros/rosmake/rosmake_output-20100426-160001
> [ rosmake ] Expanded args ['roslib'] to:
> ['roslib']
> [ rosmake ] Checking rosdeps compliance for packages roslib. This may
> take a few seconds.
> [ rosmake ] rosdep check passed all system dependencies in packages
> [ rosmake ] Prebuilding rospack
> [ rosmake ] Prebuilding gtest
> [ rosmake ] Prebuilding genmsg_cpp
> [ rosmake ] [ 2 of 13 Completed ]
> [rosmake-0] >>> roslib >>> [ make ]
> [ rosmake ] [ 2 of 13 Completed ]
> [rosmake-1] >>> pycrypto >>> [ make ]
> [rosmake-1] <<< pycrypto <<< [PASS] [ 0.04 seconds ]
> [ rosmake ] [ 3 of 13 Completed ]
> [rosmake-1] >>> paramiko >>> [ make ]
> [rosmake-1] <<< paramiko <<< [PASS] [ 0.02 seconds ]
> [ rosmake ] [ 4 of 13 Completed ]
> [rosmake-1] >>> roslang >>> [ make ]
> [rosmake-1] <<< roslang <<< No Makefile in package roslang
>
> [ rosmake ] [ 5 of 13 Completed ]
> [rosmake-1] >>> xmlrpcpp >>> [ make ]
> [ rosmake ] Last 40 lines
> {-------------------------------------------------------------------------------
> [ 0%] Built target rospack_genmsg_libexe
> [ 38%] Built target ROSBUILD_genmsg_py
> [ 69%] Built target ROSBUILD_genmsg_cpp
> [ 69%] Built target rospack_genmsg
> [ 69%] Built target rosbuild_precompile
> [ 69%] Built target rospack_genmsg_all
> [ 76%] [ 84%] Building CXX object CMakeFiles/roslib.dir/src/time.o
> Building CXX object CMakeFiles/roslib.dir/src/package.o
> /Users/william/ros/ros/core/roslib/src/time.cpp:44:34: error:
> boost/thread/mutex.hpp: No such file or directory
> /Users/william/ros/ros/core/roslib/src/package.cpp:34:44: error:
> boost/algorithm/string/split.hpp: No such file or directory
> /Users/william/ros/ros/core/roslib/src/package.cpp:35:43: error:
> boost/algorithm/string/join.hpp: No such file or directory
> /Users/william/ros/ros/core/roslib/src/package.cpp:36:53: error:
> boost/algorithm/string/classification.hpp: No such file or directory
> /Users/william/ros/ros/core/roslib/src/time.cpp:74: error: ‘boost’ has
> not been declared
> /Users/william/ros/ros/core/roslib/src/time.cpp:74: error: expected
> initializer before ‘g_sim_time_mutex’
> /Users/william/ros/ros/core/roslib/src/time.cpp: In static member
> function ‘static ros::Time ros::Time::now()’:
> /Users/william/ros/ros/core/roslib/src/time.cpp:146: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/time.cpp:146: error: expected
> `;' before ‘lock’
> /Users/william/ros/ros/core/roslib/src/time.cpp: In static member
> function ‘static void ros::Time::setNow(const ros::Time&)’:
> /Users/william/ros/ros/core/roslib/src/time.cpp:159: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/time.cpp:159: error: expected
> `;' before ‘lock’
> make[3]: *** [CMakeFiles/roslib.dir/src/time.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> /Users/william/ros/ros/core/roslib/src/package.cpp: In function
> ‘std::string ros::package::command(const std::string&)’:
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: expected
> type-specifier
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: expected
> unqualified-id before ‘&’ token
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: expected
> `)' before ‘&’ token
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: expected
> `{' before ‘&’ token
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: ‘e’ was
> not declared in this scope
> /Users/william/ros/ros/core/roslib/src/package.cpp:79: error: expected
> `;' before ‘)’ token
> /Users/william/ros/ros/core/roslib/src/package.cpp: In function ‘void
> ros::package::command(const std::string&, ros::package::V_string&)’:
> /Users/william/ros/ros/core/roslib/src/package.cpp:90: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/package.cpp:90: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/package.cpp: In function ‘void
> ros::package::getPlugins(const std::string&, const std::string&,
> ros::package::M_string&)’:
> /Users/william/ros/ros/core/roslib/src/package.cpp:147: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/package.cpp:147: error: ‘boost’
> has not been declared
> /Users/william/ros/ros/core/roslib/src/package.cpp:152: error: ‘boost’
> has not been declared
> make[3]: *** [CMakeFiles/roslib.dir/src/package.o] Error 1
> make[2]: *** [CMakeFiles/roslib.dir/all] Error 2
> make[1]: *** [all] Error 2
> -------------------------------------------------------------------------------}
> [ rosmake ] Output from build of package roslib written to:
> [ rosmake ]
> /Users/william/.ros/rosmake/rosmake_output-20100426-160001/roslib/build_output.log
> [rosmake-0] <<< roslib <<< [FAIL] [ 4.70 seconds ]
> [ rosmake ] Halting due to failure in package roslib.
> [ rosmake ] Waiting for other threads to complete.
> [rosmake-1] <<< xmlrpcpp <<< [PASS] [ 7.51 seconds ]
> [ rosmake ] Summary output to directory
> [ rosmake ] /Users/william/.ros/rosmake/rosmake_output-20100426-160001
>
> I have tried uninstalling and reinstalling boost through macports (this
> strategy has worked for me elsewhere in my trek to build image_view on
> OS X), but to no avail. This is my boost version:
>
> Tirion:roslib william$ port installed | grep boost
> Password:
> boost @1.42.0_0 (active)
> boost-jam @3.1.17_0 (active)
> Tirion:roslib william$
>
> I have looked through most of the OS X mailing list topics and the
> ROS/OSX wiki page, but I still haven't found anything relating to this
> error. It seems to me that the problem is that it doesn't find boost in
> the library path or something, but I am not entirely sure. Has anyone
> else run into this issue?
>

This looks quite familiar when I tried building ROS on FreeBSD (still
busy with that).

Can you check if your environment variable CPATH is set to the directory
which contains boost/thread/mutex.hpp (something like
/usr/local/include). That should solve the boost problem.

Regards,
Rene
--
http://www.rene-ladan.nl/

GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)