MobileVLC for iphoneos4.3

前几天还说编译vlc for iphone buildMobileVLC.sh改进了很多,解决了一些以前的bug,好很多,这些都是表像。安装Xcode 4.0后,再编译,差错一个都不少,陆陆续续搞了一个星期,大致理顺。

=======================================
准备好文件,可备份MobileVLC,进行多次编译调试
=======================================
git clone git://git.videolan.org/MobileVLC.git
cd MobileVLC
mkdir -p ImportedSources
cd ImportedSources
git clone git://git.videolan.org/vlc.git
git clone git://github.com/pdherbemont/MediaLibraryKit.git

=======================================
因为Xcode4.0的变化,修改MobileVLC/ImportedSources/vlc/extras/contrib/bootstrap
=======================================
增加:EXTRA_LDFLAGS=”${EXTRA_LDFLAGS} -isysroot ${IOS_SDK_ROOT}”

case “$DISTRO” in
ios)
if test -z “$IOS_SDK_ROOT”; then
error “The bootstrap script requires the IOS_SDK_ROOT environment ”
error “variable to be set when building for iOS”
exit 1
fi
add_makefile_cfg “IOS_SDK_ROOT = ${IOS_SDK_ROOT}”
EXTRA_LDFLAGS=”${EXTRA_LDFLAGS} -isysroot ${IOS_SDK_ROOT}”

=======================================
修改MobileVLC/ImportedSources/vlc/extras/package/ios/build.sh,字写错
=======================================
把–with-macosx-sdk=${OS_SDK_ROOT}改成–with-macosx-sdk=${IOS_SDK_ROOT}

=======================================
修改MobileVLCKit工程中的MobileVLC/ImportedSources/vlc/projects/macosx/framework/MobileVLCKit/AggregateStaticPlugins.sh,找不到库文件,直接删除掉
=======================================
#plugins+=”audio_filter/bandlimited_resampler ”
#plugins+=”demux/ts ”
#plugins+=”misc/xtag

=======================================
试编译
=======================================
cd MobileVLC/
./buildMobileVLC.sh -v -k iphoneos4.3

ffmpeg ok
libVLC ok
MobileVLCKit.xcodeproj ok
MobileMediaLibraryKit.xcodeproj ok
MobileVLC/MobileVLC.xcodeproj armv7与armv6冲突,算你狠

原文地址:https://www.cnblogs.com/qq78292959/p/2076979.html