UT-Austin-RPL / deoxys_control

A modular, real-time controller library for Franka Emika Panda robots
Apache License 2.0
140 stars 20 forks source link

Protobuf version mismatch #13

Closed praj441 closed 9 months ago

praj441 commented 9 months ago

When I am trying to install the package on RTOS side with command 'make -j build_franka=1', it giving the following errors:

/home/panda/deoxys_rtos_ws/deoxys_control/deoxys/build/proto/deoxys/franka_controller.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is 12 | #error This file was generated by a newer version of protoc which is | ^~~~~ /home/panda/deoxys_rtos_ws/deoxys_control/deoxys/build/proto/deoxys/franka_controller.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update 13 | #error incompatible with your Protocol Buffer headers. Please update | ^~~~~ /home/panda/deoxys_rtos_ws/deoxys_control/deoxys/build/proto/deoxys/franka_controller.pb.h:14:2: error: #error your headers.

Please help me , I am not able to resove these errors after so much of trying. Unfortunately, protoc is installed at three locations with three different versions: /usr/bin/protoc 3.6.1 /usr/local/bin/protoc 3.14.0 ~/.local/bin/protoc 3.19.6

It seems the makefile looks for /usr/local/bin/protoc.

The code lines where the errors is coming compare with version 3.14.0 only at franka_controller.pb.h:12:2

Help is required !!

praj441 commented 9 months ago

I solved this by:

  1. Removing /usr/bin/protoc and ~/.local/bin/protoc
  2. Downgrading /usr/local/bin/protoc to 3.13.0

However, I am getting now another issue same as issue #10

praj441 commented 9 months ago

Closing it now !