【OpenHarmony】环境安装及代码下拉开发编译操作总结

开题

文章借鉴(看不懂此文可看下方链接)

文章借鉴链接1:OpenHarmony代码操作总结
文章借鉴链接2:初始环境软件安装及代码下载
文章借鉴链接3:linux安装ninja和GN环境搭建
文章借鉴链接4:make的-j命令(加速Linux程序编译)
文章借鉴链接5:FFI测试用例构建和ndk接口暴露

问题解决(可直接再文章中搜问题即可跳转到对应位置)

解决问题1:[ERROR] The distro “Ubuntu-20.04” has running processes and can’t be operated. “wsl -t ” or “wsl --shutdown” might help.
解决问题2:root@DESKTOP-E46JARI:~/third_party_gn# ninja -C out
ninja: Entering directory `out’
ninja: no work to do.
root@DESKTOP-E46JARI:~/third_party_gn# ./out/gn_unittests
[390/687] NinjaRustBinaryTargetWriterTest.TransitiveRustDeps[140091045406592:0222/140046.706344:FATAL:values.cc(239)] Check f ailed: is_list().
解决问题3:/usr/bin/env: ‘python’: No such file or directory和Command ‘python’ not found, did you mean的编译报错
解决问题4:Fetching projects: 99% (476/480) third_party_mesa3derror: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
error: 1344 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
third_party_vk-gl-cts:
remote: Enumerating objects: 139162, done.
remote: Counting objects: 100% (4462/4462), done.
remote: Compressing objects: 100% (116/116), done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
error: 1344 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
解决问题5: ACTION //developtools/packing_tool:packing_tool(//build/toolchain/linux:clang_x64)
解决问题6:烧录前,执行开发工具后测试设备失败
解决问题7:烧录前,执行开发工具后测试设备失败

编译之make基础 -j(可快速编译)

其中这里涉及到一个知识点-j8、-j16参
用make -j带一个参数,可以把项目在进行并行编译,比如在一台双核的机器上,完全可以用make -j4,让make最多允许4个编译命令同时执行,这样可以更有效的利用CPU资源。 因此make -j16意思即make最多允许16个编译器同时执行,提高编译速度,充分利用本机计算资源。 可参考文章 :make的-j命令(加速Linux程序编译)

环境

Windows环境中准备Ubuntu、MobaXterm/Xshell

需要Ubuntu、MobaXterm/Xshell、GIT
我的环境是在应用商店里下的 ,环境安装可自行在百度搜下免费版或者官网下载

切盘及初始环境搭建

默认情况下,WSL会安装在C盘(系统盘),而C盘空间有限,随着WSL子系统的使用,C盘空间越来越少,最后有可能出现C盘不足导致WSL系统崩溃。
有效的解决方法是,将WSL子系统迁移到其他盘(非系统盘)。

查看wsl状态并升级为wsl2(用时<1min)

如果是版本1,编译速度会慢几十倍

wsl -l -v
wsl.exe --set-version Ubuntu-22.04 2

在这里插入图片描述
在这里插入图片描述

wsl2安装完成后,切换软件源为国内软件源(用时<1min)

cp -ra /etc/apt/sources.list /etc/apt/sources.list.bak #备份原来的源
sudo vim /etc/apt/sources.list #添加阿里源
############把下面的内容复制进去,保存退出##############
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

在这里插入图片描述
在这里插入图片描述

更新缓存和升级(用时5min-10min)

sudo apt-get update
sudo apt-get upgrade
##下面的是安装依赖工具的命令,windows11运行完要检验下有无依赖上,没有就单条执行#####
sudo apt-get install git-lfs git bison flex gnupg build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses-dev x11proto-core-dev libx11-dev libc++1 lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 libtinfo5 bc npm genext2fs liblz4-tool libssl-dev ruby openjdk-8-jre-headless gdb python3-pip libelf-dev libxcursor-dev libxrandr-dev libxinerama-dev

下面是执行完上面命令的截图

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

下载repo(用时<1min)

mkdir ~/bin
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo
chmod a+x ~/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
###########下面的命令是将repo添加到环境变量###########
vim ~/.bashrc # 编辑环境变量
export PATH=~/bin:$PATH # 在环境变量的最后添加一行repo路径信息
source ~/.bashrc # 应用环境变量

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

linux配置git

#########配置用户名密码########
git config --global user.name "用户名"
git config --global user.email "邮箱"
#########查看 git 账号信息#######
git config user.name
git config user.email
########查看整个账户信息######
git config --list
######生成秘钥######
ssh-keygen
######查看公钥######
cd ~/.ssh/
cat id_rsa.pub

在这里插入图片描述

添加公钥

在这里插入图片描述
在这里插入图片描述

ssh -T git@github.com #测试链接:出现以下提示说明链接成功了(github)
ssh -T git@gitee.com #测试链接:出现以下提示说明链接成功了(gitee)

在这里插入图片描述
在这里插入图片描述

迁移wsl2至非系统盘(问题描述)

需要下载LxRunOffline,下载地址,下载文件LxRunOffline-v3.5.0-mingw.zip,然后解压到某个目录中

在这里插入图片描述

设置环境变量,在系统变量Path中添加LxRunOffline解压的目录(.exe所在的目录)
重启电脑,使环境变量生效

在这里插入图片描述

Win + R运行cmd,输入LxRunOffline,如果显示下图的提示证明已经安装成功了

图一

Win + R运行cmd,输入LxRunOffline list查看子系统版本如图二

图二

复制上面的版本号,然后输入LxRunOffline move -n {version} -d {dir},{version}是版本号,{dir}是迁移目的目录,比如本文是20版本,迁移到D盘Ubuntu目录下,LxRunOffline move -n Ubuntu-20.04 -d D:\Ubuntu,然后回车,等待迁移完成,10分钟左右。

在这里插入图片描述

其中偶遇报错信息,可看下方图片来解决此问题
问题描述:[ERROR] The distro “Ubuntu-20.04” has running processes and can’t be operated. “wsl -t ” or “wsl --shutdown” might help.

在这里插入图片描述

在这里插入图片描述

整个Ubuntu子系统就迁移到了指定目录下了生成ext4.vhdx

在这里插入图片描述

WSL映射到本地

在这里插入图片描述

ninja和GN

ninja和GN构建系统及工具搭建(用时10min-15min)

关于linux安装ninja和GN环境搭建我上篇讲的很清晰也有配图,链接linux安装ninja和GN环境搭建 点击这里,可直接进入

其中偶遇报错信息
问题描述:root@DESKTOP-E46JARI:~/third_party_gn# ninja -C out
ninja: Entering directory `out’
ninja: no work to do.
root@DESKTOP-E46JARI:~/third_party_gn# ./out/gn_unittests
[390/687] NinjaRustBinaryTargetWriterTest.TransitiveRustDeps[140091045406592:0222/140046.706344:FATAL:values.cc(239)] Check f ailed: is_list().
在这里插入图片描述
问题解决:不要用third_party_gn仓用Github的gn仓,准确信息可查看链接linux安装ninja和GN环境搭建

代码编译(用时半天-一天:时间较长可晚上下班后编译全量)

初始化代码(问题描述)

repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify #初始化代码

repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify

问题描述:/usr/bin/env: ‘python’: No such file or directory和Command ‘python’ not found, did you mean的编译报错,其中Command ‘python’ not found, did you mean:你可以用python3来代替使用,但是你要是遇见/usr/bin/env: ‘python’并不能代替使用的话就需要为python其创建符号连接:
1.查看python3的版本: python3 --version 2.查找python3的安装位置:whereis python3 3.为其创建符号连接:sudo ln -s /usr/bin/python3 /usr/bin/python

在这里插入图片描述

更新代码

repo sync -c # 更新代码

在这里插入图片描述

问题描述:在更新代码中,可能会遇到这种报错,也可如下图所示:
Fetching projects: 99% (476/480) third_party_mesa3derror: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
error: 1344 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
third_party_vk-gl-cts:
remote: Enumerating objects: 139162, done.
remote: Counting objects: 100% (4462/4462), done.
remote: Compressing objects: 100% (116/116), done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
error: 1344 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
在这里插入图片描述
问题原因:
遇到的问题是在使用Git进行代码获取(fetch)时,出现了与TLS连接有关的错误。这种错误通常与网络连接或服务器设置有关,而不是代码或Git操作有关。
解决方法:
1.检查网络连接:确保你的网络连接是稳定的,并且没有任何防火墙或代理服务器阻止Git的访问。
2.更新Git和curl:有时,过时的Git或curl版本可能会导致这种问题。你可以尝试更新这些工具到最新版本,看看问题是否得到解决。
3.增加Git的HTTP/HTTPS缓冲区大小:你可以尝试增加Git的HTTP/HTTPS缓冲区大小来解决这个问题。这可以通过设置http.postBuffer来实现。在你的命令行中运行以下命令:
git config --global http.postBuffer 524288000
这个命令将缓冲区大小设置为500MB,你可以根据需要调整这个值。(操作如图)
在这里插入图片描述
4.检查服务器的TLS设置:如果以上方法都无法解决问题,那么可能是服务器的TLS设置有问题。在这种情况下,你可能需要联系服务器管理员或技术支持以获取帮助。

更新二进制和预编译

repo forall -c "git lfs pull" # 更新二进制
./build/prebuilts_download.sh #预编译(-j16是因为有16个处理器 加-j参数能编译更快,后面数字需要查看自己的电脑的内核,查看方法可看文章开头)

在这里插入图片描述

全量编译(问题描述)

./build.sh --product-name rk3568 #32位全量编译(-j16是因为有16个处理器 加-j参数能编译更快,后面数字需要查看自己的电脑的内核,查看方法可看文章开头)

在这里插入图片描述

问题描述: ACTION //developtools/packing_tool:packing_tool(//build/toolchain/linux:clang_x64)

在这里插入图片描述

#######################下面是问题的全部描述################
[OHOS ERROR] [4080/21415] ACTION//developtools/packing_tool:packing_tool(//build/toolchain/linux:clang_x64)
[OHOS ERROR] FAILED: clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar clang_x64/obj/developtools/packing_tool/jar
[OHOS ERROR] /usr/bin/env ../../developtools/packing_tool/build.py --haptobin ../../developtools/packing_tool/adapter/ohos --haptobinOutput clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar --unpackOutput clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar --packOutput clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar --outpath clang_x64/obj/developtools/packing_tool/jar --toolchain //build/toolchain/linux:clang_x64 --compileTarget sdk
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar
[OHOS ERROR] sdk
[OHOS ERROR] /root/master/out/sdk/clang_x64/obj/developtools/packing_tool/jar exist
[OHOS ERROR]
[OHOS ERROR] /root/master/developtools/packing_tool/haptobin.sh: line 65: javac: command not found
[OHOS ERROR]
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/master/out/sdk/../../developtools/packing_tool/build.py", line 90, in <module>
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/root/master/out/sdk/../../developtools/packing_tool/build.py", line 57, in main
[OHOS ERROR]     raise Exception("compile haptobin java class failed!")
[OHOS ERROR] Exception: compile haptobin java class failed!
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/master/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/root/master/build/hb/util/system_util.py", line 63, in exec_command
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /root/master/out/sdk/build.log
[OHOS ERROR]
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR]
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/root/master/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/root/master/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/root/master/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/root/master/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/root/master/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/root/master/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/root/master/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/root/master/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
[OHOS ERROR]     raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Code:      4000
[OHOS ERROR]
[OHOS ERROR] Reason:    ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Solution:  Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
[OHOS ERROR]            Or you can try the following steps to solve this problem:
[OHOS ERROR]              1. cd to OHOS root path
[OHOS ERROR]              2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR]              3. repo sync
[OHOS ERROR]              4. repo forall -c 'git lfs pull'
[OHOS ERROR]              5. bash build/prebuilts_download.sh
[OHOS ERROR]              6. rebuild your product or component
[OHOS ERROR]
[OHOS ERROR]            If you still cannot solve this problem, you could post this problem on:
[OHOS ERROR]              https://gitee.com/openharmony/build/issues
[OHOS ERROR]
ohos-sdk build failed!

解决方法:
1.sudo apt-get update
2.sudo apt install default-jdk

在这里插入图片描述

####改完错误了,别忘记继续执行你之前没执行完的全量编译#########
./build.sh --product-name rk3568
最后呈现下面的图就是全量编译成功了

在这里插入图片描述

问题描述:[OHOS INFO] [GN] configure: error: in `/root/third_party/libnl/libnl-3.7.0’:
[OHOS INFO] [GN] configure: error: cannot run C compiled programs.

在这里插入图片描述
在这里插入图片描述

解决方法:
1.cd /root/third_party/libnl
2.sudo apt-get install build-essential
3.打开gn的文件夹:python3 build/gen.py
4.在gn的文件夹下:ninja -C out
在这里插入图片描述
在这里插入图片描述

问题描述:[NINJA] FAILED: obj/foundation/arkui/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance_ohos/ace_container.o

在这里插入图片描述

#######################下面是问题的全部描述################
[OHOS ERROR] [NINJA] [80384/93292] CXX obj/foundation/arkui/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance_ohos/ace_container.o
[OHOS ERROR] [NINJA] FAILED: obj/foundation/arkui/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance_ohos/ace_container.o
[OHOS ERROR] [NINJA] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/arkui/ace_engine/adapter/ohord_entrance_ohos/ace_container.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DSUPPORT_JSSTACK -DWEB_SUPPORTED -DD -DGPU_DISABLED -DREMOTE_WINDOW_SUPPORTED -DEFFECT_COMPONENT_SUPPORTED -DXCOMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_WINDOW_SUPPORTED -DMODEL_COMPONENT_SUPPORTED -DHIDDEN_SYMBOL -DWINDOW_SCENE_SUPPORTED -DENABLE_DRAG_FRAMEWORK -DMEDIA_LIBRARY_EXISTS -DHICHECKENT_SUPPORT -DFORM_BUTTON_COMPONENT_SUPPORT -DVSYNC_TIMEOUT_CHECK -DSTATE_MGMT_USE_AOT -DFORM_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DINDEXER_SUPPHEDULE_SERVICE_ENABLE -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__SDC_FORMAT_MACROS -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAE_INSTANCE_LOG -DUSE_ROSEN_DRAWING -DOS_ACCOUNT_EXISTS -DCAMERA_FRAMEWORK_EXISTS -DPLAYER_FRAMEWORK_EXISTS -DAUDIO_FRAMEWORK_EXISTS -DQRCODEGEN_SU_ENABLE -DFORM_SIZE_CHANGE_ANIMATION -DUI_SERVICE_WITH_IDL -DSUPPORT_GRAPHICS -DSUPPORT_SCREEN -DSUPPORT_HICHECKER -DBGTASKMGR_CONTINUOUS_TASK_ENAORT -DSKIA_USE_XEG -DSKIA_OHOS -DSKIA_OHOS_SHADER_REDUCE -DSKIA_OHOS_TEXTURE_MEM_MGMT -DSKIA_DFX_FOR_OHOS -DSKIA_DFX_FOR_RECORD_VKIMAGE -DSKIA_DFX -DSKIA_OHOS_SINGLE_OWNER -DSKIA_OPTION_UNCLAMPED_COLOR_MATRIX_FILTER -DGR_TEST_UTILS=1 -DSK_BUILD_FOR_OHOS -DSK_ENABLE_SKSL -DSK_ENABLE_SMALL_PAGING_OHOS -DSK_HAS_ANDROID_CODEC -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODBGIFCODEC -DSK_HAS_HEIF_LIBRARY -DSK_XML -DWEBP_SWAP_16BIT_CSP -DSK_ENABLE_SVG -DSKSHAPER_IMPLEMENTATION=1 -DSK_SHAPER_HARFBUZZ_AVAILABLE -DSK_UNI_IMPLEMENTATION=1 -DSK_SUPPORT_PDF -DHAVE_ICU -DHAVE_ICU_BUILTIN -DHAVE_OT -DHAVE_CONFIG_OVERRIDE_H -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -DOHOS_NG -DOHOS_BUILD_ENABLE_INTERCEPTOR -DOHOS_BUILD_ENABLE_KEYBOARD -DOHOS_BUILD_ENABLE_SWITCH -DOHOS_BUILD_ENABLE_MONITOR -DOHOS_BUILD_ENABLE_TOUCH - -DOHOS_BUILD_ENABLE_JOYSTICK -DOHOS_BUILD_ENABLE_SHORT_KEY -DOHOS_BUILD_ENABLE_SECURITY_COMPONENT -DOHOS_BUILD_ENABLE_FINGERSENSE_WRAPPER -DOHOS_WRAPPER -DOHOS_BUILD_ENABLE_NEW_KNUCKLE_DYNAMIC -DCALL_MANAGER_SERVICE_ENABLED -DHITRACE_ENABLED -DOHOS_BUILD_ENABLE_TOUCH_DRAWING -DOHOS_BUILD_ENDENABLE_EGL -DUSE_FFRT -DASYNC_STACKTRACE -DUSE_OHOS_DFX -DNAPI_TARGET_ARM32 -DNAPI_TARGET_32 -DHOOK_ENABLE -DOHOS_STANDARD_PLATFORM -DSUPPORT_APPN_OHOS -DRS_ENABLE_GPU -DENABLE_RUST -DUSE_GRAPHIC_TEXT_GINE -DACE_ENABLE_GL -DRS_ENABLE_GL -DSKP_RECORDING_ENABLED -DRS_ENABLE_EGLIMAGE -DRS_ENABABLE_PARALLEL_RENDER -DRS_ENABLE_PREFETCH -I../../foundation/arkui/ace_engine/interfaces/inner_api/ui_session -I../../foundation/arkui/ace_engine /include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../foundation/arkui/ace_engine/frameworks -I../../foundation/arkui/ace_engine/in/include -Iarkui/framework -I../../base/hiviewdfx/hilog/interfaces/native/innerkits/include -I../../foundation/arkui/ace_engine/adapter/ohos/servi/../commonlibrary/c_utils/base/include -I../../foundation/communication/ipc/interfaces/innerkits/ipc_core/include -I../../foundation/systemabilitykits/samgr_proxy/include -I../../foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache/include -I../../base/notification/eventhandl../../base/notification/eventhandler/frameworks/eventhandler/include -I../../foundation/distributeddatamgr/preferences/interfaces/inner_api/includn/common_event_service/interfaces/inner_api -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include -I../..bundle_framework/interfaces/inner_api/appexecfwk_base/include/clone -I../../foundation/bundlemanager/bundle_framework/common/log/include -I../../a./../arkcompiler/ets_runtime/ecmascript/napi/include -I../../arkcompiler/runtime_core -I../../arkcompiler/runtime_core/libpandabase -Igen/arkcompiase/include -Igen/arkcompiler/runtime_core/libpandabase -I../../arkcompiler/runtime_core/libpandafile -I../../arkcompiler/runtime_core/libziparchime_core/libpandafile -Igen/arkcompiler/runtime_core/libpandafile/include -I../../third_party/icu/icu4c/source/common -I../../third_party/icu/icu4c_party/icu/icu4c/source -I../../third_party/bounds_checking_function/include -I../../foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk bilitymgr/samgr/interfaces/innerkits/common/include -Iobj/third_party/libxml2/include -Igen/third_party/libxml2/libxml2-2.9.14/include -I../../fouinterfaces/innerkits/ipc_napi_common/include -I../../foundation/communication/ipc/ipc/native/src/napi_common/include -I../../foundation/arkui/ace_i/ace -I../../foundation/arkui/ace_engine/interfaces/inner_api/ace/ai -I../../foundation/arkui/ace_engine/interfaces/inner_api/ace/share -I../../f/interfaces/inner_api/ui_session/include -I../../foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager/include -I../../foundation/arinner_api/ui_service_manager/native/include -Igen/foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager -I../../foundation/ability/aer_api/base/include -I../../foundation/ability/ability_base/interfaces/inner_api/log/include -I../../foundation/ability/ability_base/interfaces/kiclude -I../../base/global/resource_management/interfaces/inner_api/include -I../../foundation/ability/ability_base/interfaces/kits/native/extractod_party/zlib -I../../third_party/zlib/contrib/minizip -I../../foundation/ability/ability_base/interfaces/kits/native/view_data/include -I../../fouse/interfaces/kits/native/want/include -I../../foundation/ability/ability_base/interfaces/kits/native/uri/include -I../../third_party/json/single_y/json/single_include/nlohmann -I../../foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include -I../../foundation/ability//inner_api/ability_manager/include/insight_intent -I../../foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include/status_btion/ability/ability_runtime/interfaces/inner_api/ability_manager/include/ui_extension -I../../foundation/ability/ability_runtime/interfaces/kits//../foundation/ability/ability_runtime/interfaces/kits/native/ability/ability_runtime -I../../foundation/ability/ability_runtime/interfaces/kits/nme/context -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/continuation/kits -I../../foundation/ability/ability_rive/ability/native/continuation/distributed -I../../foundation/ability/ability_runtime/interfaces/inner_api/app_manager/include/appmgr -I../../fountime/interfaces/kits/native/appkit/app -I../../foundation/ability/ability_runtime/interfaces/kits/native/appkit/dfr -I../../foundation/ability/abits/native/appkit -I../../foundation/ability/ability_runtime/interfaces/inner_api/dataobs_manager/include -I../../foundation/multimedia/image_fram/include -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/bundle_resource -I../../foundation/bundlemterfaces/inner_api/appexecfwk_base/include/distributed_manager -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_bI../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/overlay -I../../foundation/bundlemanager/bundle_fram/appexecfwk_base/include/plugin -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/quick_fix -I../../fndle_framework/interfaces/inner_api/appexecfwk_base/include/shared -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/app_control -I../../foundation/bundlemanager/bundle_frameworkxecfwk_core/include/bundle_resource -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr -I../r/bundle_framework/interfaces/inner_api/appexecfwk_core/include/default_app -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_apixtend_resource -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/overlay -I../../foundation/bundlemanrfaces/inner_api/appexecfwk_core/include/quick_fix -I../../foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr_ext -I../../base/notification/common_event_service/frameworknotification/common_event_service/frameworks/core -I../../foundation/systemabilitymgr/samgr/services/lsamgr/include -Igen/third_party/jsoncpp/jsonfoundation/ability/ability_runtime/interfaces/kits/native/ability/ability_runtime/context -I../../foundation/resourceschedule/background_task_mgr/de -Igen/foundation/resourceschedule/background_task_mgr/interfaces/innerkits -I../../foundation/resourceschedule/background_task_mgr/frameworks/cdation/resourceschedule/background_task_mgr/frameworks/include -I../../foundation/ability/ability_runtime/services/abilitymgr/include -I../../fountime/services/abilitymgr/include/data_ability -I../../foundation/ability/ability_runtime/services/abilitymgr/include/dialog_session -I../../foundame/services/abilitymgr/include/extension_record -I../../foundation/ability/ability_runtime/services/abilitymgr/include/insight_intent -I../../fountime/services/abilitymgr/include/mission -I../../foundation/ability/ability_runtime/services/abilitymgr/include/rdb -I../../foundation/ability/abiitymgr/include/resident_process -I../../foundation/ability/ability_runtime/services/abilitymgr/include/keep_alive -I../../foundation/ability/abiliymgr/include/screen_lock -I../../foundation/ability/ability_runtime/services/abilitymgr/include/ui_extension -I../../foundation/ability/ability_ruinclude/ui_extension_record -I../../foundation/ability/ability_runtime/services/abilitymgr/include/utils -I../../foundation/ability/ability_runtim-I../../foundation/ability/ability_runtime/interfaces/inner_api/app_manager/include -I../../foundation/ability/ability_runtime/interfaces/inner_apclude -I../../foundation/ability/ability_runtime/interfaces/inner_api/deps_wrapper/include -I../../foundation/ability/ability_runtime/services/comlts/jdk/jdk8/linux-x86/include -I../../prebuilts/jdk/jdk8/linux-x86/include/linux -I../../foundation/ability/ability_runtime/tools/aa/include -I..lity_runtime/interfaces/inner_api/wantagent/include -I../../foundation/ability/ability_runtime/interfaces/inner_api/session_handler/include -I../.ty_runtime/interfaces/kits/native/appkit/ability_runtime -I../../foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_bundle_mdation/ability/ability_runtime/utils/global/constant -I../../foundation/ability/ability_runtime/utils/global/time/include -I../../foundation/abilierver/constant -I../../foundation/ability/ability_base/interfaces/kits/native/session_info/include -I../../base/startup/init/interfaces/innerkits/up/init/interfaces/innerkits/include/syspara -I../../base/startup/init/interfaces/innerkits/include/token -I../../base/startup/init/interfaces/inn../foundation/distributeddatamgr/relational_store/interfaces/inner_api/dataability/include -I../../foundation/distributeddatamgr/relational_store/nclude -I../../foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include -I../../foundation/distributeddatamgr/relational_storelude -I../../foundation/distributeddatamgr/relational_store/interfaces/inner_api/cloud_data/include -I../../foundation/distributeddatamgr/relationapi/common_type/include -I../../foundation/distributeddatamgr/relational_store/interfaces/inner_api/appdatafwk/include -I../../foundation/distribue/frameworks/common/include -I../../foundation/graphic/graphic_2d/utils/color_manager/export -I../../third_party/skia -I../../third_party/skia/incrty/skia/src/core -I../../third_party/skia/third_party/externals/harfbuzz/src -I../../third_party/skia/third_party/externals/icu/source/common -I.ility_runtime/frameworks/js/napi/inner/napi_ability_common -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/continvice -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/distributed_ability_runtime -I../../foundation/ability/abili/native/appkit/ability_runtime/app -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/recovery -I../../foundation/abrfaces/inner_api/ability_manager/include/continuation -I../../foundation/ability/ability_runtime/frameworks/cj/ffi/context -I../../foundation/windes/innerkits -I../../foundation/window/window_manager/interfaces/innerkits/dm -I../../foundation/window/window_manager/interfaces/innerkits/wm -I.dow_manager/utils/include -I../../foundation/window/window_manager/window_scene -I../../foundation/multimedia/image_framework/interfaces/innerkitsoundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/include -I../../foundation/multimedia/image_framework/frameworks/innerkitsi./foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/include -I../../foundation/multimedia/image_framework/frameworks/ilude -I../../foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/include -I../../foundation/multimedia/image_framework/frameworksude -I../../foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/include -I../../foundation/multimedia/image_framework/frameworksde -I../../foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include -I../../foundation/multimedia/image_framework/frameworkI../../foundation/multimedia/image_framework/interfaces/kits/js/common/include -I../../foundation/multimedia/image_framework/plugins/common/libs/i/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include -I../../foundation/multimedia/image_framework/plugins/manageon/multimedia/image_framework/plugins/manager/include/image -I../../foundation/multimedia/image_framework/interfaces/kits/native/include -I../../f_framework/frameworks/kits/js/common/ndk/include -I../../foundation/multimedia/image_framework/frameworks/kits/js/common/picture_ndk/include -I../mage_framework/frameworks/innerkitsimpl/egl_image/include -I../../foundation/multimedia/image_framework/plugins/manager/include/pluginbase -I../..ge_framework/plugins/common/libs/image/libjpegplugin/include -I../../foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/ser -I../../foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hdr -I../../drivers/peripheral/display/interfaceseripheral/display/hdi_service/gralloc/include -I../../foundation/graphic/graphic_surface/utils/frame_report/export -I../../foundation/graphic/grape -I../../foundation/graphic/graphic_surface/interfaces/inner_api -I../../foundation/graphic/graphic_surface/interfaces/inner_api/surface -I../../_surface/interfaces/inner_api/common -I../../foundation/graphic/graphic_surface/interfaces/inner_api/utils -I../../foundation/graphic/graphic_surftion/graphic/graphic_surface/utils/rs_frame_report_ext/include -I../../foundation/graphic/graphic_surface/utils/trace -I../../foundation/ability/ajs/napi/inner/napi_common -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ability_business_error -I../../foundati/interfaces/inner_api/runtime/include -I../../foundation/multimodalinput/input/common/anco/comm/include -I../../foundation/multimodalinput/input/i -I../../foundation/multimodalinput/input/interfaces/native/innerkits/event/include -I../../foundation/multimodalinput/input/interfaces/native/inn../foundation/multimodalinput/input/util/common/include -I../../foundation/ability/form_fwk/interfaces/inner_api/include -I../../foundation/abilit -I../../foundation/ability/form_fwk/services/include -I../../foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include -I../../foundation/gks/opengl_wrapper/src/EGL/include/private/EGL -I../../third_party/EGL/api -I../../third_party/openGLES/api -I../../foundation/barrierfree/accessib/common/include -I../../third_party/libuv/include -I../../third_party/libuv/src -I../../third_party/libuv/src/unix -I../../foundation/arkui/napi -pi/interfaces/inner_api -I../../foundation/arkui/napi/interfaces/kits -I../../foundation/arkui/napi/native_engine -I../../foundation/arkui/napi/na../foundation/arkui/napi/module_manager -I../../third_party/node/src -I../../foundation/ability/ability_runtime/interfaces/kits/native/appkit/abildation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include -I../../foundation/ability/form_fwk/interfaces/kits/native/include -ability_runtime/interfaces/inner_api/insight_intent/insight_intent_context -I../../foundation/ability/ability_runtime/interfaces/kits/native/abili-I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/insight_intent_executor -I../../foundation/ability/ability_runtimbility/native/ui_extension_ability -I../../foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ui_extension_base -I../../founer/interfaces/include -I../../foundation/window/window_manager/window_scene/common/include -I../../foundation/window/window_manager/window_scene/ifoundation/window/window_manager/window_scene/screen_session_manager/include -I../../foundation/window/window_manager/window_scene/screen_session_../foundation/window/window_manager/window_scene/session_manager/include -I../../foundation/window/window_manager/window_scene/session_manager/incon/window/window_manager/window_scene/session_manager_service/include -I../../foundation/window/window_manager/wmserver/include -I../../foundationerver/include/zidl -I../../foundation/window/window_manager/dm/include -I../../foundation/window/window_manager/dmserver/include -I../../foundationdow_scene/screen_session_manager_client/include -I../../foundation/window/window_manager/wm/include -I../../foundation/window/window_manager/wm/ition/graphic/graphic_2d/rosen/modules -I../../foundation/graphic/graphic_2d/rosen/modules/render_service_client/core -I../../foundation/graphic/grder_service_base/include -I../../foundation/graphic/graphic_2d/interfaces/inner_api/common -I../../foundation/graphic/graphic_2d/interfaces/inner_ation/graphic/graphic_2d/rosen/modules/2d_graphics -I../../foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include -I../../foundation/gdules/2d_graphics/include -I../../foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src -I../../foundation/graphic/graphic_2d/rosen/modules/../../foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter -I../../foundation/graphic/graphic_2d/frameworks/text/intdation/graphic/graphic_2d/frameworks/text/interface/export/rosen_text -I../../foundation/graphic/graphic_2d/frameworks/text/service -I../../foundails/log -I../../foundation/graphic/graphic_2d/rosen/include -I../../foundation/graphic/graphic_2d/rosen/include/common -I../../foundation/graphic/I../../foundation/graphic/graphic_2d/rosen/modules/ressched/include -I../../foundation/graphic/graphic_2d/utils/scoped_bytrace/export -I../../founutils/socketpair/export -I../../foundation/graphic/graphic_surface/sync_fence/include -I../../third_party/openssl/include -Iobj/third_party/openssude -I../../foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/include -I../../foundation/multimodalinput/input/util/napi/incltributeddatamgr/data_share/interfaces/inner_api/common/include -I../../foundation/distributeddatamgr/data_share/interfaces/inner_api/consumer/incltributeddatamgr/data_share/interfaces/inner_api/provider/include -I../../foundation/distributeddatamgr/data_share/frameworks/native/common/includebuteddatamgr/data_share/frameworks/native/consumer/controller/common -I../../foundation/distributeddatamgr/data_share/frameworks/native/consumer/c -I../../foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/service/include -I../../foundation/distributeddatamgr/dataonsumer/include -I../../foundation/distributeddatamgr/data_share/frameworks/native/provider/include -I../../foundation/distributeddatamgr/data_sha/include -I../../foundation/ability/ability_runtime/services/dataobsmgr/include -I../../foundation/distributeddatamgr/kv_store/interfaces/innerkit-I../../foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include -I../../foundation/distributeddatamgr/kv_store/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/include -I../../base/global/i18n/frameworks/intl/entity_recognition/incl8n/frameworks/intl/entity_recognition/phone_number_recognition/include -I../../base/global/i18n/frameworks/intl/include -I../../base/global/i18n/fpgrade/include -I../../base/global/i18n/interfaces/native/inner_api/i18n/include -I../../foundation/communication/ipc/dl_deps -I../../foundation/ce/src/core/dbinder/include -I../../foundation/communication/ipc/ipc/native/src/core/framework/include -I../../foundation/communication/ipc/ipc/natde -I../../base/sensors/miscdevice/interfaces/inner_api/vibrator -I../../foundation/systemabilitymgr/safwk/services/safwk/include -I../../foundatiindow_scene/interfaces/innerkits/include -I../../foundation/window/window_manager/window_scene/session/host/include -I../../foundation/window/windtention_event/service/anr_manager/include -I../../foundation/window/window_manager/window_scene/intention_event/framework/anr_handler/include -I..ow_manager/window_scene/intention_event/utils/include -Igen/foundation/barrierfree/accessibility/common/interface -I../../foundation/barrierfree/aace/include -I../../foundation/resourceschedule/resource_schedule_service/ressched/interfaces/innerkits/ressched_client/include -Igen/foundation/rchedule_service/ressched/interfaces/innerkits/ressched_client -I../../foundation/multimedia/media_library/interfaces/inner_api/media_library_helpeon/multimedia/audio_framework/services/audio_service/client/include -I../../foundation/multimedia/audio_framework/services/audio_service/common/inultimedia/audio_framework/services/audio_policy/client/include -I../../foundation/multimedia/audio_framework/services/audio_policy/common/include dia/audio_framework/services/audio_policy/util/include -I../../foundation/multimedia/audio_framework/services/audio_policy/server/include -I../../o_framework/frameworks/native/audiodefinitions/include -I../../foundation/multimedia/audio_framework/frameworks/native/audiopolicy/include -I../..io_framework/frameworks/native/audiostream/include -I../../foundation/multimedia/audio_framework/frameworks/native/audioutils/include -I../../founamework/frameworks/native/hdiadapter_new/include -I../../foundation/multimedia/audio_framework/frameworks/native/hdiadapter_new/include/common -I./audio_framework/interfaces/inner_api/native/audiocapturer/include -I../../foundation/multimedia/audio_framework/interfaces/inner_api/native/audiondation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include -I../../foundation/multimedia/audio_framework/interfaces/innerinclude -I../../third_party/pulseaudio/sonic -I../../foundation/multimedia/player_framework/interfaces/inner_api/native/audio_haptic/include -I..//frameworks/common/include -I../../base/account/os_account/frameworks/domain_account/include -I../../base/account/os_account/interfaces/innerkits/ude -I../../base/account/os_account/frameworks/ohosaccount/native/include -I../../base/account/os_account/interfaces/innerkits/ohosaccount/native/nt/os_account/frameworks/osaccount/core/include -I../../base/account/os_account/interfaces/innerkits/osaccount/native/include -I../../base/accounterkits/common/include -I../../foundation/barrierfree/accessibility/interfaces/innerkits/acfwk/include -fno-strict-aliasing -Wno-builtin-macro-rede__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-cin -fsplit-lto-unit -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fstack-n -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing laration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=sizeof-array-div -Wno-error=implicit-fallthrough -Wno-error=reorange-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warn-compare -Wno-error=int-in-bool-context -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-unused-but-set-variable -Wno-deprecated-declat-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-ae-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstrinl-overlap-compare -fvisibility=hidden -fdata-sections -ffunction-sections -Wno-non-c-typedef-for-linkage -Os -Werror=return-stack-address -Werror=-Werror=sizeof-array-div -Werror=undefined-var-template -Werror=nonportable-include-path -Werror=user-defined-warnings -Werror=null-pointer-arithmswitch -Werror=absolute-value -Werror=header-guard -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=int-in-bool-context -Werror=xorcated-copy -Werror=unknown-warning-option -Werror=abstract-final-class -Werror=range-loop-construct -Werror=incompatible-pointer-types -DARKUI_CIR-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -_IPC_32BIT -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -DKEY_AUTO_FILL_ABILITY=\"com.ohos.passwordbox/entry/AutoFillAbility\" -DKEY_SMART_AUTO_FILL_ABILl/entry/TextAutoFillAbility\" -Wno-error=deprecated-declarations -DBINDER_IPC_32BIT -Wno-unused-parameter -Wno-incompatible-pointer-types -D_GNU_S0112 -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -DBINDER_IPC_32BIT -DCONFIG_STANDARD_SYSTEM -DBUILD_PUBLIC_VERSION -Wall -Werror -DS2BIT -DBINDER_IPC_32BIT -pipe -Wno-thread-safety-attributes -Wno-thread-safety-analysis -Wno-thread-safety-attributes -Wno-thread-safety-analysis  -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -fvisibility-inlines-hidden -Wno-non-c-typedef-for-linkage -Os -fexceptions tion/arkui/ace_engine/adapter/ohos/entrance/ace_container.cpp -o obj/foundation/arkui/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance_

[OHOS INFO]  User Cpu%: 0.0%

[OHOS INFO]  System Cpu%: 0.0%

[OHOS INFO]  Idle CPU%: 0%

[OHOS INFO]  Total Memory: 15.5GB

[OHOS INFO]  Free Memory: 13.6GB

[OHOS INFO]  Swap Memory: 4.0GB

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /usr/lib/modules/5.15.167.4-microsoft-standard-WSL2

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 4.0K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wsl

[OHOS INFO]  Filesystem: drivers, Size: 200G, Used: 188G, Available: 13G, Use%: 94%, Mounted on: /usr/lib/wsl/drivers

[OHOS INFO]  Filesystem: /dev/sdc, Size: 1007G, Used: 258G, Available: 698G, Use%: 27%, Mounted on: /

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 144K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /usr/lib/wsl/lib

[OHOS INFO]  Filesystem: rootfs, Size: 7.8G, Used: 2.4M, Available: 7.8G, Use%: 1%, Mounted on: /init

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /dev

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 872K, Available: 7.8G, Use%: 1%, Mounted on: /run

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /run/lock

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /run/shm

[OHOS INFO]  Filesystem: tmpfs, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /sys/fs/cgroup

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 76K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg/versions.txt

[OHOS INFO]  Filesystem: none, Size: 7.8G, Used: 76K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg/doc

[OHOS INFO]  Filesystem: C:\, Size: 200G, Used: 188G, Available: 13G, Use%: 94%, Mounted on: /mnt/c

[OHOS INFO]  Filesystem: D:\, Size: 723G, Used: 524G, Available: 199G, Use%: 73%, Mounted on: /mnt/d

[OHOS INFO]  Filesystem: snapfuse, Size: 92M, Used: 92M, Available: 0, Use%: 100%, Mounted on: /snap/lxd/24061

[OHOS INFO]  Filesystem: snapfuse, Size: 64M, Used: 64M, Available: 0, Use%: 100%, Mounted on: /snap/core20/2501

[OHOS INFO]  Filesystem: snapfuse, Size: 64M, Used: 64M, Available: 0, Use%: 100%, Mounted on: /snap/core20/2318

[OHOS INFO]  Filesystem: snapfuse, Size: 92M, Used: 92M, Available: 0, Use%: 100%, Mounted on: /snap/lxd/32662

[OHOS INFO]  Filesystem: snapfuse, Size: 39M, Used: 39M, Available: 0, Use%: 100%, Mounted on: /snap/snapd/21759

[OHOS INFO]  Filesystem: snapfuse, Size: 45M, Used: 45M, Available: 0, Use%: 100%, Mounted on: /snap/snapd/23771

[OHOS ERROR] [NINJA] Traceback (most recent call last):
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] [NINJA]     return func(*args, **kwargs)
[OHOS ERROR] [NINJA]            ^^^^^^^^^^^^^^^^^^^^^
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/ohos_build_module.py", line 70, in run
[OHOS ERROR] [NINJA]     raise exception
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR] [NINJA]     super().run()
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR] [NINJA]     raise exception
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/interface/build_module_interface.py", line 68, in run
[OHOS ERROR] [NINJA]     self._ninja()
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/util/timer_util.py", line 30, in inner
[OHOS ERROR] [NINJA]     res = func(*arg, **kwarg)
[OHOS ERROR] [NINJA]           ^^^^^^^^^^^^^^^^^^^
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja
[OHOS ERROR] [NINJA]     self._target_compilation()
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/modules/ohos_build_module.py", line 112, in _target_compilation
[OHOS ERROR] [NINJA]     self.target_compiler.run()
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/services/ninja.py", line 39, in run
[OHOS ERROR] [NINJA]     self._execute_ninja_cmd()
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/services/ninja.py", line 70, in _execute_ninja_cmd
[OHOS ERROR] [NINJA]     SystemUtil.exec_command(
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/util/system_util.py", line 128, in exec_command
[OHOS ERROR] [NINJA]     LogUtil.get_failed_log(log_path)
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/util/log_util.py", line 209, in get_failed_log
[OHOS ERROR] [NINJA]     LogUtil.get_compiler_failed_log(log_path)
[OHOS ERROR] [NINJA]   File "/root/linan/build/hb/util/log_util.py", line 196, in get_compiler_failed_log
[OHOS ERROR] [NINJA]     raise OHOSException(
[OHOS ERROR] [NINJA] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /root/linan/out/rk3568/error.log, and for moret/linan/out/rk3568/build.log
[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Code:        4000
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Reason:      COMPILE Failed! Please check error in /root/linan/out/rk3568/error.log, and for more build information in /root/
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Error Type:  Ninja build error
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Description: An unknown error occurred while executing 'ninja -C'.
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Solution:    no solution
[OHOS ERROR] [NINJA]
=====build  error=====

解决方法:MobaXterm安装ninja和GN环境搭建这里面搜索 “③ninja问题:”
具体位置:在这里插入图片描述

跑UT及如何推板子

借鉴文章链接:FFI测试用例构建和ndk接口暴露

推包前环境安装

下载完hdc,查看版本即成功

在这里插入图片描述
在这里插入图片描述

添加hdc路径的环境变量(如下图)

在这里插入图片描述

修改hdc权限

hdc shell mount -o remount,rw /

在这里插入图片描述

跑UT及js测试

release: ./build.sh --product-name rk3568 --build-target ark_js_unittest
#编译出带debug信息的调试版本
debug: ./build.sh --product-name rk3568 --build-target ark_js_unittest --gn-args is_debug=true

在这里插入图片描述

libark_jsruntime.so包:/out/rk3568/arkcompiler/ets_runtime/
libark_jsruntime_test.so包:/out/rk3568/test/test/
UT产物JsnapiTest:/tests/unittest/arkcompiler/ets_runtime/
把两个so包和UT产物拷贝到本地

在这里插入图片描述在这里插入图片描述
在这里插入图片描述

烧录及调试

板子烧录前环境安装及配置(问题描述)

1.下载HiHope_DAYU200.zip并解压
2.下载镜像(如图一):环境链接:dayu200镜像包。下载完version-Master_Version-OpenHarmony_4.1.2.5_sp1-20231106_010144-dayu200_img.tar.gz并解压(如图二),把内部文件转移至\HiHope_DAYU200\images下(如图三)
3.双击 \HiHope_DAYU200\烧写工具及指南\windows\DriverAssitant打开安装程序,点击下图所示的“驱动安装”按钮(如图四)
4.打开烧写工具:双击 \HiHope_DAYU200\烧写工具及指南\windows\RKDevTool.exe 打开烧写工具,默认是 Maskrom 模式
5.点击空白处右键导入配置(如图五开始)

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

问题描述:烧录前,执行开发工具后测试设备失败
问题解决:切换发现设备,如何切换看下②图,同时按重启和音量加键,先放重启在放加音量建

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

拓展:
MaskROM (Masked Read-Only Memory)是一种只读存储器,其中的数据是在生产过程中被编程进去的,无法再被修改。它通常用于设备的启动程序,负责加载设备的初始程序或固件。
Loader模式是一种启动模式,允许用户通过Bootloader加载自定义的软件或固件。在Loader模式下,设备可以通过USB或其他介质与计算机进行连接,用户可以通过计算机向设备发送命令或数据,实现烧写固件或其他操作。

在这里插入图片描述

.so包和UT推板子或者手机

手机:将so包推入system/lib64/
板子:将so包推入system/lib/
#例:下面是将.so包和UT推进手机或者板子里面
hdc file send libark_jsruntime.so /data/local/tmp
hdc file send libark_jsruntime_test.so /data/local/tmp
hdc file send JsnapiTest /data/local/tmp

在这里插入图片描述

真机调试

hdc shell
cd data/local/tmp/
chmod 777 JsnapiTest
./JsnapiTest

在这里插入图片描述
在这里插入图片描述

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值