Anyone used libvlc on Mac?
I’ve been able to simplify the reproduction of the error:
When trying to build this sample:
$ 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
I am experiencing the following behavior:
- Create new XCode project (Cocoa or command line tool)
- Link with
- Run the application
- => Crashes with stack-trace pointing pointing to
__dyld_dyld_fatal_errorat the top and
__dyld__dyld_startat the bottom.
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).
Can anyone point me in the right direction for getting it to work?
- How to enumerate volumes on Mac OS X?
- Using C functions in Swift that take functions as arguments
- Adding Colours (Colors) Together like Paint (Blue + Yellow = Green, etc)
- How can I pass data into MonoTouch.Dialog's delegates?
- How to get return values from pure C function to swift?
- Swift use c struct
Solutions Collect From Internet About “Anyone used libvlc on Mac?”
Check with otool -L if your programm is correctly linked with all your libs.
relink every dylib with install_name_tools
- String is not Convertible to DictionaryIndex<String, Any>
- UIWebview full screen size
- Converting Unichar to Int Problem
- Getting a list of Images from a website and displaying it
- Point of using NSPersistentStoreCoordinator?
- iOS 6 rotations: supportedInterfaceOrientations doesn´t work?
- How do I add a still image to an AVComposition?
- How to rounded the corners when I draw rectangle using UIBezierPath points
- Scrolling in UICollectionView selects wrongs cells – Swift
- Failed to Create Object – Simple Core Data App
- Adding a UIView's to the Subview which is already added to the MainView
- Objective c – NSMutableSet unique object property
- Why are animations on bounds of an UILabel only working when increasing the size?
- Objective-C: Reading a file line by line