ApolloAuto / apollo-platform

Collections of Apollo Platform Software
736 stars 390 forks source link

occurs error when build apollo ros #41

Open liupanpan opened 6 years ago

liupanpan commented 6 years ago

`==> Processing catkin package: 'pb_msgs' ==> Building with env: '/home/liupp/workplace/apollo-platform/ros/install/ros_x86_64/env.sh' Makefile exists, skipping explicit cmake invocation... ==> make cmake_check_build_system in '/home/liupp/workplace/apollo-platform/ros/build_isolated/pb_msgs' ==> make -j3 -l3 in '/home/liupp/workplace/apollo-platform/ros/build_isolated/pb_msgs' [ 0%] Built target pb_msgs_generate_messages_lisp [ 25%] Generating Python from proto pb_msgs/time.proto [ 50%] make[2]: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: Command not found make[2]: [/home/liupp/workplace/apollo-platform/ros/install/ros_x86_64/share/ros/../../lib/python2.7/dist-packages/pb_msgs/msg/time_pb2.py] Error 127 [ 75%] make[1]: [CMakeFiles/pb_msgs_generate_messages_py.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... Generating C++ code from pb_msgs/time.proto make[2]: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: Command not found make[2]: [/home/liupp/workplace/apollo-platform/ros/devel_isolated/pb_msgs/include/pb_msgs/../time.pb.h] Error 127 make[1]: [CMakeFiles/pb_msgs_proto.dir/all] Error 2 Generating C++ code from pb_msgs/time.proto make[2]: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: Command not found make[2]: [/home/liupp/workplace/apollo-platform/ros/devel_isolated/pb_msgs/include/pb_msgs/../time.pb.h] Error 127 make[1]: [CMakeFiles/pb_msgs_generate_messages_cpp.dir/all] Error 2 make: [all] Error 2 <== Failed to process package 'pb_msgs': Command '['/home/liupp/workplace/apollo-platform/ros/install/ros_x86_64/env.sh', 'make', '-j3', '-l3']' returned non-zero exit status 2

Reproduce this error by running: ==> cd /home/liupp/workplace/apollo-platform/ros/build_isolated/pb_msgs && /home/liupp/workplace/apollo-platform/ros/install/ros_x86_64/env.sh make -j3 -l3 `

fengqikai1414 commented 6 years ago

Please build apollo-platform in apollo-dev docker,protobuf has been installed in the system.