apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Build errors

Open qsphan opened this issue 9 years ago • 3 comments

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.

qsphan avatar Nov 18 '17 00:11 qsphan

is it because of that ros of indigo is not supported in ubuntu 16.04?

wyqhnr avatar Nov 21 '17 07:11 wyqhnr

For Machine 1: Ubuntu 14.04, error. Don't use root to build.

liupanpan avatar Jan 04 '18 08:01 liupanpan

Just delete this file /home/apollo/.cache/bazel/_bazel_root The procedure "bash apollo.sh build "will continue

pancumtneu avatar Nov 05 '18 12:11 pancumtneu