I've been having trouble getting LibVLC to work with my application. I'm using Mac OS X 10.6 and XCode. (I have it embedded into a Qt application in Windows, but when I try to port it to Mac, I run into problems.) I downloaded the 64-bit version of VLC (VLC 2.0.1 64-bit), selected "Show Package Contents" on the VLC.app, and grabbed some of the files, and put them into my application's directory.
Specifically, I took all the directories (shown below) and copied them to my application's folder.
/Contents/MacOS/bin/
/Contents/MacOS/include/
/Contents/MacOS/lib/ (this contains the libvlc.5.dylib and libvlccore.5.dylib)
/Contents/MacOS/plugins/
/Contents/MacOS/share/
So it looks like this:
MyApplicationDirectory/[MyApplication]
MyApplicationDirectory/bin/
MyApplicationDirectory/include/
MyApplicationDirectory/lib/
MyApplicationDirectory/plugins/
MyApplicationDirectory/share/
I also tried copying the dylibs (libvlc.5.dylib and libvlccore.5.dylib) into the same directory as my application, but that didn't help either.
When I run my application, it fails to open and I get an error message "[LunarSim] cannot be opened because of a problem. Check with the developer to make sure [LunarSim] works with this version of Mac OSX..." I only get this error when I add LibVLC to my application. I'm not trying to open any media files yet, I'm just trying to link it into my application.
Am I missing something? Is there a different way to accomplish this? I couldn't find much information about how to use LibVLC on Mac OSX. (I could only find information on how to get/install the VLC Player or rebuild the entire project. I just want the library.)
* Changed "Sim" to "LunarSim" in the error message for clarity.