1、项目目录├──build│├──BUILD.gn│└──libbehaviortree.so第三方so文件├──BUILD.gn├──bundle.json├──include│├──implutils.h│├──singleinstance.h│├──taskbehavior.h│├──taskexecutor.h│├──task.h│└──util.h└──src├──task.cpp├──taskexecutor.cpp└──tasktest.cpp2、动态库编译配置动态库路径buildlibbehaviortree.so动态库配置buildBUILD.gnimport("buildohos.gni")oho...
2023-03-31 16:49:38 8028浏览 5点赞 1回复 1收藏
cmake编译BehaviorTree项目为例,下载[BehaviorTree](https:github.comBehaviorTreeBehaviorTree.CPP)到openharmonythirdparty目录1、启动openharmony容器编译sdkdockerrunitv$(pwd):homeopenharmonyswr.cnsouth1.myhuaweicloud.comopenharmonydockeropenharmonydocker:1.0.0.build.shproductnameohossdk–ccachesdk生成目录homeopenharmonyoutsdkpackagesohossdklinuxnative2、cmake编译项目cdhomeopenharmonythirdpartyBehavi...
2023-03-31 16:13:56 8350浏览 1点赞 3回复 1收藏