Page 1 of 1
VLCKit-3.0.0 build fail
Posted: 06 Oct 2016 09:08
by jonathan.hu
Hi,
I download the MobileVLCKit 3.0.0-pre3 source code.
And I execute buildMobileVLCKit.sh, and it has error like below:
curl -f -L -- "
http://openjpeg.googlecode.com/files/op ... 5.0.tar.gz" > "../../contrib/tarballs/openjpeg-1.5.0.tar.gz"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
make: *** [../../contrib/tarballs/openjpeg-1.5.0.tar.gz] Error 22
make: *** Deleting file `../../contrib/tarballs/openjpeg-1.5.0.tar.gz'
[info] building universal static libs for OS style iPhone
./buildMobileVLCKit.sh: line 44: pushd: MobileVLCKit/ImportedSources/vlc/install-ios-iPhoneOS: No such file or directory
It look likes the openjpeg has moved to Github. How can I solve it?
Thanks ~
By the way, I also try the "VLC for iOS 2.7.8 source code" it also has same error about GDrive at the googlecode site.
Re: VLCKit-3.0.0 build fail
Posted: 06 Oct 2016 16:53
by MidnightCoder
Try googling for that openjpeg-1.5.0.tar.gz file and download it manually and put it in the ../../contrib/tarballs/ folder.
Re: VLCKit-3.0.0 build fail
Posted: 07 Oct 2016 08:45
by jonathan.hu
Try googling for that openjpeg-1.5.0.tar.gz file and download it manually and put it in the ../../contrib/tarballs/ folder.
Thanks for your reply, but I don't know where is the path /contrib/tarballs/folder ?
Re: VLCKit-3.0.0 build fail
Posted: 18 Nov 2016 10:03
by Alphacentaura
Hi! The path is: /MobileVLCKit/ImportedSources/vlc/contrib/tarballs/, but it will not help. I copied openjpeg there, but compilling still fails
Re: VLCKit-3.0.0 build fail
Posted: 20 Nov 2016 18:12
by ssbmaccom
I saw, that xz is crashing when building for tvOS.
Also - it still does not create bitcode for VLCMedia.o and I can't archive my project. Please apply the patch below enforcing bitcode generation when calling xcodebuild.
Code: Select all
From 408ade836c8b6ad33d7c81f60d9ba495b308774c Mon Sep 17 00:00:00 2001
From: Stefan Schmidt-Bilkenroth <ssb@mac.com>
Date: Sun, 20 Nov 2016 18:11:04 +0100
Subject: [PATCH] enforce bitcode generation
---
buildMobileVLCKit.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/buildMobileVLCKit.sh b/buildMobileVLCKit.sh
index d1a5917..d35e9ed 100755
--- a/buildMobileVLCKit.sh
+++ b/buildMobileVLCKit.sh
@@ -89,6 +89,7 @@ buildxcodeproj()
ARCHS="${architectures}" \
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
GCC_PREPROCESSOR_DEFINITIONS="$defs" \
+ BITCODE_GENERATION_MODE=bitcode \
> ${out}
}
--
2.9.3 (Apple Git-75)+GitX
Anyway - thanks for finally rebasing VLCKit to a more recent version of libVLC.
SSB
Re: VLCKit-3.0.0 build fail
Posted: 05 Dec 2016 22:48
by ssbmaccom
Again it seems, that the build is failing. There is also no nightly build since Dec. 3rd. Something seems to be broken.
On my local machine (using Xcode 8 and El Capitain) the build breaks after compiling the xz tool - because it gets linked to run for 10.12 instead of the current OS version on my machine (10.11).
I will retry after using xcodeselect to use Xcode 7 command line tools - but this does not really solve the issue, it is just a workaround.
Re: VLCKit-3.0.0 build fail
Posted: 14 Dec 2016 18:52
by ssbmaccom
Sorry to repost here just to bring the topic back to top.
Still no nightly for VLCKit for tvOS or iOS, no VLC pre-3.0.0 nightly for macOS since Dec. 3rd
I also try my self locally - and the git server got faster already (was down to 40 kBiB a few days ago), but so far I was not able to understand what is going wrong with the build. It happens while building libVLC dependency.
Re: VLCKit-3.0.0 build fail
Posted: 18 Dec 2016 08:57
by dfuhrmann
Again it seems, that the build is failing. There is also no nightly build since Dec. 3rd. Something seems to be broken.
On my local machine (using Xcode 8 and El Capitain) the build breaks after compiling the xz tool - because it gets linked to run for 10.12 instead of the current OS version on my machine (10.11).
This is a known problem. An easy workaround is to use the 10.11 SDK for compilation. You can download and install it with the xcodelegacy script you can find on github.
Re: VLCKit-3.0.0 build fail
Posted: 19 Dec 2016 18:02
by ssbmaccom
I still have Xcode 7 installed on my Mac and the xz build issue is resolved when switching to it via xcode-select.
Anyway - there are many other build issue to date - like currently build of libvpx is failing.
And still no nightly since Dec. 3rd.
Re: VLCKit-3.0.0 build fail
Posted: 11 Jan 2017 10:48
by elrules
It is a sad that soooo many people is trying to build the VLCKit with no luck. I can't believe no one has managed to build latest with bitcode support. Or at least if someone built it, he is not sharing with others the knowledge. If I managed to build it I would share it for all developers.
By the way, at least I have a version of TVVLCKit with bitcode support from Dec 2015 if anyone interested.
Re: VLCKit-3.0.0 build fail
Posted: 16 Jan 2017 09:19
by gerlich
I've successfully built for device + simulator + bitcode on latest MacOS sierra with Xcode 8.2.1 with commit from Dec 1. 2016.
Later commits seem to have broken simulator compatibility since builds fail with:
Code: Select all
configure: error: cannot run C compiled programs.
If you meant to cross compile, use--host'. See config.log' for more details
Earlier commits have problems with fetching resources.
So, here's the code:
Code: Select all
1. rm -Rf VLCKit # Delete the current clone of VLCKit to restart from new one.
2. git clone https://code.videolan.org/videolan/VLCKit.git #clone VLCKit current version
3. cd VLCKit #move to VLCKit directory
4. git reset --hard 2453a955435b9cae2c1637274416a4841ce66909 #move to working commit version
5. Edit buildMobileVLCKit.sh to add bitcode support using @ssbmaccom patch above
6. ./buildMobileVLCKit.sh -tfy #Build VLCKit for tvOS and Simulator with bitcode
Thanks @vibou and @ssbmaccom for their answers
Re: VLCKit-3.0.0 build fail
Posted: 18 Jan 2017 01:33
by elrules
Following @ssbmaccom changes and @gerlich commands I still get this error:
Code: Select all
configure: error: in `/Users/admin/Development/Projects/Xcode/VLCKit/libvlc/vlc/contrib/AppleTVSimulator-x86_64/fribidi':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make: *** [.fribidi] Error 1
Using Xcode 8.2.1 with Sierra.
Any clue?
Thanks in advance
Re: VLCKit-3.0.0 build fail
Posted: 18 Jan 2017 06:39
by gerlich
@elrules, Are you sure you did no. 4?
I got the same error you got on any other commit except that one.
Re: VLCKit-3.0.0 build fail
Posted: 19 Jan 2017 18:16
by ssbmaccom
Anyway... it is a pity, that there are no nightlies since Dec. 3rd for any Apple platform. I am curious, why no-one is caring about this. A nightly would indicate, that you can also build locally.
So far I gave up to build newer versions than the one I currently have (and I have quite a collection of builds on my machine) - even there is room for improvements I would support to implement.
But well... my tvOS app works with what I have.
Aside to this - glad that my patch seems to work. Maybe it gets into the repository sooner or later.
Re: VLCKit-3.0.0 build fail
Posted: 19 Jan 2017 18:49
by rschiks
I've successfully built for device + simulator + bitcode on latest MacOS sierra with Xcode 8.2.1 with commit from Dec 1. 2016.
Later commits seem to have broken simulator compatibility since builds fail with:
Code: Select all
configure: error: cannot run C compiled programs.
If you meant to cross compile, use--host'. See config.log' for more details
Earlier commits have problems with fetching resources.
So, here's the code:
Code: Select all
1. rm -Rf VLCKit # Delete the current clone of VLCKit to restart from new one.
2. git clone https://code.videolan.org/videolan/VLCKit.git #clone VLCKit current version
3. cd VLCKit #move to VLCKit directory
4. git reset --hard 2453a955435b9cae2c1637274416a4841ce66909 #move to working commit version
5. Edit buildMobileVLCKit.sh to add bitcode support using @ssbmaccom patch above
6. ./buildMobileVLCKit.sh -tfy #Build VLCKit for tvOS and Simulator with bitcode
Thanks @vibou and @ssbmaccom for their answers
I can confirm these steps work!!!
Thanks!
Ok, it's a build from 1 December, but better something than nothing at all.
Hopefully in the near future the build process will work again.