Error compiling contact sensor tutorial on Mac OS

asked 2016-09-20 10:44:55 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Dear all, i have installed gazebo 4 (needed to interface it with some existing plugins) on my mac (10.11.5). I tried to play a bit with the plugin tutorials and the typical hello world works like a charm. However, when i try to make the contact sensor tutorial (as followed here: http://gazebosim.org/tutorials?cat=se...) i get the following error:

Scanning dependencies of target contact [ 50%] Building CXX object CMakeFiles/contact.dir/ContactPlugin.cc.o [100%] Linking CXX shared library libcontact.dylib Undefined symbols for architecture x86_64: "boost::system::system_category()", referenced from: ___cxx_global_var_init.5 in ContactPlugin.cc.o boost::asio::error::get_system_category() in ContactPlugin.cc.o "boost::system::generic_category()", referenced from: ___cxx_global_var_init.3 in ContactPlugin.cc.o ___cxx_global_var_init.4 in ContactPlugin.cc.o "gazebo::msgs::Contacts::CopyFrom(gazebo::msgs::Contacts const&)", referenced from: gazebo::msgs::Contacts::operator=(gazebo::msgs::Contacts const&) in ContactPlugin.cc.o "gazebo::msgs::Contacts::Contacts()", referenced from: gazebo::ContactPlugin::OnUpdate() in ContactPlugin.cc.o "gazebo::msgs::Contacts::~Contacts()", referenced from: gazebo::ContactPlugin::OnUpdate() in ContactPlugin.cc.o "gazebo::event::Connection::Connection(gazebo::event::Event, int)", referenced from: gazebo::event::EventT<void ()&gt;::connect(boost::function<void="" ()&gt;="" const&amp;)="" in="" contactplugin.cc.o="" "gazebo::event::connection::~connection()",="" referenced="" from:="" void="" boost::checked_delete<gazebo::event::connection="">(gazebo::event::Connection) in ContactPlugin.cc.o "gazebo::common::Logger::operator()(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, int)", referenced from: gazebo::ContactPlugin::Load(boost::shared_ptr<gazebo::sensors::sensor>, boost::shared_ptr<sdf::element>) in ContactPlugin.cc.o "gazebo::common::Console::err", referenced from: gazebo::ContactPlugin::Load(boost::shared_ptr<gazebo::sensors::sensor>, boost::shared_ptr<sdf::element>) in ContactPlugin.cc.o "google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel, char const, int)", referenced from: google::protobuf::RepeatedPtrField<gazebo::msgs::contact>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::contact>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedPtrField<gazebo::msgs::vector3d>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::vector3d>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedField<double>::Get(int) const in ContactPlugin.cc.o "google::protobuf::internal::LogMessage::~LogMessage()", referenced from: google::protobuf::RepeatedPtrField<gazebo::msgs::contact>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::contact>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedPtrField<gazebo::msgs::vector3d>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::vector3d>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedField<double>::Get(int) const in ContactPlugin.cc.o "google::protobuf::internal::LogMessage::operator<<(char const)", referenced from: google::protobuf::RepeatedPtrField<gazebo::msgs::contact>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::contact>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedPtrField<gazebo::msgs::vector3d>::TypeHandler::Type const& google::protobuf::internal::RepeatedPtrFieldBase::Get<google::protobuf::repeatedptrfield<gazebo::msgs::vector3d>::TypeHandler>(int) const in ContactPlugin.cc.o google::protobuf::RepeatedField<double>::Get(int) const in ContactPlugin ... (more)

edit retag flag offensive close merge delete

Comments

On Ubuntu Linux I can compile this tutorial but it produces no output. I asked a question about it at http://answers.gazebosim.org/question/14479/does-anyone-get-output-with-the-contactsensor-tutorial/

JasonMel gravatar imageJasonMel ( 2016-09-25 10:55:35 -0500 )edit