首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >交叉编译铬臂

交叉编译铬臂
EN

Unix & Linux用户
提问于 2020-04-26 14:19:21
回答 1查看 388关注 0票数 0

我试着在ubuntu18.04上编译arm的铬。

我跟踪了使用说明设置胶根。我还传递了所描述的arm参数(gn gen out/Default "--args=target_cpu=\"arm\"")。我启动了编译(autoninja -C out/Default chrome),它运行了几分钟。现在我收到了这个错误消息

代码语言:javascript
复制
ninja: Entering directory `out/Default'
[21291/70630] ACTION //third_party/dom_distiller_js:dom_distiller_proto_gen(//build/toolchain/linux:clang_arm)
FAILED: pyproto/third_party/dom_distiller_js/dom_distiller_pb2.py gen/third_party/dom_distiller_js/dom_distiller.pb.h gen/third_party/dom_distiller_js/dom_distiller.pb.cc gen/third_party/dom_distiller_js/dom_distiller_json_converter.h 
python ../../tools/protoc_wrapper/protoc_wrapper.py dom_distiller.proto --protoc ./clang_x64/protoc --proto-in-dir ../../third_party/dom_distiller_js/dist/proto --cc-out-dir gen/third_party/dom_distiller_js --py-out-dir pyproto/third_party/dom_distiller_js --plugin ../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py --plugin-out-dir gen/third_party/dom_distiller_js --plugin-options output_dir=:
Traceback (most recent call last):
  File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py", line 14, in <module>
    from util import plugin_protos, types, writer
  File "/home/dustin/chromium/src/third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py", line 22, in <module>
    from google.protobuf.descriptor_pb2 import FieldDescriptorProto
ImportError: No module named protobuf.descriptor_pb2
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1
[21293/70630] ACTION //third_party/dom_distiller_js:json_values_converter_test_proto_gen(//build/toolchain/linux:clang_arm)
FAILED: pyproto/third_party/dom_distiller_js/test_sample_pb2.py gen/third_party/dom_distiller_js/test_sample.pb.h gen/third_party/dom_distiller_js/test_sample.pb.cc gen/third_party/dom_distiller_js/test_sample_json_converter.h 
python ../../tools/protoc_wrapper/protoc_wrapper.py test_sample.proto --protoc ./clang_x64/protoc --proto-in-dir ../../third_party/dom_distiller_js --cc-out-dir gen/third_party/dom_distiller_js --py-out-dir pyproto/third_party/dom_distiller_js --plugin ../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py --plugin-out-dir gen/third_party/dom_distiller_js --plugin-options output_dir=:
Traceback (most recent call last):
  File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py", line 14, in <module>
    from util import plugin_protos, types, writer
  File "/home/dustin/chromium/src/third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py", line 22, in <module>
    from google.protobuf.descriptor_pb2 import FieldDescriptorProto
ImportError: No module named protobuf.descriptor_pb2
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1
[21308/70630] CXX obj/services/device/usb/mojo/mojo/device_manager_impl.o
ninja: build stopped: subcommand failed.
EN

回答 1

Unix & Linux用户

发布于 2020-04-26 22:30:24

通过pip安装缺少的模块解决了我的问题。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/582648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档