调用libwebrtc.a+srs(sfu)

编译webrtc,用深圳的方法(webrtc编译):
gn gen out/linux_shenz/ --args=‘is_debug=true target_os=“linux” target_cpu=“x64” is_clang=false treat_warnings_as_errors=false rtc_include_tests=false rtc_use_h264=true is_component_build=false use_custom_libcxx=false rtc_enable_protobuf=false use_rtti=true proprietary_codecs=true use_custom_libcxx_for_host=false’

rtc_include_tests=false//rtc_include_tests:关闭测试代码,如果用libstdc++,编译test部分会报错
use_custom_libcxx=false//使用libstdc++,默认使用libc++
use_rtti=true//这里用了rtti,在CMakeLists中要保持一致
is_clang=false//使用gcc编译器,默认使用clang编译器
rtc_enable_protobuf=false//不使用protobuf
更多可以去看webrtc(native C++)+srs(sfu

猜你喜欢

转载自blog.csdn.net/weixin_43466192/article/details/127004773
srs