VLCKit-3.0.0 build fail

iOS, iPad, iPhone, tvOS specific usage questions
jonathan.hu
New Cone
New Cone
Posts: 8
Joined: 18 Mar 2015 03:52

VLCKit-3.0.0 build fail

Postby jonathan.hu » 06 Oct 2016 09:08

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.

MidnightCoder
Blank Cone
Blank Cone
Posts: 82
Joined: 08 Aug 2008 06:04

Re: VLCKit-3.0.0 build fail

Postby MidnightCoder » 06 Oct 2016 16:53

Try googling for that openjpeg-1.5.0.tar.gz file and download it manually and put it in the ../../contrib/tarballs/ folder.

jonathan.hu
New Cone
New Cone
Posts: 8
Joined: 18 Mar 2015 03:52

Re: VLCKit-3.0.0 build fail

Postby jonathan.hu » 07 Oct 2016 08:45

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 ?

Alphacentaura
New Cone
New Cone
Posts: 3
Joined: 07 Oct 2016 15:12

Re: VLCKit-3.0.0 build fail

Postby Alphacentaura » 18 Nov 2016 10:03

Hi! The path is: /MobileVLCKit/ImportedSources/vlc/contrib/tarballs/, but it will not help. I copied openjpeg there, but compilling still fails

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: VLCKit-3.0.0 build fail

Postby ssbmaccom » 20 Nov 2016 18:12

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

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: VLCKit-3.0.0 build fail

Postby ssbmaccom » 05 Dec 2016 22:48

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.

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: VLCKit-3.0.0 build fail

Postby ssbmaccom » 14 Dec 2016 18:52

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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: VLCKit-3.0.0 build fail

Postby dfuhrmann » 18 Dec 2016 08:57

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.

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: VLCKit-3.0.0 build fail

Postby ssbmaccom » 19 Dec 2016 18:02

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.

elrules
New Cone
New Cone
Posts: 5
Joined: 27 Apr 2016 09:49

Re: VLCKit-3.0.0 build fail

Postby elrules » 11 Jan 2017 10:48

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.

gerlich
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Nov 2016 09:26
VLC version: 3.0.0
Operating System: Mac OS, IOS, TVOS

Re: VLCKit-3.0.0 build fail

Postby gerlich » 16 Jan 2017 09:19

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

elrules
New Cone
New Cone
Posts: 5
Joined: 27 Apr 2016 09:49

Re: VLCKit-3.0.0 build fail

Postby elrules » 18 Jan 2017 01:33

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

gerlich
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Nov 2016 09:26
VLC version: 3.0.0
Operating System: Mac OS, IOS, TVOS

Re: VLCKit-3.0.0 build fail

Postby gerlich » 18 Jan 2017 06:39

@elrules, Are you sure you did no. 4?
I got the same error you got on any other commit except that one.

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: VLCKit-3.0.0 build fail

Postby ssbmaccom » 19 Jan 2017 18:16

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.

rschiks
New Cone
New Cone
Posts: 1
Joined: 19 Jan 2017 18:42

Re: VLCKit-3.0.0 build fail

Postby rschiks » 19 Jan 2017 18:49

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!!! :D :D
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.


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

Who is online

Users browsing this forum: No registered users and 9 guests