设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 4571|回复: 3
打印 上一主题 下一主题

xcode5引用sdk出现错误

[复制链接]

3

主题

9

帖子

59

积分

注册会员

Rank: 2

积分
59
跳转到指定楼层
楼主
发表于 2013-10-26 18:30:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用最新版本xcode时,引用sdk后编译不通过。对照sdk包中的demo,已经将.a文件引用到项目中,且对照demo配置信息进行了设置。但运行时出现以下错误:
Ld /Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Products/Debug-iphonesimulator/AnyChat.app/AnyChat normal i386
    cd /Users/xx/Documents/AnyChat
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Products/Debug-iphonesimulator -L/Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs -L/Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess -F/Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Products/Debug-iphonesimulator -filelist /Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Intermediates/AnyChat.build/Debug-iphonesimulator/AnyChat.build/Objects-normal/i386/AnyChat.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -framework CoreAudio -lbz2 -lz -framework CoreVideo -framework AudioToolbox -framework AVFoundation -framework CoreMedia -framework CoreGraphics -laudio_processing -lopencore-amrwb -lswscale -framework UIKit -lspeexdsp -lavformat -lavcodec -framework Foundation -ltheora -lvad -lavdevice -lvo-amrwbenc -lsystem_wrappers -lavutil -lvpx -lcelt0 -lanychatcore -lspeex -lx264 -lmediacore -lmediautil -lopencore-amrnb -lsignal_processing -lpostproc -lmediashow -logg -Xlinker -dependency_info -Xlinker /Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Intermediates/AnyChat.build/Debug-iphonesimulator/AnyChat.build/Objects-normal/i386/AnyChat_dependency_info.dat -o /Users/xx/Library/Developer/Xcode/DerivedData/AnyChat-chfytuerboxtvhgvxrylzuzmulxt/Build/Products/Debug-iphonesimulator/AnyChat.app/AnyChat

ld: warning: ignoring file /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libaudio_processing.a, file was built for archive which is not the architecture being linked (i386): /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libaudio_processing.a
ld: warning: ignoring file /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libvad.a, file was built for archive which is not the architecture being linked (i386): /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libvad.a
ld: warning: ignoring file /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libsystem_wrappers.a, file was built for archive which is not the architecture being linked (i386): /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libsystem_wrappers.a
ld: warning: ignoring file /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libsignal_processing.a, file was built for archive which is not the architecture being linked (i386): /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/audioprocess/libsignal_processing.a
duplicate symbol _kiss_fft in:
    /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/libspeexdsp.a(kiss_fft.o)
    /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/libcelt0.a(kiss_fft.o)
duplicate symbol _kiss_fft_alloc in:
    /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/libspeexdsp.a(kiss_fft.o)
    /Users/xx/Downloads/AnyChatCoreSDK_iOS_r3673/sdk/libs/libcelt0.a(kiss_fft.o)
ld: 2 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

另外:
查看targets的build phases,发现libaudio_processing.a,libvad.a,libsystem_wrappers.a,libsignal_processing.a 这四个文件已经引用进去了。






分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
沙发
发表于 2013-10-26 20:11:32 | 只看该作者
您好,请问编译SDK包里面标准的示例代码是否可以通过呢?
回复 支持 反对

使用道具 举报

3

主题

9

帖子

59

积分

注册会员

Rank: 2

积分
59
板凳
 楼主| 发表于 2013-10-27 09:40:07 | 只看该作者
demo可以通过
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
地板
发表于 2013-10-27 10:06:05 | 只看该作者
您好,请对比一下两个工程的项目配置信息,如GCC编译器类型等。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 22:50 , Processed in 0.119248 second(s), 21 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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