i want to create my own player and use the example from https://github.com/charonn0/RB-libvlc.
Is there any chance to get it running on 64bit on Catalina?
what I did was:
I copied the plugin folder and the libs from the vlc next to my executable but I got an “PlatformNotSupportedException”
am I missing something or is is just not working anymore on 64bit?
That’s how it is on Windows. I’m not 100% sure how OS X loads dylibs. Maybe the VLCLib constant needs to point to the symlink (libvlc.dylib) instead of the actual file? Seems like a longshot. I also note that the VLC .dmg installer has them in a sub-folder called lib, so maybe that’s where they go?
I’ve written a tool and have a pretty easy procedure for going about borrowing dylibs from Homebrew. I was going to write a blog post about it, but got extremely caught up in Lifeboat.
Edit: Updated because I see you borrowed the dylib from vlc.app
If you use relative paths they can be packed within the app. I am able to get past the IsFunctionAvailable check for libvlc_new, but it doesn’t seem to work. Xojo stops and gives me this exception:
mInstance = libvlc_new(argc, argv)
If mInstance = Nil Then Raise New libvlc.VLCException("Unable to construct a VLC instance.")
Kind of lost momentum after that, sorry I didn’t figure the rest out.
I got it working with constant “VLCLib” change to “@executable_path/…/…/…/lib/libvlc.5.dylib” (if your lib folder is on thle application bundle level) and with a slightly changed vlc folder tree, because the vlc dylib does not allow use outside vlc.
Hello Tim, little question, I’ve tried to recreate exactly what the guys in thread were talking about but failed miserably Maybe you know another thread where I could find the solution