Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MobileVLCKit not compiling

I am trying to compile MobileVLCKit based on instructions in this page:

https://wiki.videolan.org/VLCKit/

When I run ./buildMobileVLCKit.sh It start doing some thing and the download about 200 MB and finally shows below error:

The following build commands failed:
    CompileC build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/VLCLibrary.o Sources/VLCLibrary.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I checked the iOS sample but still it has not working.

I also tried to build it with ./buildMobileVLCKit.sh -sbut I see below error:

    The following build commands failed:
    CompileC build/MobileVLCKit.build/Release-iphonesimulator/MobileVLCKit.build/Objects-normal/i386/VLCLibrary.o Sources/VLCLibrary.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I also see this post:

MobileVLCKit fails while compiling

and checked the url for the precompiled sources at here:

http://nightlies.videolan.org/build/iOS/

but actually I am not any idea on how can I use them. Even I do not know I should download witch of them?!!

Does some body any idea on what is the problem with building this library or how to use this precompiled files.

like image 979
Husein Behboudi Rad Avatar asked Jul 10 '14 12:07

Husein Behboudi Rad


1 Answers

Not sure if answer is needed still for that but I'll answer this for future generations and lost souls.

So the short answer is: mobileVLCkit should compile if you have xcode installed. If it does not compile then that means that the current version on git is broken. That happens more often then you think.

At the mentioned link http://nightlies.videolan.org/build/iOS/ you can download nightly builds of mobileVLCkit. Those builds will work on both hardware and simulator. They are prepared every night as long as the latest code compiles so you can download the latest version. You can often see that those builds are week or more behind git. That means that git code does not compile :) Personally I believe there is hardly any reason to build this lib yourself. Just grab a nightly.

Now to clear the confusion mobile vlc kit is only a C library + required header files. You are not going to get any cool control to place in a view with buttons and such. You need to hand craft all of that.

like image 187
Kraszim Avatar answered Oct 20 '22 00:10

Kraszim