Build errors
Hi, I'm building the latest apollo on two different machines (using bash apollo.sh build). I got "build failed!" on both machines with two different errors. Could you please tell me how to fix?
Machine 1: Ubuntu 14.04, error:
[INFO] Start building, please wait ... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling Error: mkdir('/root/.cache/bazel/_bazel_root'): (error: 13): Permission denied
Machine 2: Ubuntu 16.04, error:
ERROR: /apollo/modules/third_party_perception/BUILD:24:1: no such package '@ros//': Expected directory at /home/tmp/ros but it does not exist. and referenced by '//modules/third_party_perception:third_party_perception' ERROR: Analysis of target '//modules/third_party_perception:third_party_perception' failed; build aborted INFO: Elapsed time: 1.523s FAILED: Build did NOT complete successfully (5 packages loaded)
Apart from these errors, I also got some warnings, such as:
[WARNING] Failed to find device with pattern "video*" ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
is it because of that ros of indigo is not supported in ubuntu 16.04?
For Machine 1: Ubuntu 14.04, error. Don't use root to build.
Just delete this file /home/apollo/.cache/bazel/_bazel_root The procedure "bash apollo.sh build "will continue