修改J6 OE包 v3.0.22 DSP示例包以生成动态库,cmakelist修改如下,运行build_x86.sh可成功生成动态库,build_aarch64.sh报以下错误, 基于工具链示例修改了cmakelist,生产动态链接库,原示例为horizon_j6_open_explorer_v3.0.22-py310_20240924/samples/ucp_tutorial/custom_operator/dsp_sample/dsp_code
仅修改了示例的cmakelist
# add_executable(vdsp0 ./main.cc ${SAMPLE_SRC} )
add_library(vdsp1 SHARED ./main.cc ${SAMPLE_SRC} )
# target_link_libraries(vdsp0 # -Wl,--whole-archive libhb_vdsp0.a # -Wl,--no-whole-archive ${common_link_libraries})
target_link_libraries(vdsp1 -Wl,--whole-archive libhb_vdsp0.a -Wl,--no-whole-archive ${common_link_libraries})