编译VLC项目在iOS中的错误 [英] Compiling error of VLC project in iOS

查看:311
本文介绍了编译VLC项目在iOS中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照说明逐步编译适用于iOS的VLC项目。

I am trying to compile the VLC project for iOS, following the instruction step by step.

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)

如何解决这个问题?
感谢任何建议或想法。

How do I fix this problem? Appreciate if any suggestion or idea.

推荐答案

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

This is a known problem with Xcode 5 for which I don't have a fix yet.

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

To workaround, go to ImportedSources/vlc/contrib/iPhoneSimulator-i386 and run "make .freetype2". Afterwards, go back to the top directory and run the buildAspen script again.

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

Note that you'll need to do the same thing (with "iPhoneOS-armv7" and "iPhoneOS-armv7s" respectively) if you decide to compile for iOS devices at a later point.

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

I hope to fix this shortly. Enjoy hacking VLC for iOS!

这篇关于编译VLC项目在iOS中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆