MobileVLCKit for iOS Compiled Error

iOS, iPad, iPhone, tvOS specific usage questions
lintw
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Jan 2016 05:32

MobileVLCKit for iOS Compiled Error

Postby lintw » 12 Dec 2017 03:44

source code: https://code.videolan.org/videolan/VLCKit.git
Xcode version: xcode 9.2
OSX version 10.13.2
compile command: sh -x compileDebugLibraries.sh -v

+ set -e
+ BUILD_DEVICE=yes
+ BUILD_SIMULATOR=yes
+ BUILD_STATIC_FRAMEWORK=no
++ xcrun --sdk iphoneos --show-sdk-version
+ SDK_VERSION=11.2
+ SDK_MIN=7.0
+ VERBOSE=no
+ DEBUG=no
+ CONFIGURATION=Release
+ NONETWORK=no
+ SKIPLIBVLCCOMPILATION=no
+ SCARY=yes
+ TVOS=no
+ BITCODE=no
+ OSVERSIONMINCFLAG=miphoneos-version-min
+ OSVERSIONMINLDFLAG=ios_version_min
+ ROOT_DIR=empty
+ FARCH=all
+ TESTEDHASH=0e89b88
+ '[' -z '' ']'
++ sysctl -n machdep.cpu.core_count
+ CORE_COUNT=2
+ let MAKE_JOBS=2+1
+ getopts hvwsfbdntlk:a: OPTION
+ case $OPTION in
+ VERBOSE=yes
+ getopts hvwsfbdntlk:a: OPTION
+ shift 1
+ out=/dev/null
+ '[' yes = yes ']'
+ out=/dev/stdout
+ '[' x '!=' x ']'
+ spushd .
+ pushd .
++ pwd
+ ROOT_DIR=/Users/lintw/Desktop/source_code/VLC_MASTER
+ spopd
+ popd
+ VLCROOT=/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc/vlc
+ export PATH=/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc/vlc/extras/tools/build/bin:/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc/vlc/contrib//bin:/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc/vlc/extras/tools/build/bin:/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc/vlc/contrib//bin:/usr/bin:/bin:/usr/sbin:/sbin
+ info 'Preparing build dirs'
+ local 'green=\033[1;32m'
+ local 'normal=\033[0m'
+ echo '[\033[1;32minfo\033[0m] Preparing build dirs'
[info] Preparing build dirs
+ mkdir -p libvlc
+ spushd libvlc
+ pushd libvlc
++ pwd
+ echo /Users/lintw/Desktop/source_code/VLC_MASTER/libvlc
/Users/lintw/Desktop/source_code/VLC_MASTER/libvlc
+ '[' no '!=' yes ']'
+ '[' -e vlc ']'
+ git clone https://git.videolan.org/git/vlc.git vlc
Cloning into 'vlc'...
remote: Counting objects: 540416, done.
remote: Compressing objects: 100% (100742/100742), done.
remote: Total 540416 (delta 439989), reused 537076 (delta 437364)
Receiving objects: 100% (540416/540416), 210.26 MiB | 311.00 KiB/s, done.
Resolving deltas: 100% (439989/439989), done.
+ info 'Applying patches to vlc.git'
+ local 'green=\033[1;32m'
+ local 'normal=\033[0m'
+ echo '[\033[1;32minfo\033[0m] Applying patches to vlc.git'
[info] Applying patches to vlc.git
+ cd vlc
+ git checkout -B localBranch 0e89b88
Switched to a new branch 'localBranch'
+ git branch --set-upstream-to=origin/master localBranch
Branch localBranch set up to track remote branch master from origin.
+ git am /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0001-arm_neon-added-function-macro-to-handle-the-undersco.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0002-deinterlace-merge-use-a-macro-to-fix-compilation-for.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0003-arm_neon-work-around-libtool-issue.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0004-arm_neon-fix-iOS-linking.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0005-disable-neon-volume-plugin.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0006-Enable-System-DL.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0007-deinterlace-merge-arm64-fix-linking-on-appleOS.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0008-http-add-vlc_http_cookies_clear.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0009-libvlc_media-add-cookie_jar-API.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0010-contrib-gcrypt-work-around-a-libtool-limitation.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0011-contrib-gcrypt-fix-tvOS-compilation.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0012-contrib-gcrypt-update-patches.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0013-Replace-thread-local-with-pthread-TSD.patch /Users/lintw/Desktop/source_code/VLC_MASTER/Resources/MobileVLCKit/patches/0014-contrib-use-live555-version-that-is-compatible-with-.patch
Applying: arm_neon: added function macro to handle the underscore prefix for the iOS ARM ABI
.git/rebase-apply/patch:60: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Applying: deinterlace/merge: use a macro to fix compilation for iOS
Applying: arm_neon: work-around libtool issue
Applying: arm_neon: fix iOS linking
Applying: disable neon volume plugin
Applying: Enable System DL
error: patch failed: contrib/src/ffmpeg/rules.mak:26
error: contrib/src/ffmpeg/rules.mak: patch does not apply
Patch failed at 0006 Enable System DL
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
lintwde-MacBook-Pro:VLC_MASTER lintw$



How to solve it?
Thanks

bubu?
Developer
Developer
Posts: 371
Joined: 20 Jun 2017 15:29
Operating System: macOS, iOS

Re: MobileVLCKit for iOS Compiled Error

Postby bubu? » 12 Dec 2017 11:14

Looks like there is a git conflict in `libvlc/vlc`, resolve that conflict(do as git status says) and relaunching the script should work.
Soomin Lee - bubu

mikyfalcom
New Cone
New Cone
Posts: 3
Joined: 05 Jul 2016 17:50

Re: MobileVLCKit for iOS Compiled Error

Postby mikyfalcom » 13 Dec 2017 16:46

Sorry, I have the same problem.
How to fix this?

...
...
124 files changed, 1390 insertions(+), 1560 deletions(-)
create mode 100644 contrib/src/srt/add-implicit-link-libraries.patch
delete mode 100644 include/vlc_main.h
Applying: arm_neon: added function macro to handle the underscore prefix for the iOS ARM ABI
.git/rebase-apply/patch:60: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Applying: deinterlace/merge: use a macro to fix compilation for iOS
Applying: arm_neon: work-around libtool issue
Applying: arm_neon: fix iOS linking
Applying: disable neon volume plugin
Applying: Enable System DL
error: patch failed: contrib/src/ffmpeg/rules.mak:26
error: contrib/src/ffmpeg/rules.mak: patch does not apply
Patch failed at 0006 Enable System DL
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 29 guests