在iOS中编译VLC项目的错误

时间:2013-10-04 06:43:52

标签: ios compiler-errors 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)

如何解决此问题? 感谢是否有任何建议或想法。

2 个答案:

答案 0 :(得分:1)

这让我更进一步,但因为缺少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 :(得分:0)

这是Xcode 5的一个已知问题,我还没有修复。

要解决此问题,请转至ImportedSources / vlc / contrib / iPhoneSimulator-i386并运行“make .freetype2”。然后,返回到顶级目录并再次运行buildAspen脚本。

请注意,如果您决定稍后为iOS设备编译,则需要执行相同的操作(分别使用“iPhoneOS-armv7”和“iPhoneOS-armv7s”)。

我希望尽快解决这个问题。享受黑客VLC for iOS!