Page 1 of 1

dyld: Library not loaded: @rpath/libvlc.dylib

Posted: 07 Jan 2021 18:30
by llamafilm
I downloaded a nightly build and it won't run because it can't find the libraries.

Code: Select all

% ./bin/vlc dyld: Library not loaded: @rpath/libvlc.dylib Referenced from: /Users/elliott/Downloads/vlc-macos-sdk-4.0.0-dev-70dc21e2/./bin/vlc Reason: image not found zsh: abort ./bin/vlc
With otool I see the @rpath uses two forward slashes. I'm not familiar with this syntax. How do I make it find the libraries in a relative path? The lib folder is located next to the bin folder.

Code: Select all

cmd LC_RPATH cmdsize 24 path //lib (offset 12) Load command 21

Re: dyld: Library not loaded: @rpath/libvlc.dylib

Posted: 07 Jan 2021 21:19
by dfuhrmann
The SDK file you downloaded is mainly intented for developers to integrate libvlc into own applications.

Please use the file with the ending dmg instead, if you want to run VLC.