Protobuf dependency in ROS Fuerte/MacOSX
I am trying to compile my ROS node. This node compiles perfectly fine in Unix (running ROS Electric). Now, I am trying to compile it in Mac (running ROS Fuerte). The node depends on Google Protobuf, and I have installed protobuf successfully and also compiled my .proto file successfully. However, when I try to make my ROS node, I get some errors:
Linking CXX executable bin/mylib Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.o "google::protobuf::DescriptorPool::generated_pool()", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::DescriptorPool::FindFileByName(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&) const", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel, char const*, int)", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o
The list of errors continues for quite some time... it's doubtful that this helps, but here is the full list of errors...
Linking CXX executable bin/mylib Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.o "google::protobuf::DescriptorPool::generated_pool()", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::DescriptorPool::FindFileByName(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&) const", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel, char const, int)", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o "google::protobuf::internal::LogMessage::operator<<(char const)", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o "google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage&)", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o "google::protobuf::internal::LogMessage::~LogMessage()", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o "google::protobuf::MessageFactory::generated_factory()", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(google::protobuf::Descriptor const, google::protobuf::Message const, int const, int, int, int, google::protobuf::DescriptorPool const, google::protobuf::MessageFactory, int)", referenced from: protobuf::protobuf_AssignDesc_maverick_5fcmd_2eproto() in maverick_cmd.pb.o "google::protobuf::UnknownFieldSet::MergeFrom(google::protobuf::UnknownFieldSet const&)", referenced from: protobuf::CommandObj::MergeFrom(protobuf::CommandObj const&)in maverick_cmd.pb.o "typeinfo for google::protobuf::Message", referenced from: protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o typeinfo for protobuf::CommandObjin maverick_cmd.pb.o "google::protobuf::internal::ReflectionOps::Merge(google::protobuf::Message const&, google::protobuf::Message)", referenced from: protobuf::CommandObj::MergeFrom(google::protobuf::Message const&)in maverick_cmd.pb.o "google::protobuf::io ...