构建MobileVLCKit时出错

时间:2011-07-06 16:10:32

标签: ios vlc libvlc

我正在尝试使用 iOS SDK 4.3 OS 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错误修复这两个问题吗?

2 个答案:

答案 0 :(得分:1)

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

添加: EXTRA_LDFLAGS =“$ {EXTRA_LDFLAGS} -isysroot $ {IOS_SDK_ROOT}”

在:

如果测试-z“$ IOS_SDK_ROOT”;然后       错误“引导脚本需要IOS_SDK_ROOT环境”       错误“为iOS构建时要设置的变量”       退出1 网络

答案 1 :(得分:1)

两种方法: 1.你最好从软件包Xcode 3.2.5 / 3.26

安装iOS SDK 4.2
  1. 编辑您的脚本,。/ MobileVLC / build_for_iOS.sh,更改4.2 - > 4.3
  2. 之后你可能会更进一步