rk3568 OpenHarmony 3.1.1 Release 编译(踩坑记)-系统内存大小

使用LinuxMint-20.3系统编译OpenHarmony 3.2 Release时遇到如下错误:

[OHOS ERROR] [26/28687] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DOS_ACCOUNT_EXISTS -Iobj/third_party/musl/usr/include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../foundation/arkui/ace_engine -I../../foundation/arkui/ace_engine/frameworks -Iarkui/framework -I../../third_party/zlib -I../../base/global/resource_management/frameworks/resmgr/include -I../../base/global/resource_management/interfaces/inner_api/include -I../../foundation/arkui/ace_engine/adapter/ohos/services/uiservice/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fvisibility=hidden -fdata-sections -ffunction-sections -Wno-non-c-typedef-for-linkage -Os -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -fvisibility-inlines-hidden -Wno-non-c-typedef-for-linkage -Os -c ../../foundation/arkui/ace_engine/frameworks/bridge/common/dom/dom_image_animator.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o
[OHOS ERROR] [27/28687] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DOS_ACCOUNT_EXISTS -Iobj/third_party/musl/usr/include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../foundation/arkui/ace_engine -I../../foundation/arkui/ace_engine/frameworks -Iarkui/framework -I../../third_party/zlib -I../../base/global/resource_management/frameworks/resmgr/include -I../../base/global/resource_management/interfaces/inner_api/include -I../../foundation/arkui/ace_engine/adapter/ohos/services/uiservice/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fvisibility=hidden -fdata-sections -ffunction-sections -Wno-non-c-typedef-for-linkage -Os -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -fvisibility-inlines-hidden -Wno-non-c-typedef-for-linkage -Os -c ../../foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_delegate.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct)  : 0
[OHOS INFO] cache hit (preprocessed)  : 0
[OHOS INFO] cache miss  : 0
[OHOS INFO] hit rate:  0.00% 
[OHOS INFO] mis rate: 0.00% 
[OHOS INFO] ---------------------------------------------
[OHOS INFO] c targets overlap rate statistics
[OHOS INFO] subsystem       	files NO.	percentage	builds NO.	percentage	overlap rate
[OHOS INFO] aafwk           	      21	2.1%	      21	2.1%	1.00
[OHOS INFO] ability         	      21	2.1%	      21	2.1%	1.00
[OHOS INFO] arkXtest        	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] arkcompiler     	     323	31.8%	     323	31.8%	1.00
[OHOS INFO] arkui           	      79	7.8%	      79	7.8%	1.00
[OHOS INFO] barrierfree     	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] commonlibrary   	      39	3.8%	      39	3.8%	1.00
[OHOS INFO] customization   	       3	0.3%	       3	0.3%	1.00
[OHOS INFO] developtools    	      43	4.2%	      43	4.2%	1.00
[OHOS INFO] distributeddatamgr	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] filemanagement  	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] graphic         	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] hdf             	     113	11.1%	     113	11.1%	1.00
[OHOS INFO] hiviewdfx       	      10	1.0%	      10	1.0%	1.00
[OHOS INFO] inputmethod     	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] multimedia      	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] resourceschedule	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] securec         	      78	7.7%	      78	7.7%	1.00
[OHOS INFO] security        	       6	0.6%	       6	0.6%	1.00
[OHOS INFO] startup         	      59	5.8%	      59	5.8%	1.00
[OHOS INFO] test            	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] theme           	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] third_party     	     291	28.6%	     291	28.6%	1.00
[OHOS INFO] thirdparty      	     291	28.6%	     291	28.6%	1.00
[OHOS INFO] updater         	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] window          	       3	0.3%	       3	0.3%	1.00
[OHOS INFO] 
[OHOS INFO] c overall build overlap rate: 1.00
[OHOS INFO] 
[OHOS INFO] 
[OHOS ERROR] Please check build log in /home/ufo/openharmony/rk3568/out/rk3568/build.log
=====build  error=====

添加内存大于16GB,错误消除。但是曾经使用8GB内存编译过同样的源码而没有出现问题,不知什么原因,还是跟交换分区大小有关系?

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
根据引用,你遇到的问题是在运行vite项目时出现了命令错误。根据错误提示信息,"vite"不是内部或外部命令,也不是可运行的程序。这可能是因为你的系统环境中没有安装vite或者没有正确配置vite的路径。 要解决这个问题,你可以按照以下步骤进行操作: 1. 确保你已经在项目中正确安装了vite。你可以使用以下命令来全局安装vite: ``` npm install -g create-vite ``` 2. 确认你的系统环境变量中是否配置了vite的路径。你可以通过在终端中输入以下命令来检查vite是否能够正确运行: ``` vite -v ``` 如果你没有看到vite的版本信息,那么你需要将vite的路径添加到环境变量中。具体的操作取决于你使用的操作系统。 3. 如果你已经正确安装了vite并配置了环境变量,但仍然遇到了问题,那么可能是你的项目中的配置有误。你可以尝试重新安装项目依赖并重新启动项目: ``` npm install npm run dev ``` 如果你按照上述步骤操作后仍然遇到问题,请提供更多的错误信息以便我们更好地帮助你解决问题。<span class="em">1</span> #### 引用[.reference_title] - *1* [使用Vite启动vue项目 通过IP访问](https://blog.csdn.net/wocaishiryr/article/details/124962809)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

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

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值