【问题标题】:Error in building MobileVLCKit构建 MobileVLCKit 时出错
【发布时间】:2011-07-06 16:10:31
【问题描述】:

我正在尝试使用 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 错误来解决这两个问题吗?

【问题讨论】:

    标签: ios vlc libvlc


    【解决方案1】:

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

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

    之前:

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

    【讨论】:

      【解决方案2】:

      两种方法: 1.你最好从包Xcode 3.2.5/3.26安装iOS SDK 4.2

      1. 编辑您的脚本 ./MobileVLC/build_for_iOS.sh ,更改 4.2 -> 4.3

      之后你可能会走得更远

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-03-30
        • 2012-03-23
        • 2016-11-20
        • 2012-04-08
        • 2017-12-20
        • 2016-05-27
        • 2015-12-01
        相关资源
        最近更新 更多