首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VLC工程在iOS中的编译错误

VLC工程在iOS中的编译错误
EN

Stack Overflow用户
提问于 2013-10-04 06:43:51
回答 2查看 1.8K关注 0票数 1

我正试图一步一步地按照iOS编译VLC项目。

代码语言:javascript
复制
git clone git://git.videolan.org/vlc-ports/ios.git
sh buildAspenProject.sh -s -k 7.0

我得到了这个编译错误:

代码语言:javascript
复制
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

环境:

代码语言:javascript
复制
XCode 5.0
MountainLion 10.8.4
iPhoneSimulator SDK 7.0

调用

代码语言:javascript
复制
$ 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)

我该如何解决这个问题?如果有任何建议或想法。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-10-07 09:04:38

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

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

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

我希望能尽快解决这个问题。喜欢黑客为iOS的VLC!

票数 0
EN

Stack Overflow用户

发布于 2013-10-07 17:13:18

这使我更进一步,但由于缺少modplug-xmms下载网址而陷入困境。

VLC坚持从

代码语言:javascript
复制
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

在这个时候还不存在。(服务器停机?)

我确实找到了消息来源的副本

代码语言:javascript
复制
http://sourceforge.net/projects/modplug-xmms/files/latest/download/libmodplug-0.8.8.4.tar.gz

我下载并手动安装了它:

../ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/libmodplug

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19174942

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档