ros-industrial / robotiq

Robotiq packages (http://wiki.ros.org/robotiq)
BSD 2-Clause "Simplified" License
229 stars 378 forks source link

kinetic-devel catkin_make error #146

Closed TouchDeeper closed 5 years ago

TouchDeeper commented 5 years ago

Hi, I clone the branch of kinetic-devel and make, but the error occurs:

[ 70%] Built target robotiq_3f_gripper_control_generate_messages_eus
Scanning dependencies of target robotiq_2f_gripper_action_server_node
[ 71%] Building CXX object robotiq/robotiq_2f_gripper_action_server/CMakeFiles/robotiq_2f_gripper_action_server_node.dir/src/robotiq_2f_gripper_action_server_node.cpp.o
In file included from /usr/include/gazebo-7/gazebo/msgs/MessageTypes.hh:7:0,
                 from /usr/include/gazebo-7/gazebo/msgs/msgs.hh:30,
                 from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30,
                 from /usr/include/gazebo-7/gazebo/physics/Model.hh:34,
                 from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24,
                 from /usr/include/gazebo-7/gazebo/physics/physics.hh:2,
                 from /home/wang/robotiq_ws/src/robotiq/robotiq_3f_gripper_articulated_gazebo_plugins/src/RobotiqHandPlugin.cpp:37:
/usr/include/gazebo-7/gazebo/msgs/altimeter.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
 #error This file was generated by an older version of protoc which is
  ^
/usr/include/gazebo-7/gazebo/msgs/altimeter.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
 #error incompatible with your Protocol Buffer headers.  Please
  ^
/usr/include/gazebo-7/gazebo/msgs/altimeter.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
 #error regenerate this file with a newer version of protoc.
  ^
In file included from /usr/include/gazebo-7/gazebo/msgs/altimeter.pb.h:27:0,
                 from /usr/include/gazebo-7/gazebo/msgs/MessageTypes.hh:7,
                 from /usr/include/gazebo-7/gazebo/msgs/msgs.hh:30,
                 from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30,
                 from /usr/include/gazebo-7/gazebo/physics/Model.hh:34,
                 from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24,
                 from /usr/include/gazebo-7/gazebo/physics/physics.hh:2,
                 from /home/wang/robotiq_ws/src/robotiq/robotiq_3f_gripper_articulated_gazebo_plugins/src/RobotiqHandPlugin.cpp:37:
/usr/include/gazebo-7/gazebo/msgs/time.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
 #error This file was generated by an older version of protoc which is
  ^
/usr/include/gazebo-7/gazebo/msgs/time.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
 #error incompatible with your Protocol Buffer headers.  Please
  ^
/usr/include/gazebo-7/gazebo/msgs/time.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
 #error regenerate this file with a newer version of protoc.
……
/usr/include/gazebo-7/gazebo/msgs/wrench_stamped.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
 #error This file was generated by an older version of protoc which is
  ^
/usr/include/gazebo-7/gazebo/msgs/wrench_stamped.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
 #error incompatible with your Protocol Buffer headers.  Please
  ^
/usr/include/gazebo-7/gazebo/msgs/wrench_stamped.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
 #error regenerate this file with a newer version of protoc.
  ^
[ 72%] Linking CXX executable /home/wang/robotiq_ws/devel/lib/robotiq_ft_sensor/rq_test_sensor

Can you give me some advice? Thanks many.

christian-rauch commented 5 years ago

There is a compiler error that says:

This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc.

It seems you have a newer version of protoc than the one used to generate the Gazebo message headers. Which protoc version are you using? You should downgrade your protoc or use a newer Gazebo.