biliATV icon indicating copy to clipboard operation
biliATV copied to clipboard

编译的时候遇到了大量关于libtool的错误

Open manakanemu opened this issue 6 years ago • 12 comments

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavcodec error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavcodec is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavfilter error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavfilter is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavformat error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavformat is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavutil error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavutil is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lcrypto error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lcrypto is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lssl error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lssl is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswresample error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswresample is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswscale error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswscale is not an object file (not allowed in a library) 请问这是为什么呢

manakanemu avatar Aug 23 '18 17:08 manakanemu

直接 clone 下来我也无法运行,重新建一个工程解决了😂

Xummer avatar Aug 24 '18 09:08 Xummer

请问您是指新建一个工程然后把原工程的文件一个一个包括进来吗 @Xummer

manakanemu avatar Aug 24 '18 09:08 manakanemu

@skjgsk 是的 submodule 也是重新添加

Xummer avatar Aug 24 '18 09:08 Xummer

@Xummer 非常感谢!

manakanemu avatar Aug 24 '18 09:08 manakanemu

解决问题的时候发现xcode9.2以后的版本会报错,9.2以前的版本没问题

manakanemu avatar Aug 24 '18 15:08 manakanemu

@skjgsk 更新最新版本的 DaMuPlayer 解决了

Xummer avatar Aug 29 '18 03:08 Xummer

@Xummer thx ,这些问题解决了,现在面临的是QR显示不出来的问题,接口试了下能显示二维码,但是在控件上就是显示不出来,在研究解决办法,xcode9.4 tvos11.4

mengxingshifendeni avatar Aug 29 '18 16:08 mengxingshifendeni

@Xummer 找到问题了,AppDelegate.swift里面tvBaseURL 的事儿,应该吧coding的注释掉用git的地址

mengxingshifendeni avatar Aug 29 '18 17:08 mengxingshifendeni

@mengxingshifendeni 可能是作者太忙,没同步到 coding 上

Xummer avatar Aug 30 '18 01:08 Xummer

我忘记了 ....

xioxin avatar Aug 31 '18 04:08 xioxin

由于工作原因 现在没什么时间看电视 几乎也不使用AppleTV 导致这个项目搁置了 我甚至忘记了 前端代码是跑在coding上的了 .... 惭愧

xioxin avatar Aug 31 '18 05:08 xioxin

Xcode 10.2 下这个问题还存在…

Libtool /Users/patrick/Library/Developer/Xcode/DerivedData/biliATV-cyslmwnjwqajnwakitvmdbjwtfjj/Build/Products/Debug-appletvsimulator/SGPlayer.framework/SGPlayer normal x86_64 (in target: SGPlayer tvOS)
    cd /Users/patrick/Downloads/biliATV/DanMuPlayer/SGPlayer
    export TVOS_DEPLOYMENT_TARGET=9.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator12.2.sdk -L/Users/patrick/Library/Developer/Xcode/DerivedData/biliATV-cyslmwnjwqajnwakitvmdbjwtfjj/Build/Products/Debug-appletvsimulator -L/Users/patrick/Downloads/biliATV/DanMuPlayer/SGPlayer/SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-tvOS -L/Users/patrick/Downloads/biliATV/DanMuPlayer/SGPlayer/SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-tvOS -filelist /Users/patrick/Library/Developer/Xcode/DerivedData/biliATV-cyslmwnjwqajnwakitvmdbjwtfjj/Build/Intermediates.noindex/SGPlayer.build/Debug-appletvsimulator/SGPlayer\ tvOS.build/Objects-normal/x86_64/SGPlayer.LinkFileList /Users/patrick/Library/Developer/Xcode/DerivedData/biliATV-cyslmwnjwqajnwakitvmdbjwtfjj/Build/Products/Debug-appletvsimulator/SGPlatform.framework/SGPlatform -lavcodec -lavfilter -lavformat -lavutil -lcrypto -lssl -lswresample -lswscale -o /Users/patrick/Library/Developer/Xcode/DerivedData/biliATV-cyslmwnjwqajnwakitvmdbjwtfjj/Build/Products/Debug-appletvsimulator/SGPlayer.framework/SGPlayer

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lcrypto
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lcrypto is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lssl
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lssl is not an object file (not allowed in a library)
Command Libtool failed with a nonzero exit code

patricorgi avatar Jul 11 '19 15:07 patricorgi