[FFmpeg-user] Loading shared libraries in macOS
Reindl Harald
h.reindl at thelounge.net
Wed Aug 12 12:27:13 EEST 2020
Am 12.08.20 um 09:14 schrieb Aleksid:
> Why is ffmpeg looking for shared libraries in a folder where I compiled
> FFmpeg sources on macOS Catalina?
>
> Source code of FFmpeg is located in /usr/local/Cellar/ffmpeg
>
> ./configure --enable-shared --extra-cflags="-fno-stack-check" --enable-gpl
> --enable-version3 --enable-pthreads --enable-nonfree
> make
>
> Then I put all compiled shared libraries and small ffmpeg binary file to a
> folder: /Users/aleks/test/
>
> I call ./ffmpeg
>
> Library not loaded: /usr/local/Cellar/ffmpeg/lib/libavdevice.58.dylib
> Referenced from: /Users/aleks/test/./ffmpeg
> Reason: image not found
>
> Why? All shared libraries are located in the same folder as ffmpeg
> executable: /Users/aleks/test/
becasue that's how shared libraries are working on the OS level given
that you are not using the dumb microsoft windows loading and starting
everything from the current working directory including each and every
exploit
either build a static binary or think about the install location
More information about the ffmpeg-user
mailing list