2013-10-04 139 views
1

我試圖編譯iOS的VLC項目,跟着instruction一步一步。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) 

我該如何解決這個問題? 欣賞是否有任何建議或想法。

回答

0

這是Xcode 5的一個已知問題,對此我還沒有修復。

要解決該問題,請轉到ImportedSources/vlc/contrib/iPhoneSimulator-i386並運行「make .freetype2」。之後,返回頂部目錄並再次運行buildAspen腳本。

請注意,如果您決定稍後爲iOS設備編譯,則需要執行相同的操作(分別使用「iPhoneOS-armv7」和「iPhoneOS-armv7s」)。

我希望能儘快解決這個問題。享受黑客VLC的iOS!

+0

謝謝feepk。真的行。 ;-) – catskytw

1

這讓我進一步,但由於缺少下載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

+1

是的,我解決了我原來的問題後遇到了這個問題。我得到了modplug-xmms文件,並將其放在我的保存箱中(https://www.dropbox.com/s/v2i55agdwe660ri/modplug-xmms-git-9b08cc646c3dc94dd446ab0671e3427dae8a83fc.zip)。把這個文件放在〜/ ios/ImportedSources/vlc/contrib/tarballs中,這樣腳本就可以繼續運行。 希望如果他/她想爲iOS編譯VLC,這些體驗可以節省一些人的時間。爲iOS編譯VLC非常痛苦。 ps。在我的保管箱中使用xmms文件來處理您的風險。 – catskytw

+0

昨晚修復了這個問題。我只需要在ios.git中更新libvlc散列,這將在幾分鐘內完成。 – feepk