一、扩展动态库:
动态库在ffmpeg编译时用语句,enable shared;
生成.so文件。加载时使用
ADD_LIBRARY(libname [SHARED|STATIC|MODULE] [EXCLUDE_FROM_ALL] source1 source2 ... sourceN)
比如:
add_library( imported-lib SHARED IMPORTED )IMPORTED表示只需要导入,不需要构建so库设置so库的路径set_target_PRoperties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)举例:
set_target_properties( imported-lib // so库的名称 PROPERTIES IMPORTED_LOCATION // import so库 libs/libimported-lib.so // so库路径)新闻热点
疑难解答