Page 1 of 1

Building VLCKit for iOS using Xcode 4.6.3

Posted: 14 Aug 2013 14:32
by kapoorsudhish
Hi All,
I am new to iOS and i am trying to build VLC Media kit library on iOS using Xcode 4.6.3 i am following the instructions in https://wiki.videolan.org/Mac_OS_X_Framework/ i am not able to compile the code. Any pointers to the library installation will be helpfull. The error i am getting while building [Target -> Build Just VLCKit]
find: /Users/sudhish/Library/Developer/Xcode/DerivedData/VLCKit-fnrfzmmynsvoolemiwubgdqmefaf/Build/Products/Debug/vlc_build_dir/x86_64/modules: No such file or directory
and
cp: /Users/sudhish/Library/Developer/Xcode/DerivedData/VLCKit-fnrfzmmynsvoolemiwubgdqmefaf/Build/Products/Debug/vlc_build_dir/x86_64/share/lua: No such file or directory

Can i build the VLCKit library using Xcode (version 4.6.3) or i can only build VLC Media Player as mentioned in https://wiki.videolan.org/IOSCompile/ and not the standalone MediaKit??

What i need is the library framework with my UI on top. Please help me with the same.

Thanks & Regards,
Sudhish Kapoor

Re: Building VLCKit for iOS using Xcode 4.6.3

Posted: 14 Aug 2013 17:27
by fkuehne
Compiling MobileVLCKit currently depends on scripts included in the ios.git repository. This is bad practice and will be solved shortly. We will also provide a pre-packaged binary for easier inclusion in third party projects.

Re: Building VLCKit for iOS using Xcode 4.6.3

Posted: 15 Aug 2013 11:39
by kapoorsudhish
Hi Felix,
Thanks for the response, is there any way i can build the VLC libraries and use it in my application?? Or do i need to wait for the MobileVLCKit script to be working?

Also i wanted to use the VLC as mentioned https://wiki.videolan.org/Mac_OS_X_Framework/ but i cannot build that project also. Is there any better way to this for now??


Thanks,
Sudhish

Re: Building VLCKit for iOS using Xcode 4.6.3

Posted: 19 Aug 2013 18:24
by packetship
Hi Felix,

I'm having trouble building VLCKit from the VLCKit.git master, too. This is using Xcode 4.6.3 on a virgin Mac mini running 10.8.3 (bought especially for this purpose, long story!). The default 'Debug' configuration builds fine, but "Release" fails with the following error:

Code: Select all

CCLD liblibass_plugin.la grep: /usr/lib/libiconv.la: No such file or directory sed: /usr/lib/libiconv.la: No such file or directory libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive make[4]: *** [liblibass_plugin.la] Error 1
(irrelevant parallel build bits removed)

There is no /usr/lib/libiconv.la, only a .dylib - I'm guessing the iconv.m4 messed up somewhere? It's beyond my autoconf/m4 skills to find out why, I'm afraid! :)

Here's my command line:

Code: Select all

xcodebuild -project VLCKit.xcodeproj -target "Build Everything" -configuration Release
Many thanks

Paul

PS there's another rather annoying issue when trying to debug failing builds: after it fetches the contrib tarballs and unpacks them it tries to rename them to the parent directory - e.g.

Code: Select all

mv i686-apple-darwin10 ..
If this already exists this fails and you have to delete it before you can continue the build. Hence you can't just rerun "Build Everything" as you might expect.

Re: Building VLCKit for iOS using Xcode 4.6.3

Posted: 19 Aug 2013 18:56
by packetship
This is the actual command that fails - no idea why, because it doesn't mention libiconv.la anywhere!

(in build/Release/vlc_build_dir/i386/modules/codec)

Code: Select all

$ echo " CCLD " liblibass_plugin.la;../../doltlibtool --silent --tag=CC --mode=link xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -I/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/include -I/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/include/fribidi -I/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/include/freetype2 -m32 -arch i386 -D_INTL_REDIRECT_MACROS -arch i386 -DMACOSX_DEPLOYMENT_TARGET=10.6 -I/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -ffast-math -funroll-loops -fomit-frame-pointer -rpath '/Users/prc/world.vlckit/build/Release/vlc_build_dir/i386/vlc_install_dir/lib/vlc/plugins/codec' -avoid-version -module -export-symbols-regex ^vlc_entry -shrext .dylib -no-undefined ../../src/libvlccore.la ../../compat/libcompat.la -Wl,-headerpad_max_install_names -arch i386 -L/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/lib -o liblibass_plugin.la liblibass_plugin_la-libass.lo -lfontconfig -L/Users/prc/world.vlckit/vlc-unstable/contrib/i686-apple-darwin9/lib -lass -lfontconfig -lxml2 -lm -lfribidi -lfreetype -lz -lbz2 CCLD liblibass_plugin.la grep: /usr/lib/libiconv.la: No such file or directory sed: /usr/lib/libiconv.la: No such file or directory libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
Note the same module and command work fine in the x86_64 version (which is why it only fails in the Release build). Which means for now I can build a working 64-bit only release Framework with:

Code: Select all

$ xcodebuild -project VLCKit.xcodeproj -target "Build Everything" -configuration Release -arch x86_64
Cheers

Paul