Building VLCKit for iOS using Xcode 4.6.3

macOS specific usage questions
kapoorsudhish
Blank Cone
Blank Cone
Posts: 17
Joined: 14 Aug 2013 14:15

Building VLCKit for iOS using Xcode 4.6.3

Postby kapoorsudhish » 14 Aug 2013 14:32

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Building VLCKit for iOS using Xcode 4.6.3

Postby fkuehne » 14 Aug 2013 17:27

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kapoorsudhish
Blank Cone
Blank Cone
Posts: 17
Joined: 14 Aug 2013 14:15

Re: Building VLCKit for iOS using Xcode 4.6.3

Postby kapoorsudhish » 15 Aug 2013 11:39

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

packetship
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Aug 2008 13:21
Location: Cornwall UK
Contact:

Re: Building VLCKit for iOS using Xcode 4.6.3

Postby packetship » 19 Aug 2013 18:24

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.

packetship
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Aug 2008 13:21
Location: Cornwall UK
Contact:

Re: Building VLCKit for iOS using Xcode 4.6.3

Postby packetship » 19 Aug 2013 18:56

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


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests