colcon build fails due to protobuf compiler #2649
-
I am trying to install and build the workspace according to the instructions or source installation. Unfortunately, I keep getting the following error message I have already purged and reinstalled protobuf-compiler. Does anyone know another workaround or solution? Finished <<< web_controller [0.59s]
--- stderr: simulation_interface
In file included from /home/cc/autoware/build/simulation_interface/autoware_auto_vehicle_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/autoware_auto_vehicle_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/cc/autoware/build/simulation_interface/builtin_interfaces.pb.cc:4:
/home/cc/autoware/build/simulation_interface/builtin_interfaces.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/cc/autoware/build/simulation_interface/autoware_auto_control_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/autoware_auto_control_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:179: CMakeFiles/simulation_interface.dir/autoware_auto_control_msgs.pb.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:192: CMakeFiles/simulation_interface.dir/autoware_auto_vehicle_msgs.pb.cc.o] Error 1
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:205: CMakeFiles/simulation_interface.dir/builtin_interfaces.pb.cc.o] Error 1
In file included from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/include/simulation_interface/conversions.hpp:18,
from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/src/zmq_multi_server.cpp:15:
/home/cc/autoware/build/simulation_interface/builtin_interfaces.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:127: CMakeFiles/simulation_interface.dir/src/zmq_multi_server.cpp.o] Error 1
In file included from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/include/simulation_interface/conversions.hpp:18,
from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/src/conversions.cpp:16:
/home/cc/autoware/build/simulation_interface/builtin_interfaces.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:153: CMakeFiles/simulation_interface.dir/src/conversions.cpp.o] Error 1
In file included from /home/cc/autoware/build/simulation_interface/simulation_api_schema.pb.cc:4:
/home/cc/autoware/build/simulation_interface/simulation_api_schema.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/cc/autoware/build/simulation_interface/geometry_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/geometry_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:244: CMakeFiles/simulation_interface.dir/simulation_api_schema.pb.cc.o] Error 1
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:218: CMakeFiles/simulation_interface.dir/geometry_msgs.pb.cc.o] Error 1
In file included from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/include/simulation_interface/conversions.hpp:18,
from /home/cc/autoware/src/simulator/scenario_simulator/simulation/simulation_interface/src/zmq_multi_client.cpp:16:
/home/cc/autoware/build/simulation_interface/builtin_interfaces.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:140: CMakeFiles/simulation_interface.dir/src/zmq_multi_client.cpp.o] Error 1
In file included from /home/cc/autoware/build/simulation_interface/rosgraph_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/rosgraph_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:231: CMakeFiles/simulation_interface.dir/rosgraph_msgs.pb.cc.o] Error 1
In file included from /home/cc/autoware/build/simulation_interface/traffic_simulator_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/traffic_simulator_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/simulation_interface.dir/build.make:270: CMakeFiles/simulation_interface.dir/traffic_simulator_msgs.pb.cc.o] Error 1
In file included from /home/cc/autoware/build/simulation_interface/std_msgs.pb.cc:4:
/home/cc/autoware/build/simulation_interface/std_msgs.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
Could you provide more environment information?
|
Beta Was this translation helpful? Give feedback.
-
Have you tried uninstall your protobuf, and in the autoware folder, run
|
Beta Was this translation helpful? Give feedback.
Have you tried uninstall your protobuf, and in the autoware folder, run
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
? Chances are, either your.local/lib
folder is not visible bycmake
, or the version your using is incompatible.For your reference, this is how
pip show protobuf
results looks like for me