1.新建本地c++的kotlin工程hellohao 如图
2.把开源的oboe源文件src、include、CMakelists.txt、debug-utils复制hellohao目录下
3.修改hellohao\app目录下的CMakelists.txt
cmake_minimum_required(VERSION 3.22.1) project(hellohao LANGUAGES C CXX)get_filename_component(SAMPLE_ROOT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../.. ABSOLUTE) #1返回目录### INCLUDE OBOE LIBRARY ### set (OBOE_DIR ${SAMPLE_ROOT_DIR}/..) add_subdirectory(${OBOE_DIR} ./oboe-bin) #2编译oboe生成目标文件add_library(hellohaoSHAREDnative-lib.cpp # LiveEffectEngine.cpp #如果没有这个文件,不用${OBOE_DIR}/debug-utils/trace.cpp) #3调用非app内的外部c++文件 target_include_directories(he