Cocos Creator v3.6.1-oh导出的OpenHarmony项目编译失败

开发编译环境

操作系统:Mac【window也遇到一样的错误】

Creator 版本:Cocos Creator v3.6.1-oh 2022.09.23

DevEco版本:DevEco Studio 3.0 Release v3.0.0.993

根据https://ost.51cto.com/posts/18224 这篇文档进行OpenHarmony项目导出,在使用​​DevEcoStudio​​打开编译时遇到错误。

Run错误信息:

hvigor ERROR: Failed :entry:BuildNativeWithNinja…
hvigor ERROR: ninja: Entering directory `/Users/fubinchen/cocos-demo2/cocos-tutorial-airplane/airplane/native/engine/openharmony/entry/.cxx/default/default/armeabi-v7a’
[1/3] Building CXX object CMakeFiles/cocos_engine.dir/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp.o
FAILED: CMakeFiles/cocos_engine.dir/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp.o
/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/llvm --sysroot=/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/sysroot -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_UUID_FORCE_AUTO_LINK -DCC_EDITOR=0 -DCC_NETMODE=0 -DCC_NETMODE_CLIENT=0 -DCC_NETMODE_HOST_SERVER=2 -DCC_NETMODE_LISTEN_SERVER=1 -DCC_PLATFORM=10 -DCC_PLATFORM_ANDROID=3 -DCC_PLATFORM_EMSCRIPTEN=9 -DCC_PLATFORM_IOS=1 -DCC_PLATFORM_LINUX=6 -DCC_PLATFORM_MACOS=4 -DCC_PLATFORM_MAC_IOS=1 -DCC_PLATFORM_MAC_OSX=4 -DCC_PLATFORM_NX=8 -DCC_PLATFORM_OHOS=5 -DCC_PLATFORM_OPENHARMONY=10 -DCC_PLATFORM_QNX=7 -DCC_PLATFORM_WINDOWS=2 -DCC_USE_AUDIO=1 -DCC_USE_DEBUG_RENDERER=0 -DCC_USE_DRAGONBONES=1 -DCC_USE_EDITBOX=0 -DCC_USE_GEOMETRY_RENDERER=0 -DCC_USE_GLES3 -DCC_USE_JOB_SYSTEM_TASKFLOW=0 -DCC_USE_JOB_SYSTEM_TBB=0 -DCC_USE_MIDDLEWARE=1 -DCC_USE_OCCLUSION_QUERY=0 -DCC_USE_PHYSICS_PHYSX=0 -DCC_USE_SOCKET=0 -DCC_USE_SPINE=1 -DCC_USE_VIDEO=0 -DCC_USE_WEBP=1 -DCC_USE_WEBSOCKET_SERVER=0 -DCC_USE_WEBVIEW=0 -DCC_USE_XR=0 -DTBB_USE_EXCEPTIONS=0 -DUSE_V8_DEBUGGER=0 -D__OPENHARMONY__=1 -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cmake/…/external/sources -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/ext/usr/include -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/include -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/include/v8 -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/include/sqlite -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/include/png16 -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/cmake/…/ohos/armeabi-v7a/include/uv -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/core -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/editor-support -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/bindings/jswrapper -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources/EGL -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources/khronos -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources/pvmp3dec/src -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources/pvmp3dec/include -I/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/sources/tremolo/Tremolo -march=armv7a -fvisibility=hidden -fvisibility-inlines-hidden -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -march=armv7a -D__MUSL__ -fPIC -std=c++17 -Werror=return-type -MD -MT CMakeFiles/cocos_engine.dir/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp.o -MF CMakeFiles/cocos_engine.dir/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp.o.d -o CMakeFiles/cocos_engine.dir/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp.o -c /Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp
clang++: warning: argument unused during compilation: ‘–gcc-toolchain=/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/llvm’ [-Wunused-command-line-argument]
/Applications/CocosCreator/Creator/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp:248:12: error: typedef ‘OH_NativeXComponent_TouchEvent’ cannot be referenced with a struct specifier
struct OH_NativeXComponent_TouchEvent touchEvent;
^
/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/sysroot/usr/include/ace/xcomponent/native_interface_xcomponent.h:155:3: note: declared here
} OH_NativeXComponent_TouchEvent;
^
1 error generated.
ninja: build stopped: subcommand failed.
hvigor ERROR: A problem occurred in entry module:
ERROR: Cause: Tools execution failed.

     ERROR: Solution: Please check the message from tools.

Problems信息:

In included file: unknown rune table for this platform -- do you mean to define _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE?
/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/llvm/bin/../include/c++/v1/__locale:514:3:
note: error occurred here No matching member function for call to 'getInterface' Cannot initialize object parameter of type 'cc::BasePlatform' with an expression of type 'cc::OpenHarmonyPlatform' Cannot initialize object parameter of type 'cc::UniversalPlatform' with an expression of type 'cc::OpenHarmonyPlatform' Typedef 'OH_NativeXComponent_TouchEvent' cannot be referenced with a struct specifier
/Users/fubinchen/Library/OpenHarmony/Sdk/native/3.2.7.5/sysroot/usr/include/ace/xcomponent/native_interface_xcomponent.h:155:3:
note: declared here Cannot initialize object parameter of type 'cc::UniversalPlatform' with an expression of type 'cc::OpenHarmonyPlatform'

从现象上看,应该是因为OpenHarmony的SDK已经更新,使用方式已经发生变化。
解决方案:
找到引擎源码文件:OpenHarmonyPlatform.cpp(creator解压路径\resources\resources\3d\engine\native\cocos\platform\openharmony下)找到

struct OH_NativeXComponent_TouchEvent touchEvent;

改成

OH_NativeXComponent_TouchEvent touchEvent;

重新编译即可

感谢回复,改完编译通过打包并安装成功,但是跑起来黑屏。

08-05 09:41:40.079 249-1433/multimodalinput I 02800/InputWindowsManager: in PrintDisplayInfo, pointerHotAreas:x:0,y:0,width:720,height:30
08-05 09:41:40.080 249-1433/multimodalinput I 02800/InputWindowsManager: in PrintDisplayInfo, displayInfos,id:0,x:0,y:0,width:720,height:1280,name:0isplay ,uniq:default0,direction:0
08-05 09:41:40.080 249-1433/multimodalinput W 02800/TimeCostChk: in ~TimeCostChk, Time cost overtime (8516,(us)>300(us)) when Reason:ServerMsgHandler::OnMsgHandler,chk:overtime 300(us),param1:1012,param2:0
08-05 09:41:40.080 1555-1555/com.ohos.systemui I 01400/OHOS::ROSEN: RSUIDirector::GoForeground
08-05 09:41:40.080 1555-1699/com.ohos.systemui I 03900/Ace: [ui_content_impl.cpp(Foreground)-(-1)] UIContentImpl: window foreground
08-05 09:41:40.081 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.082 518-518/render_service E 01400/OHOS::RS: RSPhysicalScreenProcessor::ProcessSurface: failed to createLayer for node(id: 2181843386402)
08-05 09:41:40.084 583-963/hiview I 02d10/HiView-SysEventSource: Parser: parser result domain_=COMMONEVENT eventName_=PUBLISH
08-05 09:41:40.085 583-975/hiview I 02d10/HiView-SysEventService: Convert2SysEvent: domain is COMMONEVENT, eventName is PUBLISH.
08-05 09:41:40.085 1523-1797/com.ohos.launcher I 04200/WindowImpl: <2346>UpdateWindowState: [Client] Window 8, EntryView WindowState to set:6
08-05 09:41:40.085 583-975/hiview W 02d01/EventLogger: IsInterestedPipelineEvent: event: id:0x0, eventName:PUBLISH : EventLogger don’t care and don’t block other processes
08-05 09:41:40.087 518-518/render_service E 01400/OHOS::ROSEN: RsDebug RSSurfaceOhosRaster::FlushFrame fence:99
08-05 09:41:40.087 518-518/render_service E 01400/Composer: SetScreenClientInfo: SetScreenClientDamage failed, ret is -5
08-05 09:41:40.088 254-278/resource_schedu I 04200/WindowManagerAgentStub: <31>OnRemoteRequest: WindowManagerAgentStub::OnRemoteRequest code is 4
08-05 09:41:40.088 269-317/device_usage_st I 08800/CesFwk: [common_event_listener.cpp:(NotifyEvent):34] enter
08-05 09:41:40.088 1523-1741/com.ohos.launcher I 03900/Ace: [ui_content_impl.cpp(Foreground)-(-1)] UIContentImpl: window foreground
08-05 09:41:40.089 254-1599/resource_schedu I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 1, flags= 1.
08-05 09:41:40.089 583-963/hiview I 02d10/HiView-SysEventSource: Parser: parser result domain_=AAFWK eventName_=APP_FOREGROUND
08-05 09:41:40.090 269-1631/device_usage_st I 08800/CesFwk: [common_event_listener.cpp:(OnReceiveEvent):98] enter common.event.UNLOCK_SCREEN
08-05 09:41:40.090 269-1631/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_core.cpp(OnReceiveEvent):117] action is common.event.UNLOCK_SCREEN, userID is 100
08-05 09:41:40.090 254-1599/resource_schedu I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 0, flags= 1.
08-05 09:41:40.090 583-975/hiview I 02d10/HiView-SysEventService: Convert2SysEvent: domain is AAFWK, eventName is APP_FOREGROUND.
08-05 09:41:40.090 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# start##code = 5
08-05 09:41:40.090 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# CallingPid = 269, CallingUid = 3048, code = 5
08-05 09:41:40.090 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# start.
08-05 09:41:40.092 444-444/bgtaskmgr_servi I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 1, flags= 1.
08-05 09:41:40.092 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# CallingPid = 269, CallingUid = 3048, code = 5
08-05 09:41:40.092 444-444/bgtaskmgr_servi I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.tag.IPCObjectProxy label u:object_r:hilog_param:s0
08-05 09:41:40.092 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# start.
08-05 09:41:40.092 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# end.
08-05 09:41:40.092 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin:DispatchResource type:1, value:2
08-05 09:41:40.092 444-2264/bgtaskmgr_servi I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 1, flags= 1.
08-05 09:41:40.092 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin::OnDispatchResource success.
08-05 09:41:40.092 254-2636/resource_schedu I 06604/ueaServer-IntelliSenseServer: Get app info:2509 20010035 com.cocos.openharmony 2
08-05 09:41:40.093 262-262/memmgrservice I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.tag.IPCProcessSkeleton label u:object_r:hilog_param:s0
08-05 09:41:40.093 262-262/memmgrservice I 01799/MemMgr: AppStateObserver::OnAbilityStateChanged called, uid=20010035, pid=2509, bundleName=com.cocos.openharmony FOREGROUND
08-05 09:41:40.093 518-518/render_service I 01400/DISP: [Apply@hdi_drm_composition.cpp:295] set the connector id: 136, propId 20, crtcId 85
08-05 09:41:40.093 262-262/memmgrservice I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 0, flags= 1.
08-05 09:41:40.093 262-262/memmgrservice I 01799/MemMgr: AppStateObserver::OnForegroundApplicationChanged uid=20010035, bundleName=com.cocos.openharmony, state=2,
08-05 09:41:40.093 262-421/memmgrservice I 01799/MemMgr: ReclaimPriorityManager::UpdateReclaimPriorityInner called, pid=2509, bundleUid=20010035, bundleName=com.cocos.openharmony, reason=FOREGROUND
08-05 09:41:40.093 262-421/memmgrservice I 01799/MemMgr: ReclaimPriorityManager::UpdatePriorityByProcStatus : bundle[uid_=20010035,name=com.cocos.openharmony,priority=400], proc[pid_=2509, uid=20010035, isFreground=1, isBackgroundRunning=0, isSuspendDelay=0, isEventStart=0, isDataAbilityStart=0, isDistDeviceConnected=0, extensionBindStatus=0], priority:400–>0
08-05 09:41:40.093 262-421/memmgrservice I 01799/MemMgr: BundlePriorityInfo::UpdatePriority bundleName=com.cocos.openharmony, priority=0
08-05 09:41:40.094 269-1626/device_usage_st I 01c06/TimeService: [time_service_client.cpp] GetBootTimeMs# Result: 2497938
08-05 09:41:40.094 262-1195/memmgrservice I 01799/MemMgr: ReclaimStrategyManager::HandleAppStateChanged_ pid:2509 bundle:20010035 com.cocos.openharmony userId:100 score:0 action:APP_FOREGROUND
08-05 09:41:40.094 269-317/device_usage_st I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.tag.AppexecfwkCore label u:object_r:hilog_param:s0
08-05 09:41:40.094 262-421/memmgrservice I 01799/MemMgr: KernelInterface::EchoToPath echo 0 > /proc/2509/oom_score_adj
08-05 09:41:40.094 269-317/device_usage_st I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.domain.d001100 label u:object_r:hilog_param:s0
08-05 09:41:40.094 269-317/device_usage_st I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 1, flags= 1.
08-05 09:41:40.094 269-317/device_usage_st I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.tag.IPCObjectProxy label u:object_r:hilog_param:s0
08-05 09:41:40.095 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# start##code = 5
08-05 09:41:40.095 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# CallingPid = 269, CallingUid = 3048, code = 5
08-05 09:41:40.095 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# start.
08-05 09:41:40.095 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# end.
08-05 09:41:40.095 269-1626/device_usage_st I 01c06/TimeService: [time_service_client.cpp] GetBootTimeMs# Result: 2497941
08-05 09:41:40.096 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(ReportModuleEvent):592] ReportModuleEvent called
08-05 09:41:40.096 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(ReportEvent):100] ReportEvent, B time is 1501891200000, E time is 1501977600000, userId is 100,
08-05 09:41:40.096 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(NotifyStatsChanged):84] NotifyStatsChanged stat change is 1, user is 100
08-05 09:41:40.096 583-963/hiview I 02d10/HiView-SysEventSource: Parser: parser result domain_=AAFWK eventName_=ABILITY_ONFOREGROUND
08-05 09:41:40.097 444-444/bgtaskmgr_servi I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name hilog.loggable.tag.IPCProcessSkeleton label u:object_r:hilog_param:s0
08-05 09:41:40.097 583-975/hiview I 02d10/HiView-SysEventService: Convert2SysEvent: domain is AAFWK, eventName is ABILITY_ONFOREGROUND.
08-05 09:41:40.097 444-444/bgtaskmgr_servi I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 0, flags= 1.
08-05 09:41:40.098 269-1626/device_usage_st E 01120/BundleMgrService: [bundle_mgr_proxy.cpp(GetParcelableInfo):2714] reply result false
08-05 09:41:40.098 269-1626/device_usage_st E 01120/BundleMgrService: [bundle_mgr_proxy.cpp(GetApplicationInfo):105] fail to GetApplicationInfo from server
08-05 09:41:40.098 269-1626/device_usage_st E 01710/BUNDLE_ACTIVE: [bundle_active_group_controller.cpp(IsBundleInstalled):377] IsBundleInstalled bundle is not installed!
08-05 09:41:40.098 269-1626/device_usage_st E 01710/BUNDLE_ACTIVE: [bundle_active_group_controller.cpp(ReportEvent):226] Report an uninstalled package event, return!
08-05 09:41:40.098 254-409/resource_schedu I 01702/CgroupAdjuster: AdjustProcessGroup for 1545, source : 8
08-05 09:41:40.098 254-409/resource_schedu I 01702/CgroupAdjuster: AdjustProcessGroup for 2509, source : 8
08-05 09:41:40.098 444-2264/bgtaskmgr_servi I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 0, flags= 1.
08-05 09:41:40.098 583-975/hiview W 02d01/EventLogger: IsInterestedPipelineEvent: event: id:0x0, eventName:ABILITY_ONFOREGROUND : EventLogger don’t care and don’t block other processes
08-05 09:41:40.099 269-317/device_usage_st I 01c06/TimeService: [time_service_client.cpp] GetBootTimeMs# Result: 2497945
08-05 09:41:40.099 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin::OnDispatchResource success.
08-05 09:41:40.099 269-317/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_app_state_obsever.cpp(OnAbilityStateChanged):75] BundleActiveAppStateObserver::OnAbilityStateChanged handler not null, send report event msg
08-05 09:41:40.099 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin:DispatchResource type:5, value:0
08-05 09:41:40.100 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin::OnDispatchResource success.
08-05 09:41:40.100 254-398/resource_schedu I 01700/RSS: SocPerfPlugin: socperf->WINDOW_SWITCH
08-05 09:41:40.100 269-315/device_usage_st I 01100/AppexecfwkCore: [application_state_observer_stub.cpp(OnRemoteRequest:57)]ApplicationStateObserverStub::OnReceived, code = 0, flags= 1.
08-05 09:41:40.100 254-2636/resource_schedu I 06604/ueaServer-IntelliSenseServer: [ReportWindowFocus]:2509 get focus
08-05 09:41:40.100 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_report_handler.cpp(ProcessEvent):39] MSG_REPORT_EVENT CALLED
08-05 09:41:40.100 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# start##code = 5
08-05 09:41:40.100 254-1408/resource_schedu I 08800/CesFwk: [common_event_listener.cpp:(NotifyEvent):34] enter
08-05 09:41:40.100 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# CallingPid = 269, CallingUid = 3048, code = 5
08-05 09:41:40.100 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# start.
08-05 09:41:40.100 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# end.
08-05 09:41:40.100 269-1626/device_usage_st I 01c06/TimeService: [time_service_client.cpp] GetBootTimeMs# Result: 2497946
08-05 09:41:40.100 1555-1555/com.ohos.systemui I 01400/OHOS::ROSEN: RSUIDirector::GoForeground
08-05 09:41:40.100 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# start##code = 5
08-05 09:41:40.101 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnRemoteRequest# CallingPid = 269, CallingUid = 3048, code = 5
08-05 09:41:40.101 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# start.
08-05 09:41:40.101 440-440/time_service I 01c06/TimeService: [time_service_stub.cpp] OnGetBootTimeMs# end.
08-05 09:41:40.101 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(NotifyStatsChanged):84] NotifyStatsChanged stat change is 1, user is 100
08-05 09:41:40.101 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(ReportEvent):100] ReportEvent, B time is 1501891200000, E time is 1501977600000, userId is 100,
08-05 09:41:40.101 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_service.cpp(NotifyStatsChanged):84] NotifyStatsChanged stat change is 1, user is 100
08-05 09:41:40.101 254-1375/resource_schedu I 08800/CesFwk: [common_event_listener.cpp:(OnReceiveEvent):123] end
08-05 09:41:40.102 269-1626/device_usage_st I 01710/BUNDLE_ACTIVE: [bundle_active_user_history.cpp(ReportUsage):196] RegisterGroupCallBack will ReportUsage
08-05 09:41:40.103 1523-1523/com.ohos.launcher I 0001b/Launcher_Default: EntryView --> onPageShow
08-05 09:41:40.103 518-1964/render_service I 01400/OHOS::RS: RsDebug RSRenderServiceListener::OnBufferAvailable node id:6635724472321
08-05 09:41:40.104 1523-1523/com.ohos.launcher I 01400/OHOS::ROSEN: RSUIDirector::GoForeground
08-05 09:41:40.105 254-409/resource_schedu I 01702/CgroupAdjuster: AdjustProcessGroup for 1545, source : 10
08-05 09:41:40.107 254-409/resource_schedu I 01702/CgroupAdjuster: ApplyProcessGroup Set 1545’s cgroup from 2 to 0.
08-05 09:41:40.108 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin:DispatchResource type:8, value:0
08-05 09:41:40.109 254-405/resource_schedu I 01700/RSS: FrameAwarePlugin::OnDispatchResource success.
08-05 09:41:40.109 254-2636/resource_schedu I 06604/ueaServer-IntelliSenseServer: [ReportMessage]pid 1545 change to background.
08-05 09:41:40.110 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.110 518-518/render_service E 01400/OHOS::RS: RsDebug RSComposerAdapter::CreateLayer: node(10776072945680) has no available buffer.
08-05 09:41:40.110 518-518/render_service E 01400/OHOS::RS: RSPhysicalScreenProcessor::ProcessSurface: failed to createLayer for node(id: 10776072945680)
08-05 09:41:40.110 518-518/render_service E 01400/OHOS::RS: RsDebug RSComposerAdapter::CreateLayer: node(2181843386402) has no available buffer.
08-05 09:41:40.110 518-518/render_service E 01400/OHOS::RS: RSPhysicalScreenProcessor::ProcessSurface: failed to createLayer for node(id: 2181843386402)
08-05 09:41:40.111 1555-1693/com.ohos.systemui E 01130/EventHandler: SendTimingEvent: SendTime is before now systime, change to 0 delaytime Event
08-05 09:41:40.113 518-518/render_service E 01400/OHOS::ROSEN: RsDebug RSSurfaceOhosRaster::FlushFrame fence:98
08-05 09:41:40.113 518-518/render_service E 01400/Composer: SetScreenClientInfo: SetScreenClientDamage failed, ret is -5
08-05 09:41:40.116 1555-1698/com.ohos.systemui E 01130/EventHandler: SendTimingEvent: SendTime is before now systime, change to 0 delaytime Event
08-05 09:41:40.117 1523-1725/com.ohos.launcher E 01130/EventHandler: SendTimingEvent: SendTime is before now systime, change to 0 delaytime Event
08-05 09:41:40.124 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.132 1523-1716/com.ohos.launcher I 01400/OHOS::ROSEN: RootNode RecentView: Invisible
08-05 09:41:40.132 1523-1716/com.ohos.launcher I 01400/OHOS::ROSEN: RSSurfaceOhosGl:RequestFrame, eglsurface is 0x2ea16a0, width is 720, height is 1280
08-05 09:41:40.138 1523-1716/com.ohos.launcher W 01400/SyncFence: ReadFromMessageParcel fence is invalid : -1
08-05 09:41:40.139 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.151 1523-1716/com.ohos.launcher I 01400/OHOS::ROSEN: RootNode RecentView: Invisible
08-05 09:41:40.153 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.155 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_VolumePanel: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.155 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_DropdownPanel: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.156 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_BannerNotice: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.156 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_VolumePanel: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.156 1555-1669/com.ohos.systemui I 01400/OHOS::ROSEN: RSSurfaceOhosGl:RequestFrame, eglsurface is 0x34405b0, width is 720, height is 30
08-05 09:41:40.157 1555-1669/com.ohos.systemui W 01400/SyncFence: ReadFromMessageParcel fence is invalid : -1
08-05 09:41:40.164 1555-1669/com.ohos.systemui I 01400/OHOS::ROSEN: RSSurfaceOhosGl:RequestFrame, eglsurface is 0x361f410, width is 720, height is 72
08-05 09:41:40.165 1555-1669/com.ohos.systemui W 01400/SyncFence: ReadFromMessageParcel fence is invalid : -1
08-05 09:41:40.168 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.173 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_DropdownPanel: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.173 1555-1669/com.ohos.systemui E 01400/OHOS::ROSEN: Root SystemUi_BannerNotice: Negative width or height [-2147483648 -2147483648]
08-05 09:41:40.177 583-963/hiview I 02d10/HiView-SysEventSource: Parser: parser result domain_=GRAPHIC eventName_=JANK_FRAME_SKIP
08-05 09:41:40.178 583-975/hiview I 02d10/HiView-SysEventService: Convert2SysEvent: domain is GRAPHIC, eventName is JANK_FRAME_SKIP.
08-05 09:41:40.179 583-975/hiview W 02d01/EventLogger: IsInterestedPipelineEvent: event: id:0x0, eventName:JANK_FRAME_SKIP : EventLogger don’t care and don’t block other processes
08-05 09:41:40.182 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.196 518-518/render_service I 0a002/PARAM: [param_selinux.c:168]SelinuxReadParamCheck name rosen.occlusion.so.enabled label u:object_r:default_param:s0
08-05 09:41:40.449 2509-2544/com.cocos.openharmony W 03900/LOGLIMIT: ==LOGS OVER PROC QUOTA, 1243 DROPPED==
08-05 09:41:40.449 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B38680, nativeArgv: 024D3580
08-05 09:41:40.449 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B38680, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.451 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B46700, nativeArgv: 024D3580
08-05 09:41:40.451 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B46700, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.452 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B37DC0, nativeArgv: 024D3580
08-05 09:41:40.452 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B37DC0, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.453 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B51990, nativeArgv: 024D3580
08-05 09:41:40.453 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B51990, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.454 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3BE50, nativeArgv: 024D3580
08-05 09:41:40.455 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3BE50, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.456 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B40AC0, nativeArgv: 024D3580
08-05 09:41:40.456 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B40AC0, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.457 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B36D70, nativeArgv: 024D3580
08-05 09:41:40.457 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B36D70, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.458 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03AEA230, nativeArgv: 024D3580
08-05 09:41:40.459 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03AEA230, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.460 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B023F0, nativeArgv: 024D3580
08-05 09:41:40.460 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B023F0, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.461 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B01E60, nativeArgv: 024D3580
08-05 09:41:40.461 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B01E60, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.462 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B96560, nativeArgv: 024D3580
08-05 09:41:40.462 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B96560, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.464 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B4B0D0, nativeArgv: 024D3580
08-05 09:41:40.464 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B4B0D0, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.465 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B57200, nativeArgv: 024D3580
08-05 09:41:40.465 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B57200, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.466 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B40590, nativeArgv: 024D3580
08-05 09:41:40.466 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B40590, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.468 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B5BDE0, nativeArgv: 024D3580
08-05 09:41:40.468 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B5BDE0, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.469 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B31C30, nativeArgv: 024D3580
08-05 09:41:40.469 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B31C30, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.470 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B68440, nativeArgv: 024D3580
08-05 09:41:40.470 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B68440, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.472 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B421F0, nativeArgv: 024D3580
08-05 09:41:40.472 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B421F0, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.473 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3A2B0, nativeArgv: 024D3580
08-05 09:41:40.473 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3A2B0, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.474 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B56240, nativeArgv: 024D3580
08-05 09:41:40.474 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B56240, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.476 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B2B340, nativeArgv: 024D3580
08-05 09:41:40.476 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B2B340, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.477 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B68E70, nativeArgv: 024D3580
08-05 09:41:40.477 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B68E70, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.478 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B36560, nativeArgv: 024D3580
08-05 09:41:40.478 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B36560, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.479 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B51F60, nativeArgv: 024D3580
08-05 09:41:40.480 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B51F60, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.481 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3A030, nativeArgv: 024D3580
08-05 09:41:40.481 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B3A030, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.482 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B28D10, nativeArgv: 024D3580
08-05 09:41:40.482 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B28D10, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.483 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BA5B00, nativeArgv: 024D3580
08-05 09:41:40.483 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BA5B00, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.485 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BB0AD0, nativeArgv: 024D3580
08-05 09:41:40.485 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BB0AD0, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.486 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B84D00, nativeArgv: 024D3580
08-05 09:41:40.486 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B84D00, nativeArgv: 024D3580, resultValue: 02599C90
08-05 09:41:40.487 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BBC070, nativeArgv: 024D3580
08-05 09:41:40.487 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03BBC070, nativeArgv: 024D3580, resultValue: 03B86A50
08-05 09:41:40.489 2509-2544/com.cocos.openharmony I 03900/NAPI: [native_api.cpp(napi_call_function)] engine: 025C8020, nativeRecv: 00000000, nativeFunc: 03B2A200, nativeArgv: 024D3580

哎,做原生太难了

跑的是什么demo?构建的选项的配置方便看看么?

任重而道远 :grinning: :grinning: :grinning:

跑的是文章里面介绍的“鹰击长空”,构建的选项配置如下:

感觉好像是SDK不匹配,http://download.ci.openharmony.cn/version/Master_Version/OpenHarmony_3.2.5.6/20220926_181435/version-Master_Version-OpenHarmony_3.2.5.6-20220926_181435-ohos-sdk-full.tar.gz
试试这个SDK呢。

使用方法如下:

SDK目录解压至OHOS_SDK\native(可以在IDE里查看目录),点开IDE,工具栏File-》Setting即可

注意备份原来的SDK目录

解压SDK,找到ohos-sdk\windows里的native-windows-3.2.5.6-Beta2.zip,在进行解压至3.2.5.5的目录里。

修改OHOS_SDK\native\3.2.5.5\oh-uni-package.json(解压后的NDK),修改版本号为3.2.5.5。这一步修改是为了避免提示NDK升级

image

感谢详细的步骤,因为我是Mac电脑环境。一些步骤对不上,Mac上现在能下的sdk是3.2.7.5,和你的不一致。感觉问题应该是你说的SDK不匹配,我去想办法换个windows环境试试。

替换了上面的SDK(native-windows-3.2.5.6-Beta2.zip)之后,编译的hap包安装之后依然是黑屏显示,还有啥原因呢?

我这边试了下,ets也升级了,需要还原下,操作步骤入下:
(1)备份原来的ets文件,把目录下的3.2.5.5(注意不同的IDE下载的版本不一样,例如DEVECO 993里可能是3.2.8.3,如果不是3.2.5.5则可以不需要备份,可以共存)改成3.2.5.5_backup,如下图:

(2)解压SDK,找到ohos-sdk\windows里的ets-windows-3.2.5.6-Beta2:

(3)解压至OHOS_SDK/ets目录,如下图:

(4)把ets目录改成3.2.5.5,如下图:

(5)修改OHOS_SDK\native\3.2.5.5\oh-uni-package.json(解压后的ETS目录),修改版本号为3.2.5.5。这一步修改是为了避免提示ETS升级

(6)打开命令行进入目录OHOS_SDK\ets\3.2.5.5\build-tools\ets-loader,并执行npm install,如下图(注意目录要匹配):

注意事项:如果npm install报错,注意是否配置了华为的源,配置方法如下:

npm config set registry https://repo.huaweicloud.com/repository/npm/

(7)在deveco里,clear project之后,重新build,即可。clear project操作如下图:

替换了上面的ets之后编译完成,应用正常运行了。

:ok_hand: :ok_hand: :+1: :+1: :+1:

编译时报这个错误是什么原因呢??
C:\Users\fanwangah\nodejs\node.exe E:\OpenHarmony_CodeLabs\OpenHarmony_900\Code\cocs\cocos_code\openharmony\node_modules@ohos\hvigor\bin\hvigor.js --mode module assembleHap

hvigor Finished :entry:PreBuild… after 170 ms
hvigor Finished :entry:LegacyMergeProfile… after 3 ms 780 μs
hvigor Finished :entry:LegacyMakePackInfo… after 2 ms 80 μs
hvigor ERROR: Failed :entry:BuildNativeWithCmake…
hvigor ERROR: – The CXX compiler identification is Clang 12.0.1
– Check for working CXX compiler: C:/Users/fanwangah/AppData/Local/OpenHarmony/SDK_993/native/3.2.5.5/llvm/bin/clang++.exe
– Check for working CXX compiler: C:/Users/fanwangah/AppData/Local/OpenHarmony/SDK_993/native/3.2.5.5/llvm/bin/clang++.exe – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Configuring incomplete, errors occurred!
See also “E:/OpenHarmony_CodeLabs/OpenHarmony_900/Code/cocs/cocos_code/openharmony/entry/.cxx/default/default/armeabi-v7a/CMakeFiles/CMakeOutput.log”.
See also “E:/OpenHarmony_CodeLabs/OpenHarmony_900/Code/cocs/cocos_code/openharmony/entry/.cxx/default/default/armeabi-v7a/CMakeFiles/CMakeError.log”.
hvigor ERROR: A problem occurred in entry module:
ERROR: Cause: Tools execution failed.
CMake Error at CMakeLists.txt:15 (include):
include could not find load file:

D:/Harmonys/Project/Demos/cocos-tutorial-airplane-master/airplane/native/engine/common/CMakeLists.txt

CMake Error at CMakeLists.txt:17 (cc_openharmony_before_target):
Unknown CMake command “cc_openharmony_before_target”.

     ERROR: Solution: Please check the message from tools.

Process finished with exit code -1

使用的是哪个引擎版本?是3.6.1-oh么?使用了自定义引擎么?

哥,这个你最后找到问题了吗