<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KPM</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KPM"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/KPM/"/>
	<updated>2026-11-04T19:23:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLCKit&amp;diff=14535</id>
		<title>VLCKit</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLCKit&amp;diff=14535"/>
		<updated>2009-07-23T23:38:17Z</updated>

		<summary type="html">&lt;p&gt;KPM: fixed problem in compilation -- see http://forum.videolan.org/viewtopic.php?t=62802&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to build the framework ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;get the [[Git|VLC Source Code from Git]]&#039;&#039;&#039;: &lt;br /&gt;
 $ git clone git://git.videolan.org/vlc.git&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;build the core components&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
 $ cd extras/contrib&lt;br /&gt;
 $ ./bootstrap&lt;br /&gt;
 $ make&lt;br /&gt;
 $ cd ../..&lt;br /&gt;
 $ ./bootstrap&lt;br /&gt;
 $ export CC=/Developer/usr/bin/llvm-gcc-4.2&lt;br /&gt;
 $ export CXX=/Developer/usr/bin/llvm-g++-4.2&lt;br /&gt;
 $ export OBJC=/Developer/usr/bin/llvm-gcc-4.2&lt;br /&gt;
 $ ./configure &lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
If the second make fails, giving you an error like:&lt;br /&gt;
&lt;br /&gt;
    ld warning: in ///Users/username/dev/vlc/extras/contrib/lib/libx264.a, file is not of required architecture&lt;br /&gt;
    Undefined symbols:&lt;br /&gt;
       &amp;quot;_x264_encoder_close&amp;quot;, referenced from:&lt;br /&gt;
       _Close in libx264_plugin_la-x264.o&lt;br /&gt;
    etc...&lt;br /&gt;
&lt;br /&gt;
then download and build x264. Then copy libx264.a into vlc/extras/contrib/lib/&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;build the framework&#039;&#039;&#039;: &lt;br /&gt;
** open projects/macosx/framework/VLCKit.xcodeproj &lt;br /&gt;
** make sure the VLCKit target is selected &lt;br /&gt;
** hit build &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic usage in your application ==&lt;br /&gt;
The code should speak by itself&lt;br /&gt;
   // Set up a videoView by hand. You can also do that in the nib file&lt;br /&gt;
    videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]];&lt;br /&gt;
    [[window contentView] addSubview:videoView];&lt;br /&gt;
    [videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];&lt;br /&gt;
   &lt;br /&gt;
    // Init the player object&lt;br /&gt;
    player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];&lt;br /&gt;
  &lt;br /&gt;
    [player setMedia:[VLCMedia mediaWithPath:@&amp;quot;/to/my/movie&amp;quot;]];&lt;br /&gt;
    [player play];&lt;br /&gt;
&lt;br /&gt;
== Sample code ==&lt;br /&gt;
You should be able to find sample code in:&lt;br /&gt;
* Framework/Examples: This is the folder that contains the VLC.framework basics usage.&lt;br /&gt;
&lt;br /&gt;
* vlc-trunk/extras/MacOSX/VLC_app: This is the VLC application that uses the framework intensivly, this is much more advanced.&lt;/div&gt;</summary>
		<author><name>KPM</name></author>
	</entry>
</feed>