apollo.sh build ERRoR

Created on 7 Jan 2018  路  3Comments  路  Source: ApolloAuto/apollo

chi@in_dev_docker:/apollo$ bash apollo.sh build
System check passed. Build continue ...
[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.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling
Extracting Bazel installation...
...........................
Building: no action running
Building: no action running
Building: no action running
[INFO] Building on x86_64...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling
ERROR: /apollo/modules/dreamview/backend/handlers/BUILD:23:1: no such package '@opencv2//': Error extracting /home/chi/.cache/bazel/_bazel_chi/540135163923dd7d5820f3ee4b306b32/external/opencv2/2.4.13.2.zip to /home/chi/.cache/bazel/_bazel_chi/540135163923dd7d5820f3ee4b306b32/external/opencv2: Zip file '2.4.13.2.zip' is malformed. It does not contain an end of central directory record. and referenced by '//modules/dreamview/backend/handlers:image'
ERROR: Analysis of target '//modules/dreamview/backend:backend' failed; build aborted

Build Help wanted

Most helpful comment

Thanks for your help!
Today I did these:
1. bash apollo.sh clean
2. bash apollo.sh build

[ OK ] Build passed!

All 3 comments

It seems bazel dependency opencv2 is missing.

try to update with:

bazel fetch //...

and rebuild again.

---update---
hmm, seems no need to run bazel fetch manually,
bazel build will do that automatically.

I have the same problem.
The Operation system I use is ubuntu 14.04 on Parallel of mac.

Thanks for your help!
Today I did these:
1. bash apollo.sh clean
2. bash apollo.sh build

[ OK ] Build passed!

Was this page helpful?
0 / 5 - 0 ratings