ios - 构建 MobileVLCKit 时出错

标签 ios vlc libvlc

我正在尝试使用 iOS SDK 4.3OS X Leopard 上构建 MobileVLC

按照给定的说明,但是,构建在这里停止并失败:[info] Building contrib for iOS in '/Users/matp/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10 '

Current log:./buildMobileVLC.sh 
[info] Preparing build dirs
[info] Building
[info] Building vlc
[info] Building libvlc for the iOS
[info] Using armv7 with SDK version 4.3
[info] Building contrib for iOS in '/Users/matp/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10'

报错如下:

make[1]: *** [.ffmpeg] Error 1
make: *** [using-src] Error 2
/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10/build-src/ffmpeg/config.log tells me:

ld: warning: directory not found for option '-L/Users/matp/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
ld: warning: directory not found for option '-L/Users/matp/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture armv7
collect2: ld returned 1 exit status
C compiler test failed.

此外,为了使用 sdk 4.3 进行更改之前,我必须将 buildMobileVLC.sh 中的 sdk 从 4.2 更改为 4.3。在更改之前我得到了错误:

xcodebuild: error: SDK "iphoneos4.2" cannot be located.

如何修复此错误?可以用不同的方式修复 xcodebuild 错误来解决这两个问题吗?

最佳答案

编辑:ImportedSources/vlc/extras/contrib/bootstrap

添加: EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot ${IOS_SDK_ROOT}"

之前:

if test -z "$IOS_SDK_ROOT";然后 错误“引导脚本需要 IOS_SDK_ROOT 环境” 错误“为 iOS 构建时要设置的变量” 导出 1

关于ios - 构建 MobileVLCKit 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6599594/

相关文章:

c# - 是否可以从 VLC 获取视频文件中帧的精确时间戳?

c++ - LibVLC Demux 无法查看

c++ - 如何使用 C++ 使用 VLC 播放器运行视频文件

java - 如何使用 JVLC(VLC 的 Java 绑定(bind))?

ios - Delphi XE7 有 iOS SDK8.3 - 无法让它使用 SDK7.1

iOS:RTSP 流在后台

java - Vlcj视频旋转

ios - 在不破坏 xcodebuild 存档的情况下将 os x 工具构建为 iOS 项目的一部分?

ios - Fabric 无法下载设置 Error Domain=FABNetworkError Code=-5

ios - 仅使用 Bundle ID 更新 iOS 应用程序