[问答]小熊派开发板编译失败

阅读量0
0
0
OHOS INFO] [13/92] ACTION //drivers/adapter/khdf/liteos:build_hc_gen(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] [2878/2935] ACTION //applications/BearPi/BearPi-HM_Micro/samples/launcher:launcher_hap(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher_hap_build_log.txt
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/hap_pack.py --packing-tool-path /home/harmonyos/share/bearpi-hm_micro_small/developtools/packing_tool/jar/hmos_app_packing_tool.jar --mode hap --json-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/config.json --resources-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/resources --ability-so-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/liblauncher.so --force true --signtool-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --privatekey OpenHarmony Application Release --sign-algo SHA256withECDSA --unsignhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/unsigned_launcher.hap --signhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/launcher.hap --sign-server rnd-signserver.huawei.com --jks-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/key/OpenHarmony.p12 --cert-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --sign-by-server False --cert-profile /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/cert/com.huawei.launcher_HarmonyAppProvision_release.p7b
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "../../../build/lite/hap_pack.py", line 158, in <module>
[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] [14/96] ACTION //applications/BearPi/BearPi-HM_Micro/samples/launcher:launcher_hap(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher_hap_build_log.txt
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/hap_pack.py --packing-tool-path /home/harmonyos/share/bearpi-hm_micro_small/developtools/packing_tool/jar/hmos_app_packing_tool.jar --mode hap --json-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/config.json --resources-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/resources --ability-so-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/liblauncher.so --force true --signtool-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --privatekey OpenHarmony Application Release --sign-algo SHA256withECDSA --unsignhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/unsigned_launcher.hap --signhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/launcher.hap --sign-server rnd-signserver.huawei.com --jks-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/key/OpenHarmony.p12 --cert-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --sign-by-server False --cert-profile /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/cert/com.huawei.launcher_HarmonyAppProvision_release.p7b
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "../../../build/lite/hap_pack.py", line 158, in <module>
[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] [11/92] ACTION //applications/BearPi/BearPi-HM_Micro/samples/launcher:launcher_hap(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher_hap_build_log.txt
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/hap_pack.py --packing-tool-path /home/harmonyos/share/bearpi-hm_micro_small/developtools/packing_tool/jar/hmos_app_packing_tool.jar --mode hap --json-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/config.json --resources-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/launcher/src/main/resources --ability-so-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/liblauncher.so --force true --signtool-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --privatekey OpenHarmony Application Release --sign-algo SHA256withECDSA --unsignhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/unsigned_launcher.hap --signhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/launcher.hap --sign-server rnd-signserver.huawei.com --jks-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/key/OpenHarmony.p12 --cert-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --sign-by-server False --cert-profile /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/launcher/cert/com.huawei.launcher_HarmonyAppProvision_release.p7b
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "../../../build/lite/hap_pack.py", line 158, in <module>
[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] [12/92] ACTION //applications/BearPi/BearPi-HM_Micro/samples/screensaver:screensaver_hap(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/applications/BearPi/BearPi-HM_Micro/samples/screensaver/screensaver_hap_build_log.txt
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/hap_pack.py --packing-tool-path /home/harmonyos/share/bearpi-hm_micro_small/developtools/packing_tool/jar/hmos_app_packing_tool.jar --mode hap --json-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/screensaver/screensaver/src/main/config.json --resources-path /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/screensaver/screensaver/src/main/resources --ability-so-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/libscreensaver.so --force true --signtool-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --privatekey OpenHarmony Application Release --sign-algo SHA256withECDSA --unsignhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/unsigned_screensaver.hap --signhap-path /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/system/internal/screensaver.hap --sign-server rnd-signserver.huawei.com --jks-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/key/OpenHarmony.p12 --cert-path /home/harmonyos/share/bearpi-hm_micro_small/prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --sign-by-server False --cert-profile /home/harmonyos/share/bearpi-hm_micro_small/applications/BearPi/BearPi-HM_Micro/samples/screensaver/cert/com.huawei.screensaver_HarmonyAppProvision_release.p7b
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "../../../build/lite/hap_pack.py", line 158, in <module>
[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/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro/build.log
[OHOS ERROR] command: "/home/harmonyos/share/bearpi-hm_micro_small/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/harmonyos/share/bearpi-hm_micro_small/out/bearpi_hm_micro/bearpi_hm_micro" failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/harmonyos/share/bearpi-hm_micro_small

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友