设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
12
返回列表 发新帖
楼主: IEB
打印 上一主题 下一主题

导入AnyChat的静态包,编译报错。

[复制链接]

2

主题

10

帖子

30

积分

新手上路

Rank: 1

积分
30
11#
 楼主| 发表于 2014-4-9 17:36:02 | 只看该作者
admin 发表于 2014-4-9 17:34
没有找到libPushSDK.a?建议将所有的.a都放在libbaidumapap.a文件同目录下。

OK,我试试。
回复 支持 反对

使用道具 举报

2

主题

10

帖子

30

积分

新手上路

Rank: 1

积分
30
12#
 楼主| 发表于 2014-4-9 17:40:02 | 只看该作者
admin 发表于 2014-4-9 17:34
没有找到libPushSDK.a?建议将所有的.a都放在libbaidumapap.a文件同目录下。

还是不行喔!

Undefined symbols for architecture armv7:
  "_CMTimeMake", referenced from:
      -[iOSVideoOutput InitVideo:::::] in libmediacore.a(iOSVideoOutput.o)
  "_CMSampleBufferGetImageBuffer", referenced from:
      -[iOSVideoOutput captureOutput:didOutputSampleBuffer:fromConnection:] in libmediacore.a(iOSVideoOutput.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
13#
发表于 2014-4-9 17:43:00 | 只看该作者
还有一些iOS的基础库需要导入工程,可参考AnyChat for iOS SDK所提供的标准示例代码,看里面还添加了哪些库。
回复 支持 反对

使用道具 举报

2

主题

10

帖子

30

积分

新手上路

Rank: 1

积分
30
14#
 楼主| 发表于 2014-4-9 17:56:23 | 只看该作者
admin 发表于 2014-4-9 17:43
还有一些iOS的基础库需要导入工程,可参考AnyChat for iOS SDK所提供的标准示例代码,看里面还添加了哪些库 ...

都加入了。现在报错如下:
duplicate symbol _WebRtcVad_Create in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(webrtc_vad.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(webrtc_vad.o)
duplicate symbol _WebRtcVad_Free in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(webrtc_vad.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(webrtc_vad.o)
duplicate symbol _WebRtcVad_Init in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(webrtc_vad.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(webrtc_vad.o)
duplicate symbol _WebRtcVad_set_mode in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(webrtc_vad.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(webrtc_vad.o)
duplicate symbol _WebRtcVad_Process in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(webrtc_vad.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(webrtc_vad.o)
duplicate symbol _WebRtcVad_InitCore in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_set_mode_core in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_CalcVad48khz in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_CalcVad8khz in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_CalcVad32khz in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_CalcVad16khz in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_core.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_core.o)
duplicate symbol _WebRtcVad_CalculateFeatures in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_filterbank.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_filterbank.o)
duplicate symbol _WebRtcVad_GaussianProbability in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_gmm.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_gmm.o)
duplicate symbol _WebRtcVad_Downsampling in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_sp.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_sp.o)
duplicate symbol _WebRtcVad_FindMinimum in:
    /Users/***/Documents/Work/***/Library/MapApi/libsignal_processing.a(vad_sp.o)
    /Users/***/Documents/Work/***/Library/MapApi/libvad.a(vad_sp.o)
duplicate symbol __ZN10AC_IOUtils11setNonblockEi in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils14GetLocalIPAddrEPjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils13IsValidIpAddrEj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils13DnsResolutionEPKcRjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils10cal_chksumEPti in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils12AESEncodeBufEPKcS1_jPcRj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils12AESDecodeBufEPKcS1_jPcRj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils18AESDecodeHexStringEPKcS1_PcRj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils20ConvertHexString2BufEPKcPcRj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils7Hex2IntEPc in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN10AC_IOUtils12IPNum2StringEj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(ac_ioutils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(ac_ioutils.o)
duplicate symbol __ZN11CMediaUtils28IsAudioCodecSupportParameterEjjjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils28SuggestAudioCodecByParameterEjjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils25AdjustAudioBitrateByCodecEjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils20AudioBufferMixUpdateEPljPs in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils17GetVideoFrameSizeE19ANYCHAT_PIXFMT_ENUMjj in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils13PixFmt2StringE19ANYCHAT_PIXFMT_ENUM in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils15AudioVolumeGainEPsji in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils18RevertYUV420PFrameEPhjjS0_ in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils22YUV420SP_NV12_2YUV420PEiiPhS0_ in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils22YUV420SP_NV21_2YUV420PEiiPhS0_ in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils16YUV422SP2YUV422PEiiPhS0_ in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils18SwitchYUV420PColorEiiPh in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
duplicate symbol __ZN11CMediaUtils28OverlayOSDCharToYUV420PFrameEPhjjjjjjS0_ in:
    /Users/***/Documents/Work/***/Library/MapApi/libmediacore.a(mediautils.o)
    /Users/***/Documents/Work/***/Library/MapApi/libanychatcore.a(mediautils.o)
ld: 70 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
15#
发表于 2014-4-9 18:15:37 | 只看该作者
clean工程,然后rebuild试试?
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
16#
发表于 2014-4-9 18:22:06 | 只看该作者
如果还是不行,可参考:http://stackoverflow.com/questio ... or-linker-command-f ,里面有提到其它的一些解决方案,可以尝试一下。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-11-22 22:55 , Processed in 0.134541 second(s), 20 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表