2

iOS SDK 5.0 に対して、OS X Lion で MobileVLC をビルドしようとしています。これまでのところ、サイコロはありません。

ただし、指定された指示に従った場合、ビルドはここで停止し、失敗します。

現在のログ: ./buildMobileVLC.sh -s [info] ビルド ディレクトリの準備 [info] Building [info] Building vlc [info] Building libvlc for the iOS [info] Using i386 with SDK version 4.2 [info] Building contrib for iOS in 「/Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-i686-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 が教えてくれます:

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

失敗の原因と思われるものを太字にしました。さて、このエラーを修正するにはどうすればよいですか?

4

2 に答える 2

1

LDFLAGS 変数に「-L$(SDKROOT)/usr/lib/system」を追加します。

SDKROOT は、最新の iOS を指すディレクトリです。

例: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk

于 2011-12-10T17:30:10.230 に答える
1

これでうまくいきました:

./configure --extra-ldflags=-L/Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/system --enable-cross-コンパイル --arch=arm --target-os=darwin --cc='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc -arch armv7' -- sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk --cpu=cortex-a8 --enable-pic --extra-ldflags='-arch armv7 '

于 2012-09-28T16:32:58.457 に答える