title: Anyone used libvlc on Mac?
body: <p><strong>Edit</strong></p>
  
  <p>I've been able to simplify the reproduction of the error:</p>
  
  <p>When trying to build this <a href="http://wiki.videolan.org/LibVLC_Tutorial" rel="nofollow noreferrer">sample</a>:</p>
  
  <pre><code>$ cc example.c -arch i386 -lvlc.2 -L/Applications/VLC.app/Contents/MacOS/lib/  -I/Applications/VLC.app/Contents/MacOS/include/ -o example
  $ ./example 
  dyld: Library not loaded: @loader_path/lib/libvlc.2.dylib
    Referenced from: /Users/francis/src/playground/libvlc/./example
  </code></pre>
  
  <p><br><strong>Original Post</strong></p>
  
  <p>I am experiencing the following behavior:</p>
  
  <ul>
  <li>Create new XCode project (Cocoa or command line tool)</li>
  <li>Link with <code>libvlc.2.dylib</code> found in <code>/Applications/VLC.app/Contents/MacOS/lib</code></li>
  <li>Run the application</li>
  <li>=> Crashes with stack-trace pointing pointing to <code>__dyld_dyld_fatal_error</code> at the top and <code>__dyld__dyld_start</code> at the bottom.</li>
  </ul>
  
  <p>What am I doing wrong here? Maybe I need to link with a fresh VLC build, but I haven't yet succeeded building it on Snow Leopard and the MacPort doesn't work as well (fails during build phase).</p>
  
  <p>Can anyone point me in the right direction for getting it to work?</p>