0

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 でこれを実現するために変更する前に、sdk をbuildMobileVLC.sh4.2 から 4.3 に変更する必要がありました。変更前にエラーが発生しました:

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

このエラーを修正するにはどうすればよいですか? xcodebuildエラーを別の方法で修正すると、両方の問題を修正できますか?

4

2 に答える 2

1

2つの方法: 1. パッケージ Xcode 3.2.5/3.26 か​​ら iOS SDK 4.2 をインストールした方がよい

  1. スクリプトを編集し、 ./MobileVLC/build_for_iOS.sh 、変更 4.2 -> 4.3

その後、あなたはさらに進むかもしれません

于 2012-04-28T05:26:59.473 に答える
1

編集: ImportedSources/vlc/extras/contrib/bootstrap

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

前:

if test -z "$IOS_SDK_ROOT"; エラー「ブートストラップ スクリプトには IOS_SDK_ROOT 環境が必要です」エラー「iOS 用にビルドするときに設定する変数」 exit 1 fi

于 2011-07-30T11:09:49.390 に答える