I’m encountering errors building WPILib (allwpilib-2019.1.1) an a Mac. See below.
- I followed instructions in “Getting Started With the Control System” document to install and update the tools.
- I have protobuf 3.6.1 and Gazebo 9.
All help appreciated!
1: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:simulation:gz_msgs:linkGz_msgsReleaseSharedLibrary’.
> A build operation failed.
Linker failed while linking libgz_msgs.dylib.
See the complete log at: file:///Users/williamkinahan/frc2019/allwpilib-2019.1.1/simulation/gz_msgs/build/tmp/linkGz_msgsReleaseSharedLibrary/output.txt
- Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
==============================================================================
2: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:simulation:gz_msgs:linkGz_msgsDebugSharedLibrary’.
> A build operation failed.
Linker failed while linking libgz_msgs.dylib.
See the complete log at: file:///Users/williamkinahan/frc2019/allwpilib-2019.1.1/simulation/gz_msgs/build/tmp/linkGz_msgsDebugSharedLibrary/output.txt
- Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
==============================================================================
For the first failure, some more detailed info:
Task :simulation:gz_msgs:linkGz_msgsReleaseSharedLibrary FAILED
Undefined symbols for architecture x86_64:
“google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int)”, referenced from:
protobuf_float64_2eproto::AddDescriptorsImpl() in float64.pb.o
protobuf_bool_2eproto::AddDescriptorsImpl() in bool.pb.o
protobuf_frc_5fjoystick_2eproto::AddDescriptorsImpl() in frc_joystick.pb.o
protobuf_driver_2dstation_2eproto::AddDescriptorsImpl() in driver-station.pb.o
“google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&))”, referenced from:
protobuf_float64_2eproto::AddDescriptorsImpl() in float64.pb.o
protobuf_bool_2eproto::AddDescriptorsImpl() in bool.pb.o
protobuf_frc_5fjoystick_2eproto::AddDescriptorsImpl() in frc_joystick.pb.o
protobuf_driver_2dstation_2eproto::AddDescriptorsImpl() in driver-station.pb.o
“google::protobuf::UnknownFieldSet::ClearFallback()”, referenced from:
gazebo::msgs::Float64::Float64() in float64.pb.o
gazebo::msgs::Float64::Float64(gazebo::msgs::Float64 const&) in float64.pb.o
gazebo::msgs::Float64::~Float64() in float64.pb.o
gazebo::msgs::Float64::~Float64() in float64.pb.o
gazebo::msgs::Float64::~Float64() in float64.pb.o
gazebo::msgs::Float64::Clear() in float64.pb.o
gazebo::msgs::Float64::CopyFrom(google::protobuf::Message const&) in float64.pb.o
…