-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VLC 3.0.1 released and VLCJ fails to link to the binaries on OSX #602
Comments
The error message:
Will add more info as I debug. |
Enabled debug logs for JNA and working with vlc 2.2.6, the successful linking of vlc logs as follows:
When using VLC 3.0.1, the failure logs for JNA as follows:
|
Did you look at #601, did you see in particular the notes about setting environment variables and System Integrity Protection? |
As an aside you can in fact eliminate vlcj from this issue completely, all you need to try is Native.loadLibrary("libvlc") - which is not vlcj code - and you will see the same problem. |
I will try and debug as suggested but just FYI, it works successfully with vlc 2.2.8 as opposed to what's reported in #601. It's vlc 3.0.1 where it starts failing. |
That is an interesting distinction if you have it working with 2.2.x on OSX and they do not. |
Just wanted to add a data point to this issue. I can confirm leogps's claim. VLC 3.0.1 gives me the exact same exception. I've downgraded to VLC 2.2.8 and the NativeDiscover().discover() method detects it without any issue. Also can confirm VLC 3.0.1 on the PC (Windows 10) discover the libvlc files without issue. Haven't bothered trying to test it on my ubuntu machine since it seems you develop on it, therefore I wouldn't expect any issues. java version "1.8.0_144" macOS from Oracle Just found this library this morning, very cool project. I can appreciate the work you've put into this. |
The otool shared library info for VLC 2.2.8 describes @loader_path and VLC 3.0.1 describes @Rapth
VLC 3.0.1
I have researched and read that @Rapth (run-paths) are fairly new in OSX and I am suspecting that JNA might not understand them at the moment. |
@leogps |
@valnaumov very interesting, thanks |
@valnaumov Thanks bro. You beat me to it and thank you for that. After fixing the otool output looks like this:
Attaching the fixed libvlc.dylib file here for reference: |
The issue was only with OSX and I can confirm that it can be resolved by using the otool above. The fixed, libvlc.dylib is already attached to this issue. |
@valnaumov thanks, it works for me! This problem happened also in OSX. |
|
Maybe see #643, this might be fixed for you in the next version of vlcj (if it's the same problem). |
For anyone coming across this issue, please see #643, you do NOT need to do anything with rpath, otool or any other such nasty workaround. If you use the latest vlcj this issue should be gone. |
VLCJ 3.0.1 fails to link properly with VLC 3.0.1(Code name Vetenari) on OSX and also on Windows.
It works perfectly on Linux(Ubuntu) but fails with Unsatisfied link error.
It loads the plugins_path and the libvlc path correctly but fails to link to the binaries.
Reference: https://get.videolan.org/vlc/3.0.1/macosx/vlc-3.0.1.dmg
The text was updated successfully, but these errors were encountered: