File already exists in database: time.proto in protobuf/descriptor_database erroor?

asked 2016-04-21 09:50:03 -0600

this post is marked as community wiki

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

Hi all,

I’m doing the Contact Sensor tutorial http://gazebosim.org/tutorials?tut=co... In executing the

cd ~/gazebo_contact_tutorial/build;
gzserver ../contact.world

I get the error:

[libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: time.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1018] CHECK failed: generated_database_->Add(encoded_file_descriptor, size): 
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: generated_database_->Add(encoded_file_descriptor, size): 
Abort trap: 6

My CMakeLists.rxr is:

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(gazebo REQUIRED)

include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")

add_library(contact SHARED ContactPlugin.cc)
target_link_libraries(contact ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES})


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")

The OS is Mac Yosemite. Gazebo is 6.0. My cmake and make has no errors.

Any help is appreciated.

edit retag flag offensive close merge delete

Comments

I have similar error. But for message "File already exists in database: vector3d.proto".

Petro gravatar imagePetro ( 2016-05-18 08:06:13 -0600 )edit