ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Package installation error..

asked 2014-07-16 12:05:56 -0600

Rasit gravatar image


I just followed the instructions (Installation Instructions for Hydro in OSX) and successfully (with some tweaks) installed desktop_full. However, I got the following error when I added the hector_quadrotor packages:

==> Processing catkin package: 'hector_quadrotor_model'
==> Building with env: '/Volumes/Data/ZProjects/ROS/catkin_ws/install_isolated/'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/Volumes/Data/ZProjects/ROS/catkin_ws/build_isolated/hector_quadrotor_model'
==> make -j2 -l2 in '/Volumes/Data/ZProjects/ROS/catkin_ws/build_isolated/hector_quadrotor_model'
Scanning dependencies of target hector_quadrotor_aerodynamics
[ 50%] Building CXX object CMakeFiles/hector_quadrotor_aerodynamics.dir/src/quadrotor_aerodynamics.cpp.o
Linking CXX shared library /Volumes/Data/ZProjects/ROS/catkin_ws/devel_isolated/hector_quadrotor_model/lib/libhector_quadrotor_aerodynamics.dylib
Undefined symbols for architecture x86_64:
  "boost::system::system_category()", referenced from:
      ___cxx_global_var_init11 in quadrotor_aerodynamics.cpp.o
      boost::thread_exception::thread_exception(int, char const*) in quadrotor_aerodynamics.cpp.o
  "boost::system::generic_category()", referenced from:
      ___cxx_global_var_init9 in quadrotor_aerodynamics.cpp.o
      ___cxx_global_var_init10 in quadrotor_aerodynamics.cpp.o
  "ros::NodeHandle::getParam(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double&) const", referenced from:
      hector_quadrotor_model::QuadrotorAerodynamics::configure(ros::NodeHandle const&) in quadrotor_aerodynamics.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Volumes/Data/ZProjects/ROS/catkin_ws/devel_isolated/hector_quadrotor_model/lib/libhector_quadrotor_aerodynamics.dylib] Error 1
make[1]: *** [CMakeFiles/hector_quadrotor_aerodynamics.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!
<== Failed to process package 'hector_quadrotor_model':
  Command '/Volumes/Data/ZProjects/ROS/catkin_ws/install_isolated/ make -j2 -l2' returned non-zero exit status 2

Reproduce this error by running:
==> cd /Volumes/Data/ZProjects/ROS/catkin_ws/build_isolated/hector_quadrotor_model && /Volumes/Data/ZProjects/ROS/catkin_ws/install_isolated/ make -j2 -l2

Command failed, exiting.

Any help to fix this is greatly appreciated. I'm on a Macbook Pro, running Mac OS X Mavericks 10.9.4.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-07-18 05:45:00 -0600

demmeln gravatar image

So I have had frequent issues with transitive dependencies of shared libraries on OS X. This looks like you need to link against Boost.System (i.e. something is not properly desclaring a dependency on it). In try something like:

find_package(Boost COMPONENTS system)


target_link_libraries(hector_quadrotor_aerodynamics ${Boost_LIBRARIES})
edit flag offensive delete link more


Thanks for the hint... Indeed, the CMakeLists.txt was missing that last line!

Rasit gravatar image Rasit  ( 2014-07-26 07:32:24 -0600 )edit

answered 2014-07-16 13:48:53 -0600

DevonW gravatar image

Linker error.

Make sure you have linked your executables in CMakeLists.txt using target_link_libraries(exe_name ${catkin_LIBRARIES}) I saw some stuff about x86-64 in there, maybe won't work because you need the Mac version of Boost.. wouldn't be able to help you there :s

edit flag offensive delete link more


Thanks for your reply, but my Mac has Intel CPU and running 64-bit Mavericks. Also, 'm not sure if I need to modify any thing in the hydro_* packages.

Rasit gravatar image Rasit  ( 2014-07-16 14:08:43 -0600 )edit

I'd suggest linking against boost as demln' provided above, please post back on your results.

DevonW gravatar image DevonW  ( 2014-07-18 12:15:03 -0600 )edit

Question Tools

1 follower


Asked: 2014-07-16 11:58:38 -0600

Seen: 709 times

Last updated: Jul 18 '14