0
我正在嘗試將WebRTC集成到一個OSX桌面應用程序中,當我嘗試鏈接webRTC庫時遇到一些錯誤。問題是:osx - WebRTC鏈接問題
Undefined symbols for architecture x86_64:
"_AVMediaTypeMuxed", referenced from:
cricket::GetAVFoundationVideoDevices(std::vector<cricket::Device, std::allocator<cricket::Device> >*) in libWebRTC-arm64-debug.a(libjingle_media.macdevicemanagermm.o)
這告訴我,我還沒有在我的libjingle_media.a
定義這個符號,至極它根據是正確的:
$ nm libjingle_media.a | grep _AVMediaTypeMuxed
warning: /Applications/Xcode64.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
U _AVMediaTypeMuxed
我已經使用這個標誌內置的WebRTC:
GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=mac target_arch=x64"
GYP_GENERATORS="ninja"
GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_mac"
當然還有忍者,之前運行gclient runhooks
。任何想法關於這是怎麼回事?