VLCJ not working on Mac - plugin libvlccore.5.dylib

狂风中的少年 提交于 2019-12-05 11:33:45

I bet you are using the libraries of VLC 2.0.4. I was experiencing the same problems and I downgraded to 2.0.3 version. It works fine now!

I've the same problem but I checked with all VLC versions: 2.0.1, 2.0.3, 2.0.4 & 2.0.5 and it still not working.

Could you provide me your config info to try to make it work like you? MAC OSX, JAVA version, VLCj version & VLC version?

You can follow the thread on github https://github.com/caprica/vlcj/issues/138

Thanks a lot.

This has been fixed in vlc 2.0.7.

It should also be fixed in vlc 2.1.0.

If you check the NEWS file for vlc 2.0.7 you will see this:

Video output: * Fix crash when using libvlc in 3rd party applications (Mac only)

This happened to me with latest VLC 3 (Git)

# Change dir to VLC lib
cd /Applications/VLC.app/Contents/MacOS/lib/

# Search for LC_RPATH entries
otool -l libvlc.dylib

# If not LC_RPATH entries found we can "statically" link libvlccore.dylib 
install_name_tool -change @rpath/libvlccore.dylib /Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib /Applications/VLC.app/Contents/MacOS/lib/libvlc.dylib

So now if we use otool again:

otool -l libvlc.dylib
[...]
Load command 9
          cmd LC_LOAD_DYLIB
      cmdsize 88
         name /Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib (offset 24)
   time stamp 2 Thu Jan  1 01:00:02 1970
      current version 9.0.0
compatibility version 9.0.0
[...]

"libvlccore.dylib" will be searched in the right dir.

It not the best solution, each time you update VLC you'll have to re-link it again, but it works!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!