![](/img/trans.png)
[英]VLC for iOS not compiling with xcode 5, iOS 7 error gcrypt
[英]Compiling error of VLC project in iOS
我正在按照說明一步一步地為iOS編譯VLC項目。
git clone git://git.videolan.org/vlc-ports/ios.git
sh buildAspenProject.sh -s -k 7.0
我得到這個編譯錯誤:
cd builds/unix; /bin/sh ./configure '--without-png' '--prefix=/Users/change/Desktop/VLC_Library/ios/ImportedSources/vlc/contrib/i686-apple-darwin11-i386' '--build=i686-apple-darwin10' '--host=i686-apple-darwin11' '--target=i686-apple-darwin11' '--program-prefix=' '--enable-static' '--disable-shared' '--disable-dependency-tracking' '--with-pic'
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking build system type... i686-apple-darwin10
checking host system type... i686-apple-darwin11
checking for i686-apple-darwin11-gcc... xcrun clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether xcrun clang accepts -g... yes
checking for xcrun clang option to accept ISO C89... none needed
checking how to run the C preprocessor... xcrun cc -E
checking for i686-apple-darwin10-gcc... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking for suffix of native executables... rm: conftest.dSYM: is a directory
ld: building for MacOSX, but linking against dylib built for iOS Simulator file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure: error: native C compiler is not working
make[1]: *** [setup] Error 1
make: *** [.freetype2] Error 2
環境:
XCode 5.0
MountainLion 10.8.4
iPhoneSimulator SDK 7.0
調用
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-224.1
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m armv7m armv7em
LTO support using: LLVM version 3.3svn, from Apple Clang 5.0 (build 500.2.75)
我該如何解決這個問題? 感謝任何建議或想法。
這讓我走得更遠,但由於缺少modplug-xmms
下載URL而modplug-xmms
。
VLC堅持要從以下位置下載源的副本
MODPLUG_GIT_HASH := 9b08cc646c3dc94dd446ab0671e3427dae8a83fc
MODPLUG_URL := http://sourceforge.net/code-snapshots/git/m/mo/modplug-xmms/git.git/modplug-xmms-git-$(MODPLUG_GIT_HASH).zip
目前尚不存在。 (服務器關閉?)
我確實在下面找到了源的副本
http://sourceforge.net/projects/modplug-xmms/files/latest/download/libmodplug-0.8.8.4.tar.gz
我下載並手動安裝了它:
../ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/libmodplug
這是Xcode 5的已知問題,目前還沒有修復。
要解決此問題,請轉到ImportedSources / vlc / contrib / iPhoneSimulator-i386並運行“ make .freetype2”。 然后,返回頂部目錄並再次運行buildAspen腳本。
請注意,如果您決定稍后再為iOS設備進行編譯,則需要執行相同的操作(分別使用“ iPhoneOS-armv7”和“ iPhoneOS-armv7s”)。
我希望能盡快解決。 享受為iOS破解VLC!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.