demo单独编译没有问题,把libBaiduSpeechSDK.a引入我们自己的工程中,导致链接错误:
undefined symbols for architecture arm64:
"_WebRtcSpl_MaxValueW16", referenced from:
_UpdateNoiseEstimateNeon in Blink(nsx_core_neon.o)
(maybe you meant: _WebRtcSpl_MaxValueW16C)
"_WebRtcSpl_ScaleAndAddVectorsWithRound", referenced from:
webrtc::Expand::Process(webrtc::AudioMultiVector*) in Blink(expand.o)
(maybe you meant: _WebRtcSpl_ScaleAndAddVectorsWithRoundC)
"_WebRtcSpl_MaxAbsValueW32", referenced from:
_WebRtcIlbcfix_CbSearchCore in Blink(cb_search_core.o)
webrtc::Merge::CorrelateAndPeakSearch(unsigned long, unsigned long, unsigned long) const in Blink(merge.o)
webrtc::Expand::Correlation(short const*, unsigned long, short*) const in Blink(expand.o)
_WebRtcIlbcfix_Refiner in Blink(refiner.o)
webrtc::TimeStretch::AutoCorrelation() in Blink(time_stretch.o)
(maybe you meant: _WebRtcSpl_MaxAbsValueW32C)
"_WebRtcSpl_MaxValueW32", referenced from:
_WebRtcIlbcfix_FrameClassify in Blink(frame_classify.o)
(maybe you meant: _WebRtcSpl_MaxValueW32C)
"_WebRtcSpl_DownsampleFast", referenced from:
_WebRtcIlbcfix_EnhancerInterface in Blink(enhancer_interface.o)
webrtc::Merge::Downsample(short const*, unsigned long, short const*, unsigned long) in Blink(merge.o)
webrtc::Expand::Correlation(short const*, unsigned long, short*) const in Blink(expand.o)
webrtc::DspHelper::DownsampleTo4kHz(short const*, unsigned long, unsigned long, int, bool, short*) in Blink(dsp_helper.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
app工程移除libBaiduSpeechSDK.a相关,链接错误消失,编译正常。
Blink.framework是容云公司提供的音视频通信库。
问题:
针对log编译错误, 如何消除编译错误?
请参考demo工程引入其他依赖的库
解决没有 也碰到了
问题解决了吗?应该是库中音视频相关的冲突了,不好定位
引入了还是报错了,而且有且只有在拖进已有的工程里才会有,如果你的项目是新建的,只有语音识别这个模块的话是可以正常跑起来的
请参考demo工程引入其他依赖的库