openHarmony3.0编译错误

OHOS INFO] [3377/3496] LLVM LINK ./bin/module_ActsKvStoreTest.bin
[OHOS INFO] [3378/3496] LLVM LINK ./bin/deviceauth_service
[OHOS INFO] [3379/3496] LLVM LINK test/unittest/graphic/bin/graphic_test_ui_door.bin
[OHOS INFO] [3380/3496] ACTION //third_party/wpa_supplicant/wpa_supplicant-2.9:wpa_supplicant-2.9(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] [3375/3496] ACTION //applications/sample/camera/cameraApp:cameraApp_hap(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/applications/sample/camera/cameraApp/cameraApp_hap_build_log.txt
[OHOS ERROR] /usr/bin/python3 …/…/…/build/lite/hap_pack.py --packing-tool-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/developtools/packing_tool/jar/hmos_app_packing_tool.jar --mode hap --json-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/applications/sample/camera/cameraApp/cameraApp/src/main/config.json --resources-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/applications/sample/camera/cameraApp/cameraApp/src/main/resources --ability-so-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus_linux/libcameraApp.so --force true --signtool-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --privatekey OpenHarmony\ Application\ Release --sign-algo SHA256withECDSA --unsignhap-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus_linux/system/internal/unsigned_cameraApp.hap --signhap-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus_linux/system/internal/cameraApp.hap --sign-server rnd-signserver.huawei.com --jks-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/prebuilts/signcenter/key/OpenHarmony.p12 --cert-path /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --sign-by-server False --cert-profile /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/applications/sample/camera/cameraApp/cert/camera_HarmonyAppProvision_Release.p7b
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File “…/…/…/build/lite/hap_pack.py”, line 158, in
[OHOS ERROR] sys.exit(main())
[OHOS ERROR] File “…/…/…/build/lite/hap_pack.py”, line 151, in main
[OHOS ERROR] hap_packing(args)
[OHOS ERROR] File “…/…/…/build/lite/hap_pack.py”, line 85, in hap_packing
[OHOS ERROR] cmd_popen(packing_cmd)
[OHOS ERROR] File “…/…/…/build/lite/hap_pack.py”, line 29, in cmd_popen
[OHOS ERROR] proc = subprocess.Popen(cmd)
[OHOS ERROR] File “/usr/lib/python3.8/subprocess.py”, line 858, in init
[OHOS ERROR] self._execute_child(args, executable, preexec_fn, close_fds,
[OHOS ERROR] File “/usr/lib/python3.8/subprocess.py”, line 1704, in _execute_child
[OHOS ERROR] raise child_exception_type(errno_num, err_msg, err_filename)
[OHOS ERROR] FileNotFoundError: [Errno 2] No such file or directory: ‘java’
[OHOS ERROR] you can check build log in /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus_linux/build.log
[OHOS ERROR] command: “/home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony/out/hispark_taurus/ipcamera_hispark_taurus_linux” failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/zxy/zxy_work/openHarmony/code-v3.0.1-LTS/OpenHarmony

出现关键字java,确定是java版本不对,执行sudo apt-get install openjdk-11-jdk即可

  • 0
    点赞
  • 1
    收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论

打赏作者

我在看你呵呵笑

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值