whtc 发表于 2024-2-4 18:27:53

YY3568openharmony编译不成功

ACTION //developtools/packing_tool:packing_tool(//build/toolchain/ohos:ohos_clang_arm)
FAILED: obj/developtools/packing_tool/jar/haptobin_tool.jar obj/developtools/packing_tool/jar/app_unpacking_tool.jar obj/developtools/packing_tool/jar/app_packing_tool.jar obj/developtools/packing_tool/jar
/usr/bin/env ../../developtools/packing_tool/build.py --haptobin ../../developtools/packing_tool/adapter/ohos --haptobinOutput obj/developtools/packing_tool/jar/haptobin_tool.jar --unpackOutput obj/developtools/packing_tool/jar/app_unpacking_tool.jar --packOutput obj/developtools/packing_tool/jar/app_packing_tool.jar --outpath obj/developtools/packing_tool/jar --toolchain //build/toolchain/ohos:ohos_clang_arm --compileTarget image
obj/developtools/packing_tool/jar/haptobin_tool.jar
obj/developtools/packing_tool/jar/app_unpacking_tool.jar
obj/developtools/packing_tool/jar/app_packing_tool.jar
obj/developtools/packing_tool/jar
image
/home/whtc/Code/out/yy3568/obj/developtools/packing_tool/jar exist

/home/whtc/Code/developtools/packing_tool/haptobin.sh: line 65: javac: command not found

Traceback (most recent call last):
   File "/home/whtc/Code/out/yy3568/../../developtools/packing_tool/build.py", line 90, in <module>
   sys.exit(main())
   File "/home/whtc/Code/out/yy3568/../../developtools/packing_tool/build.py", line 57, in main
   raise Exception("compile haptobin java class failed!")
Exception: compile haptobin java class failed!
---------------------------------------------
ccache summary:
cache hit (direct): 0
cache hit (preprocessed): 0
cache miss: 0
hit rate:0.00%
mis rate: 0.00%
---------------------------------------------
c targets overlap rate statistics
subsystem               files NO.        percentage        builds NO.        percentage        overlap rate
aafwk                      2        6.9%             2        6.9%        1.00
ability                      2        6.9%             2        6.9%        1.00
commonlibrary                 21        72.4%              21        72.4%        1.00
customization                2        6.9%             2        6.9%        1.00
inputmethod                2        6.9%             2        6.9%        1.00
theme                      2        6.9%             2        6.9%        1.00

c overall build overlap rate: 1.00


Please check build log in /home/whtc/Code/out/yy3568/build.log
=====builderror=====

风火轮用户68631 发表于 2024-2-4 18:30:07

javac: command not found

whtc 发表于 2024-2-4 23:51:23


风火轮用户ALfYw 发表于 2024-2-5 10:49:25

你有没有执行bash build/prebuilts_download.sh??

whtc 发表于 2024-2-5 11:00:51

都执行过了,编译就是不成功

whtc 发表于 2024-2-5 11:15:04

我觉得目前最好的解决办法就是你们技术人员发我一个搭建好的安装环境,这样我直接拿来使用就可以了

whtc 发表于 2024-2-6 17:21:56


风火轮用户68631 发表于 2024-2-21 15:19:28

whtc 发表于 2024-2-6 17:21


把错误提示的变量注释掉

风火轮用户ALfYw 发表于 2024-12-31 17:55:52

sudo apt-get install openjdk-8-jdk
执行这个安装就可以了
页: [1]
查看完整版本: YY3568openharmony编译不成功